Basic Unix Survival Information





Basic Window Survival



General Format of Unix Commands

% <command> [<options/args>] [<files>]

Examples:

    ls
    ls -l
    ls -l myfile
    ls -ld mydir
    ls -l -d mydir



Getting Help On-Line



Command Line Tips



Other Command Line Features



New Account Environment



Navigating Through Directories

    pwd			-- print current (working) directory
    cd <dir>		-- change directory to <dir>
    cd ~-		-- change to previous working directory
    ls [<dir>]		-- list directory contents
    cp <src> <dest>	-- copy file(s)
    mv <src> <dest>	-- move file(s)
    rm <file>		-- remove file(s)
    rmdir <dir>		-- remove directory(s)
    mkdir <dir>		-- make directory(s)
    cat <file>		-- display file contents on standard output
    more <file>		-- display/browse one page at a time



Other Helpful Commands

which <command>
Searches your command path for the given command, telling you which directory (if any) it is found in.

whereis <command>
Asks the operating system where common places to keep commands are, and searches them for the given command; on some Unix versions, will also uncover manual pages, source files, etc.




L. T. Watson <ltw@cs.vt.edu>
Last modified: Sat Aug 16 17:57:31 EDT 1997