Professional Documents
Culture Documents
Linux Console Commands
Linux Console Commands
info
Use/Description Lists general information about the command, including switches Lists the page from the built-in manual about the command. This contains very detailed information about the command. Displays information and documentation on shells, utilities and programs.
Directory and file location commands Command Use/Description cp source destination Copies a file from source to destination mv source destination Moves a file from source to destination. Also renames file source to destination. rm filename Deletes (removes) a file rmdir filename Deletes (removes) a directory mkdir filename Creates (makes) a directory ls Lists the contents of a directory ln existingfile new-link Creates link to an existing file (hard link) ln s existingfile new-link Creates link to an existing file (soft link)
Page 2
Use/Description
Looks through filename(s) for a string Displays the first 10 lines of filename. If n is specified, displays the first n lines of filename Displays the last 10 lines of filename. If n is specified, displays the last n lines of filename Displays the differences between filename1 and filename2 Displays the information about file contents Displays the contents of a file in the terminal. Displays and sorts the contents of a file Opens the vi editor Opens the pico editor Opens the emacs editor Finds the location of a filename starting from directory. Does more than locate, such as: delete files, change owners, display by permission, etc. Finds the location of a filename
Use/Description
Clear the screen List who is logged in the session Copies string to a terminal List the current date and time Display a calendar Displays a commands location in the directory structure List currently logged in users Goes from command mode to graphical mode
Page 3
Use/Description
Depending upon the switches value, combines (but NOT compresses) a list of filesToCompress into a filename, or extracts the files in the filename Compresses (and decompresses) the file Same as gzip Displays the contents of a compressed file
Use/Description
Wildcard (one or more characters) Wildcard (one character)
Use/Description
Sends filename to the printer Lists files in the printing queue Removes file from the printing queue
Page 4