This document provides a list of basic Unix commands and their descriptions. Some key commands include ls to list directory contents, cp to copy files, rm to remove files, file to determine a file type, find to search file hierarchies, gcc and g++ for C and C++ compilation, gdb for debugging, less and more for viewing text files, diff and cmp to compare files, and vi as a text editor. Other useful commands are man for manuals, mv to move files, chmod to change permissions, and pwd, cd, and ln for file navigation and linking.
Download as XLS, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
27 views
Commands
This document provides a list of basic Unix commands and their descriptions. Some key commands include ls to list directory contents, cp to copy files, rm to remove files, file to determine a file type, find to search file hierarchies, gcc and g++ for C and C++ compilation, gdb for debugging, less and more for viewing text files, diff and cmp to compare files, and vi as a text editor. Other useful commands are man for manuals, mv to move files, chmod to change permissions, and pwd, cd, and ln for file navigation and linking.
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 2
Basic Unix Commands
Unix Command Description
ls List directory contents cp Copy files rm Remove directory entries file Determine file type find Walk a file hierarchy which Locate a program file in the user's path whereis Locate programs gcc, g++ GNU project C and C++ Compiler gdb The GNU Debugger less View the contents of a text file diff Find differences between two files cmp Compare two files vi Text editor chmod Change file modes man Display the on-line manual pages mv Move and rename files ispell Interactive spelling checker biff Be notified if mail arrives and who it is from lpr Print a file lpq Show the print queue ftp Transfer a file to another Unix system logout Quit using the system pwd Print working directory name cd Change working directory ln Make a file link mkdir Make directories rmdir Remove directories chmod Change file modes quota Display disk usage and limits history Display a list of recent commands ps Show the status of processes kill Stop a running processes passwd Change your password alias Create a command alias unalias Delete a command alias export Set an environment variable script Record your terminal session to a file bg Send a job to the background fg Bring a job to the foreground jobs Print a list of current jobs Links