Reference: A Practical Guide to UNIX System V, by Mark G. Sobell |
Password: __ (Some UNIX systems will initially require
the user to establish a password for a new account.) |
haltFrom the command line, provides checks for maintaining the file system integrity. Wait until prompted to hit any key to reboot before powering down the system. |
exit or <Ctrl-D>UNIX command normally used to end a user's session, but not shut down the machine, closes a terminal session. |
| Highest level directory = root / Users current
directory is the "working directory", by default: |
| e.g., /home/major/smith/courses/cs/1044/prog1.c |
| e.g., courses/cs/1044/prog1.c |
| . is an abbreviation for the current working directory; stores
location of current directory.
.. is an abbreviation for the directory containing the current working directory (i.e., it's parent); stores location of parent directory. |
| Commands (as filenames) are case sensitive, e.g., "foobar" is not the same as "FooBar". .login or .profile files allow absolute pathnames of commands to be omitted. UNIX commands do not produce messages; by design commands are terse, to allow for piping and redirection (more later). |
pwdcd classtotal 12 drwxrwxr-x 6 smith cs1044 480 Dec 6 17:42 . drwxrwx--- 26 root system 816 Dec 6 14:45 .. -rw-rw-r-- 1 smith cs1044 161 Dec 6 17:15 .profile drwxrwxr-x 2 smith cs1044 80 Oct 25 08:33 bin/ drwxrwxr-x 2 smith cs1044 144 Nov 30 14:25 C/ -rw-rw-r-- 1 smith cs1044 104 Sep 12 19:54 notes -rwxrw-r-- 1 smith cs1044 85 Jan 4 20:06 run* drwxrwxr-x 2 smith cs1044 32 Mar 23 13:45 memos/ drwxrwxr-x 16 smith cs1044 1296 Dec 6 17:33 shell/
| ls without a directory argument following the options defaults to the current directory, as do most UNIX commands. ls with file arguments lists information about only those files. Hidden files (.filename) are not displayed without the -a option. |
| d = directory; - = plain file; l = link |
| r = read; w = write; x = execute. |
Last modified: Mon Sep 1 22:27:17 EDT 1997