<<
Home , ENV

eject Ejects removable media such as 's, DVD's, Zip lpr [­P] Print textfile on the line reset Resets the terminal to a normal state. Often needed drives. printer. sure it is a textfile­­don't print after catting a binary . env Run a command in a modified environment. machine­code files! (See reset.) rev Reverses lines from file. exec Execute command from a new shell. lprm [­P] Remove job from printer Remove (delete) a file from the disk. Converts tabs to spaces. queue.

Removes directory dir. Evaluate expressions. [­a][l] List the files in the current directory on the Stream editor. Lots of options for modifying files file Determines the of the file. screen. Without the ­a option, filenames starting passing through sed. Find files by almost any criterion with “.” will not be listed. ­l option generates a sh Launches Bourne shell. except by their contents. “long” listing with file permissions, sizes, shutdown Shuts system down, or least pretends finger Displays information about users. timestamps, etc. to. Sends shutdown notice to all logged­in users. free Displays amount of free and allocated memory in the lsmod Lists driver modules loaded into kernel. shutdown ­h now Shuts system down to a true halt, system. lspci Lists devices connected to the PCI bus. immediately. funzip Used for unzipping files in a pipeline. man [] Print the online delays processing for n seconds. fsck File system check. A front end to utilities to check manual entry for the command on the Sorts file contents. various filesystems, e.g., ext2, ext3, ext4, reiserfs, screen. The manual entry is piped through ­b size Splits a file into smaller files of size bytes. vfat, etc. , so use , , and q (etc.) as Filters out all except ASCII strings from a g++ [­g] [­o ] [...] described for more. file. Compile C++ source file, file.cpp. File [y|n] Permits or denies writing to your console. stty Set terminal options. name must end with ``.cpp'' or “.c”. Machine code Create a new directory. su Request superuser privileges in a new shell. object file will be a.out unless ­o option is used. ­g mkfs Front end to utilities which build a filesystem on sux su with X­windows passthrough. option embeds debugging data for gdbg or kdbg. a formatted disk. (Note that Unix distinguishes su Become a different user in a new shell. file Search file for string(s) matching the between formatting, i.e., creating the pattern of swapon Starts use of indicated swap space. regexp. tracks and sectors, and making a filesystem on swapoff Terminates use of indicated swap space. group Lists the groups to which the user belongs. that pattern.) Synchronize filesystems. (Update disk filesystem grub­ Installs the Grand Unified Bootloader. mkswap Prepares a partition to be used as swap (i.e., data from memory's filesystem data. Use sync gzip, gunzip Used to compress and decompress files. virtual memory) space. before pulling a removable read­ filesystem Zip does not compress as effectively as Bzip2. modprobe Adds driver modules to or removes such as a floppy or USB flash drive. [­c bytes|­n lines] Filters out all but the modules from a running kernel. [­c bytes|­n lines] Filters out all but the last (tail) top (head) lines or bytes of file. more Print textfile on the screen, one characters or lines of a file. hostname Prints domain name or IP address. screenful at a . gives one more tar Use to create and manage file archives. id [] Prints real and effective UID's and GID's screenful. gives one more lineful. less tar xvfz De­zip (z option) archive and extract (x for logged in user or user. is more powerful; more is aliased to less on option) all files from archive file file.tgz. info Displays manual information bout GNU many systems. tar xvfj Same as "tar xvfz" except file.tbz is a commands. mount ­t bzip2­compressed archive. insmod Installs driver module into running kernel. Use Mounts a filesystem. One of and Copies standard input to standard output and to a modprobe instead; it's more flexible. is optional if both are listed in file. ispell Interactive spell­checking /etc/fstab. Updates a file's timestamp. Creates an Terminate the process with the indicated process ID Move file1 to ­and­filename file2. empty file if none exists. number. Commonly used to rename files. tty Reports what device or terminal you are using. last Display listing of last logged­in users. nano Launch text editor from pine email client. Not Masks out permissions. E.g., less Same as more, but has additional commands: b found on all Unix systems, since nano is not umask 77 prevents group and others from being moves back one screenful. Experiment to see what free software. given access to new files by default. other keys do. Press q (quit) when done. Prints file with line numbers. umount | Unmounts filesystem. [­s] Creates file2 as a [symbolic] Prints formatted output. Gives name and version. to file1. List processes running on the computer. ps aux Removes duplicate lines. locate Searches for files on the local system. lists all processes. uncompress Uncompresses compressed files. lpq [­P] Print a listing of the jobs on a printer Print current working directory on screen. Edit file using vi editor. If file doesn't exist, it will be queue. read ... Reads value of var1, var2, created. See vi reference card for vi commands. … from the keyboard. w Prints statistics on logged­in users and their system utilization. [­c|­w|­l] Count characters, words, or lines in a file. Unix , I/O Redirection and Multiple Unix Commands whereis Find path to a command. Commands Michael P. Conlon, Ph.D. which Displays the full pathname of a command. Execute command in foreground. Prints statistics on logged­in users. & Execute command in background, i.e., Slippery Rock University Prints your usercode. return the prompt without waiting for the August 26, 2010 write Sends a message to another logged­in user. command to complete. Often used when launching GUI programs from the command apropos List Unix commands whose descriptions in Network Commands shell. the online manual contain the string. Used for finding finger [@] Find user information. D End of text. Used to indicate end­of­file for unknown commands. ftp Download/upload files using FTP protocol. keyboard input and to log out of single­user apt­get Utility to install (etc.) software packages in Debian Insecure. Use for anonymous FTP only. mode. Linux and derivatives, e.g., Ubuntu. host DNS or reverse DNS lookup. C Kill foreground job. (Doesn't always work.) at ­f file