Useful CLI utilities - mackeylab/home GitHub Wiki
MrPeek
View niftis inline in the terminal! This is installed on CUBIC. You need to use a different terminal (for MacOS, download and install iTerm2). Then use iTerm2 to log on instead of Terminal, and happily view your images GUI-free.
mrpeek mynifti.nii
Q #To quit
tmux
Split your terminal, as well as preserve sessions
https://thoughtbot.com/blog/a-tmux-crash-course
TODO
vim
TODO
watch
Shows you the output of a command or file, and refreshes that view every few seconds
watch qstat
grep
Used to find strings inside text files
recursive: grep -r
case-insensitive: grep -i
lines that don't match: grep -v
TODO
wc
How many lines are in a file?
wc -l filename
Atom (text editor)
You can go to the Atom menu and install shell commands
, which gives you a command atom
. This is versatile in doing what you want, so you can type atom filename.txt
to open a file.