Design Integration Laboratory
Design Tools - Connections
Unix Commands Summary
Objective
These notes are intended to give you a very basic set of Unix "C Shell"
commands to work with.
Basic Commands
Look up a new command -
man command
Create a new directory -
mkdir directory
Switch down to a sub-directory -
cd directory
Switch up one directory level -
cd ..
Go to your home directory -
cd
List the files in the current directory -
ls
Detailed listing of the files in the current directory -
ls -la
Delete a file -
rm filename
Log out of the terminal session -
logout
See how much disk space you have left -
quota -v
See what's running on the system -
ps -a
- or -
top
Compress files in Unix to save disk space -
compress filename
Uncompress previously files in Unix -
uncompress filename
See where you are in the directory system -
pwd
List a text file to the screen, page by page -
more filename
List only the last few lines of a text file to the screen -
tail filename
Detailed listing of all the files in your whole directory tree,
listed page by page with more -
ls -laR | more
Detailed listing of all the files in your whole directory tree,
listed into a new text file -
ls -laR > filename
Delete an empty directory -
rmdir directory_name
Some Useful Though Not Basic Commands
Find someone else's directory on Darkwing
(or on any similarly configured Unix host) -
cat /etc/passwd | grep username
Some Basic "vi" Commands - (for those impaired in U.I. selectivity)
Open a file to edit with vi -
vi filename
Save your edits and quit vi -
[esc]
:
ZZ
To move to a new place in the file, to insert or delete text, use the arrow
keys.
Start inserting text in vi -
i text
Stop inserting text in vi -
[esc]
Delete a character in vi -
x
Delete a word in vi -
dw
Delete a line in vi -
dd
Connections
|
Computing Tools
|
Architecture Computing
|
Architecture Foyer
|
Index
This document is provided for on-line viewing only, except as printed by Author.
© 1994-96 Kevin Matthews, All Rights Reserved.
http://www.dil.uoregon.edu/computing/tools/unix.html -
Posted 96.02.15 KMM, rev. 96.04.24