ECE171: Introduction to Digital Circuits
Fall 1999
Rev: 9.25.99
Some Useful UNIX Commands
Text Editors
pico (recommended for new UNIX users)
vi
emacs
xedit
Email Programs
pine (recommended for new UNIX users)
elm
mail
netscape
Printing
lpr -Plw10 "file" (prints "file" to the printer lw10)
lpq -Plw10 (queries the printer lw10 for the queue list or print jobs)
lprm -Plw10 (cancels any print job that you sent to printer lw10)
Unix Commands
ls (list contents of directory)
cd "directory_name" (change directory to "directory_name")
cd .. (cd to the parent directory)
cd (without "directory_name"; cd to home directory)
mkdir "directory_name" (creates a directory "directory_name")
cp "file1" "file2" (copies "file1" to "file2")
cp -r "directory1" "directory2" (copies "directory1" to "directory2")
mv "file1" "file2" (moves/renames "file1" to "file2")
mv "directory1" "directory2" (moves/renames "directory1" to "directory2")
rm "file" (erases/removes "file")
rm -r "directory" (erases/removes "directory")
man "command" (gives the manual page for the "command")
man -k "search_term" (search the manual pages for "search_term")
more "file" (views the "file" one page at a time)
passwd (changes the user password)