This document can always be found at http://www.krwtech.com/ken/linux/handycommands.html

Please email me if you have any questions, comments or suggestions.

apropos		search command descriptions for words
alias		create an alias for a command
at		run a command at a specific time once
bc		a basic calculator
bg		resume a suspended job in the background
bunzip2         decompress a .bz2 file
bzip2           compress a file
cal		show this month's calendar
cat             show the contest of a file without any pausing
cd		change directory
chmod		change permissions on files
		permissions are:
		u = user (file owner)
		g = group (file's group)
		o = other (everyone else)
		a = all (ugo)

		+ or - the following permissions:

		r = read (for dirs, list the dir)
		w = write (for dirs, add files)
		x = execute (for dirs, allow other people to enter the dir)

		you can also set it with the following format:
		xyz

		where x = user's permissions, y = group's permissions and z = other permissions
		each of the numbers is the sum of the following:
		no permissions = 0
		read = 4
		write = 2
		execute = 1

		so, chmod a+rwx = chmod 777

chown		change owner on files
chroot		change the root directory (handy for daemons and special situations)
cp		copy a file
diff		show the differences between two files
dig -axfr  does a zone transfer on host
dd		dump disk. Used for copying full partitions and other things (cdroms)
df		disk free
dmesg		dumps the kernel message buffer. Handy if you have an OOPS, PANIC or BUG
du		disk usage (find out how much space a dir is using)
du -s		disk usage (prints summary instead of each file)
eject		eject cdrom
fg		foreground (resumes program suspended with control-z)
free		show memory usage
gpg		encrypt a file (like PGP)
groups		list what groups you're in
gunzip		decompress a .gz file
gzip		compress a file (not as small as bzip2)
head		show the first few lines of a file
host  looks up ip address
ifconfig	show network info
kill		terminate a process
killall		terminate all processes with a given name
less		show the contents of a file
ln		link a file or directory to a new name
lpr		print a file
man		show the help manual page for a program
mv		move a file or directory (includes renaming)
nohup 	executes command without hanging up (handy for remote installation of ssh)
pwd		print your current working directory
ps		show the list of running processes
rm		remove a file
shred		delete a file securely
strace		print the system's stack when running a program (handy for debugging)
su		change to another username
sync		syncs hard drive buffers
tail		shows last few lines of a file
tail -f		shows last lines of files and prints out as new lines are added
tar		create/extract archives (like zip files)
tee		writes to the screen and a file at the same time
touch		update the timestamp on a file (will create if nonexistent)
top		show all of the current process information, updated every second
who		list the users on the computer
umask		change your default file permisions (see chmod)
unalias		remove an alias
uptime		shows how long system has been running for
xset fp rehash  reload X fonts

SHELL KEYBOARD COMMANDS:
ctrl-a		go to the beginning of the line
ctrl-e		go to the end of the line
ctrl-f		go forward one word
ctrl-b		go back one work
ctrl-l		clear the screen
ctrl-w		delete last work
ctrl-u		delete line
ctrl-r		search command history
tab		expand filename you're typing
ctrl-v		enter a special character
ctrl-u		translate current word to uppercase
ctrl-l		translate current work to lowercase
ctrl-k		delete line from cursor to end
Sponsered by KRW Technologies
Return to Ken's lab