
U N IX C O M M A N D S CHEAT SHEE T
Lists files in current directory
List in long format
cd tempdir
cd ..
cd ~dhyatt/web-docs
Change directory to tempdir
Move back one directory
Move into dhyatt's web-docs directory
Make a directory called graphics
cp file1 web-docs
cp file1 file1.bak
Copy file into directory
Make backup of file1
Online manual (help) about command
head file1
head -100 file1
Display the first 10 lines in a file
Display the first 100 lines in a file
tail file1
tail โf file1
Display the last 10 lines in a file
Display the contents of the file as it
grows, last 10 lines at a time.
Look at file, one page at a time
Look at file, one page at a time
cat index.html
cat file1 file2
Print on the standard output
Concatenate files
Look for occurrence of a certain pattern
in a file
chmod 644 *.html
chmod 755 file.exe
Change file permissions read only
Change file permissions to executable
ps aux
ps aux | grep dhyatt
List all running processes by #ID
List process #ID's running by dhyatt
Kill process with ID #8453
Lists commands you've done recently
Print system usage and top resource
hogs
Print name of current/working directory
gzip bigfile
gunzip bigfile.gz
Compress file
Uncompress file
tar -cf subdir.tar subdir
tar -xvf subdir.tar
Create an archive called subdir.tar of a
directory
Extract files from an archive file
Create symbolic link, link to file
Show disk space in human-readable
format
Show directory space usage
Run a command immune to hang-ups,
Run a command in the background
Download file from valid url
Secure copy a file from one host to
another
Collected from http://www.tjhsst.edu/~dhyatt/superap/unixcmd.html