highlight text with the mouse (by dragging with left buttom pressed)
paste this text on the command line by pressing either the center button or left+right button
pwd -- lists present working directory
cd -- changes working directory to home (ie /homes/steveb)
cd ../../merged/JD143 -- changes working directory (up two levels then down two)
cd - -- returns to last working directory (handy for avoiding long paths)
!sw -- will re-run last command that started with sw (ex. swathed 0001_20040303_121212.merged)
!145 -- will re-run command # 145
chmod 765 filename -- will change file permissions to rwxrw-r-x (changing numbers will change permissions)
chmod +x filename -- will change file permissions to be writeable by all
cat -- concatenates (prints) a file (hopefully ascii) to screen (by default)
cat file1.txt >> file2.txt -- cats file1.txt onto the bottom of file2.txt
top -- will list the most demanding programs running at the time
who -- will list users that are logged into a machine
Use the two commands above to check if someone is using the same computer as you (ie. before you shutdown).
grep -- See the man page ('man grep') a couple uses are listed here:
history | grep swathed -- will list all the commands in history that contained the word swathed
grep GGA * -- will search all files in current directory for the word 'GGA'
gzip raw/*/*.all -- will g'zip all the raw files in all directories
gunzip raw/*/*.all.gz -- will g'unzip all zipped raw files
tar zcf stuff.tar.gz *.txt -- will tar and gzip all .txt files into stuff.tar.gz
tar zxf stuff.tar.gz -- will gunzip and untar stuff.tar.gz
screen -- will open a screen (this will allow you to run a command, detach, and log off)
while you are in screen, press Ctrl-a then d to detach from the screen
screen -r -- will re-attach to the screen (you may need to specify pid: screen -r 3433)
Ctrl-c -- will send a break signal to the running program (usually works)
Ctrl-\ -- will really kill a running program (don't use often)