DON'T FORGET TO LOGOUT. Click on exit and then confirm. ^d will log you out of a window only
passwd | Change your password. |
---|---|
ls | List the files in the current directory. |
ls -l | List the files in the current directory with additional info. |
ls -al | List ALL the files in the current directory with additional info. |
The commands cp, mv, and rm all may delete a file. The destination file, file2, in the case of cp and mv is overwritten and the old contents are lost. A DELETED FILE IS UNRECOVERABLE. Be careful with these commands. | |
cp file1 file2 | An identical copy of file file1 is made and is named file2 . |
mv file1 file2 | File file1 is renamed (moved) to file2 . |
rm file | File file is deleted (removed). |
lpr -Pprinter file | Print file file .
DO NOT PRINT NONTEXT FILES LIKE A.OUT!
For the print commands printer may be graphlab (room 243) or xterm lab (room 160) |
lpq -Pprinter | Show entries on the laser printer queue in the specified location. |
lprm -Pprinter job-id | Remove entries from the laser printer queue. Get job-id from lpq |
man command | The manual page for command is displayed on the screen. Pressing the spacebar scrolls through the entry, q to quit. |
more file | View (ascii) file file . Pressing the spacebar scrolls through the file, q to quit. |
vi file | Start the vi editor on file file . |
emacs file | Start the emacs editor on file file . |
file file | Determine what type of file file is; ascii (text), executable, etc. |