UNIX and Linux

Unix resources and basic instruction



Useful information mostly written by me, the conspicuous exception being the bash manpage ...

Intro to Unix
UNIX command summary
grep tutorial powerful search tool
sed tutorial scripts to edit text files
Autofs in Linux automatically mounting removable media
procmail tutorial well known email filter
bash manpage the man page for the bash shell. Warning: this is long (~210k)
cat filename write contents of filename to the screen
cd directory_name change current directory to directory_name
chmod mode file change permissions on file to mode.
grep phrase filename search filename for phrase and print matching lines
grep phrase read from the standard input, and print lines matching phrase
grep -v phrase print all lines not matching phrase
lpr -Pprinter_name filename Print the file filename to the printer printer_name
lpq check the printer queue
lprm job_number remove the print job numbered job_number from the print queue (to find out what job nuimber your print job is, use lpq.)
ls List files in current directory (not including files that start with a dot.
ls directory_name List files in directory_name
ls -l List files with permissions, ownership and last modified date
ls -a list all files, including files that start with a dot (like the .netscape directory)
ls -R list contents recursively, that is , list contents of subdirectories.
man command show online documentation/help about command
man -k keyword show commands related to keyword. Handy if you need help, but don't know the name of the command
mkdir directory_name Makes a directory called directory_name
pwd "print working directory", ie says what directory you are in
rm filename removes filename
rm -f f is for "force". With this option, files are removed without confirmation.
rm -r directory_name recursively delete directory_name and its contents.
rmdir directory_name removes a directory called directory_name. Only works on empty directories. to remove a nonempty directory, see rm -rf
telnet hostname connect to the machine called hostname
wc filename print the number of lines, words, and characters in filename. If No filename is given, stdin is used.