100 likes | 264 Views
UNIX Command-line Introduction. Terence Parr. Navigating. cd pwd ls pushd/pod. Display file contents. cat more head tail wc. Copying, renaming. cp source target mv source target # rename. Special Directories and Files.
E N D
UNIX Command-line Introduction Terence Parr
Navigating • cd • pwd • ls • pushd/pod
Display file contents • cat • more • head • tail • wc
Copying, renaming • cp source target • mv source target # rename
Special Directories and Files • A shortcut for you home directory, /home/username, is ~username. • ~parrt is my home: /home/parrt. • / is the root directory; there is no drive specification in UNIX like PC • ~/.bash_profile inits shell session
Getting help • man command
Everything is a stream • ls -l | grep Aug | wc -l • ls > t • cat t
Processes • ps • top • kill
Searching streams • grep
For more… • http://www.cs.usfca.edu/~parrt/course/601/lectures/unix.util.html