27 Commonly Used Unix Commands The commands below may be quite useful in CPSC 223; see Wang, the on-line manual page ("man COMMAND"), or the info system ("info command") for full details (most have many options). Command Description ~~~~~~~ ~~~~~~~~~~~ man Display on-line manual page for command specified info Read documentation for command specified using Emacs-style interface cp Make copy of file mv Change name of file (useful variant: move file to new directory) rm Delete file (WARNING: there is no "undelete") chmod Change protection of file/directory more Display contents of file one screen at a time cat Display contents of file without pausing (useful options: -vet) head Display beginning lines of file tail Display ending lines of file ls List files/directories specified (default: current working directory) cd Change current working directory (default: change to home directory) pwd Display name of current working directory mkdir Create new directory rmdir Delete empty directory emacs Text editor gcc GNU C compiler make Maintain programs gdb GNU debugger ddd Graphical interface to gdb valgrind Tool for finding and debugging memory problems indent C program beautifier diff Compare two text files line-by-line cmp Compare two files byte-by-byte od Display contents of file in octal grep Search for string in file lpr Print file CS-223-01/16/13