CTRL+C |
|
Terminates execution of the current program. Works with most programs.
|
date |
|
Gives you the time and date.
|
a2ps filename |
|
Prints a file to the default printer in room 106.. SEE NEXT COMMAND!
|
cancel -u userid |
|
If you print the wrong thing you may end up with dozens of pages
of garbage. To stop the printer from printing this garbage and wasting
paper use the cancel command. For example, if I were going to stop my
printer commands I would type "cancel -u ap27".
|
!v |
|
Repeats the last UNIX command you typed that started with "v"
|
!! |
|
Repeats the very last Unix command you typed.
|
chmod |
|
Changes the permissions of who can access your file. Necessary to
make html files visible on the web in your /www/yourlogin directory. Usage: chmod [u/g/o/a] [+/-] [r/w/x] Who it affects: u=user=you, g=group, o=others, a=all +/- = add or remove permission to: r=read w=write x=execute the file. For example, "chmod a+rx filename" adds read and execute permission to all users for the file "filename".
|
grep abc *.txt |
|
Prints out all lines that contain the word "abc" in all files that end with ".txt"
|
prog1 | prog2 |
|
Takes the output that would have printed out from "program one"
and sends it to be the input that would have been read from the keyboard
in "program two". E.g. "ls | grep java"
|
prog > temp.txt |
|
Saves what the program "prog" would have printed out into the file "temp.txt". E.g. "java Driver > results.txt".
|
prog < temp.txt |
|
Whenever "prog" tries to read input from the keyboard, it reads from the contents of the file "temp.txt" instead. E.g. "java Driver < data.txt".
|