Unix Commands
enscript -2r [filename] | prints 2 pages per side (4 pages per piece of paper) |
[control] + [middle mouse button] | "vt options" (ie. enable scroll bar on xterm) |
tar xvf [filename] | unpacks a tarred file |
tar cvf [filename.tar] [files to include] | tars files together into new file |
latex *.tex latex *.tex dvips -f *.dvi > *.ps | compiles a latex document, writes it to a postscript file. NOTE: I have now aliased this to "latex2ps.csh [filename]" |
dvipdf -f *dvi > *.pdf | writes a latex document to a pdf file |
du -k | prints disk usage and usage in subdirectories |
du -ks | prints disk usage in kilobytes |
du -m | prints disk usage in megabytes |
du -h | prints disk usage in "human readable" format |
whoami | tells who is currently logged in |
finger [user name] | gives an update of the user (last login, email, etc...) |
date | prints the date and time |
ln -s [target] [alias] | makes a link called alias to the target |
source .cshrc
source .alias | refreshes .cshrc and/or .alias files |
which [command] | gives information about command |
mpeg_play -dither ppm [filename] | splits mpeg into individual .ppm frames |
mpeg_encode mpeg.par | combines frames into .mpg movie using specifications in mpeg.par |
xsane | scanning program |
xv -root -max -quit /home/mmk8a/picture.jpg [put it in .xinitrc file] | set a picture for your background |
pstogif [file.ps] | convert *.ps file to *.gif file. Works on Venus. |
df -h | shows the amount of space used/available on Linux machines |
ooffice
soffice | command to run open office/star office |
grep 'some text' -n [file name(s)] | search for string 'some text' in file(s), print line number of matches |
lpr -Pastroc [filename] | print color pages NOTE: Must be logged into Earth. |
scp *.pro mmk8a@soho.astro.umd.edu:misc/ | copy files via SCP |
ps -u mmk8a | check processes running by mmk8a |
growisofs -Z /dev/scd0 -R -J PATH | burn a DVD where PATH is the location of the data and /dev/scd0 is the address of the DVD drive **NOTE: make sure to close all CD player programs first or you will make a coaster!** |
growisofs -Z /dev/scd0=image.iso | burn a DVD of an iso image **NOTE: make sure to close all CD player programs first or you will make a coaster!** |
cat [file name(s)] > [new file] | concatenate file(s) into one big file |
flac -d [files] | decode flac files to wavs |
plaympeg [file] | plays mpeg movies |
/local/skel/move | resets all .* files and moves all old .* files to .*.SAV |
convert -resize 648 pic.jpg newpic.jpg
convert -resize 648x486 pic.jpg newpic.jpg | resizes image pic.jpg to specified size (if only one specified it's the horizontal size) and writes it as newpic.jpg |
books [search term(s)] | Searches the UMD astronomy library catalog |
more /local/mail/graduates | Shows who is included on the graduates email distribution |
more /proc/cpuinfo | Shows the processor specs for a machine (ssh onto a different machine to check its specs) |
more /etc/hosts | Shows the department machines and their owners |
xv -gsres 200 image.ps | displays a specific resolution in XV (change the number to be better/worse resolution). To change the color map: right click on the image, then make sure the "24/8 Bit" mode is set to 8, then click "Windows" > "Color Editor" and change the colors using the RBG dials. When you're done just save. |
xhost + | Type this from the local computer if having X11 forwarding problems (then SSH to remote computer) |
http://proxy-um.researchport.umd.edu/login?url= | Add this before the URL of a journal you want to read. You will be prompted for your UM login and then redirected to the journal. |
find . -name 'blah.pro' | Searches for blah.pro in the current directory and all lower directories |
more /etc/fstab | Shows which disks are mounted |
/info/www/htdocs/users/knight/ | Location of my webpage on aspen |
/info/pub/knight/ | Location of FTP downloads |
/info/incoming/knight/ | Location of FTP uploads |
ftp://ftp.lowell.edu/pub/knight/ | FTP interface |