![]() |
SYSTEM STATUS
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| date | Give the system date and time | |
| du | Disk usage | |
| du [options] [dir(s)] | ||
| Summarize disk usage for directory dir or for if dir is not specified. | ||
| Useful Options: | -s give total only -a give size of each file |
|
| env | Display the current environment variables | |
| id | Give user and group identification | |
| kill | Terminate a process | |
| kill [-signal_number] process_id(s) | ||
| Send or read mail | ||
| (different versions of this program exist on different systems) | ||
| news | Read system news | |
| (different versions of this program exist on different systems) | ||
| news may include a network bulletin board as well as local items. | ||
| ps | Process status | |
| ps [options] | ||
| (Report process information for user or system processes. Options allowed may vary.) | ||
| pwd | Print working directory | |
| Give full pathname of current working directory | ||
| stty | Set or display terminal characteristics | |
| stty [options] | ||
| tset | Terminal set program | |
| tset [options] terminal -id | ||
| tell UNIX what kind of terminal you have | ||
| Useful options: | - write the name of the terminal to the standard
output -ec set erase character to c -kc set kill character to c |
|
| tty | Display special device corresponding to current terminal | |
| whereis | (BCD only) gives pathnames corresponding to command | |
| who | Who is logged onto UNIX | |
| write | Write to another user | |
| write user [ttyname] | ||
| write sends lines of text form your terminal to user. If user is logged on more than once, you may specify a tty identification. user responds by executing concurrently, write terminates when it reads an EOF. | ||
| ar | Archive and library maintainer | |
| ar key [position] library member_name (s) | ||
| Archive according to key using archive file library and constituents member_name | ||
| Keys: | d delete r replace q append quickly t produce a table p print the named member_names m move x extract |
|
| cb | C beautifier | |
| cb reads the standard input and produces a C program with appropriate spacing and indentation to indicate its structure | ||
| cc | C compiler | |
| cc [options] file(s) | ||
| Compile file(s) using named options. Files must be of the form file.c | ||
| Useful options: | -c produce an object file but don't call
the loader -o out name the output file out instead of a.out -s strip the symbol table -O optimize the object code |
|
| cmp | Compare two files | |
| cmp [options] file1 file2 | ||
| Compare files file1 and file2, If file1 is -, the standard input is used. Exit code 0 means the files are the same, 1 means the files differ, and 2 means the file is not accessible or an argument is missing. | ||
| Useful options: | -l display the byte number and the differing
bytes for each difference (long listing) -s no output; just return proper exit codes |
|
| nm | Display namelist | |
| nm [options] [file(s)] | ||
| nm displays the symbol table of each file in the argument list. If no file is specified, a.out is used. | ||
| Useful options: | -g display global symbols -n sort Output numerically (instead of alphabetically) -u display only undefined symbols |
|
| od | Octal, decimal, hexadecimal, or ASCII dump | |
| od [option] [file(s)] * | ||
| od displays file (or the standard input if no file is specified) in format indicated in option. Octal is the default format. | ||
| Useful options: | -a bytes as ASCII format -b bytes as unsigned octal -d words as unsigned decimal -h words as unsigned hexadecimal -o words as unsigned octal -x words as hexadecimal |
|
| size | Size of an object file | |
| size [object_file(s)] | ||
| Display the number of bytes required by the text, data and BSS portion of an object file. Displays sum in hexadecimal and decimal. If no object_file is specified, size uses a.out. | ||