Advertisement
cirrus

An A-Z Index of the Bash command line for Linux

Sep 17th, 2012
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.38 KB | None | 0 0
  1. An A-Z Index of the Bash command line for Linux
  2.  
  3. a
  4. alias Create an alias •
  5. apropos Search Help manual pages (man -k)
  6. apt-get Search for and install software packages (Debian/Ubuntu)
  7. aptitude Search for and install software packages (Debian/Ubuntu)
  8. aspell Spell Checker
  9. awk Find and Replace text, database sort/validate/index
  10. b
  11. basename Strip directory and suffix from filenames
  12. bash GNU Bourne-Again SHell
  13. bc Arbitrary precision calculator language
  14. bg Send to background
  15. break Exit from a loop •
  16. builtin Run a shell builtin
  17. bzip2 Compress or decompress named file(s)
  18. c
  19. cal Display a calendar
  20. case Conditionally perform a command
  21. cat Concatenate and print (display) the content of files
  22. cd Change Directory
  23. cfdisk Partition table manipulator for Linux
  24. chgrp Change group ownership
  25. chmod Change access permissions
  26. chown Change file owner and group
  27. chroot Run a command with a different root directory
  28. chkconfig System services (runlevel)
  29. cksum Print CRC checksum and byte counts
  30. clear Clear terminal screen
  31. cmp Compare two files
  32. comm Compare two sorted files line by line
  33. command Run a command - ignoring shell functions •
  34. continue Resume the next iteration of a loop •
  35. cp Copy one or more files to another location
  36. cron Daemon to execute scheduled commands
  37. crontab Schedule a command to run at a later time
  38. csplit Split a file into context-determined pieces
  39. cut Divide a file into several parts
  40. d
  41. date Display or change the date & time
  42. dc Desk Calculator
  43. dd Convert and copy a file, write disk headers, boot records
  44. ddrescue Data recovery tool
  45. declare Declare variables and give them attributes •
  46. df Display free disk space
  47. diff Display the differences between two files
  48. diff3 Show differences among three files
  49. dig DNS lookup
  50. dir Briefly list directory contents
  51. dircolors Colour setup for `ls'
  52. dirname Convert a full pathname to just a path
  53. dirs Display list of remembered directories
  54. dmesg Print kernel & driver messages
  55. du Estimate file space usage
  56. e
  57. echo Display message on screen •
  58. egrep Search file(s) for lines that match an extended expression
  59. eject Eject removable media
  60. enable Enable and disable builtin shell commands •
  61. env Environment variables
  62. ethtool Ethernet card settings
  63. eval Evaluate several commands/arguments
  64. exec Execute a command
  65. exit Exit the shell
  66. expect Automate arbitrary applications accessed over a terminal
  67. expand Convert tabs to spaces
  68. export Set an environment variable
  69. expr Evaluate expressions
  70. f
  71. false Do nothing, unsuccessfully
  72. fdformat Low-level format a floppy disk
  73. fdisk Partition table manipulator for Linux
  74. fg Send job to foreground
  75. fgrep Search file(s) for lines that match a fixed string
  76. file Determine file type
  77. find Search for files that meet a desired criteria
  78. fmt Reformat paragraph text
  79. fold Wrap text to fit a specified width.
  80. for Expand words, and execute commands
  81. format Format disks or tapes
  82. free Display memory usage
  83. fsck File system consistency check and repair
  84. ftp File Transfer Protocol
  85. function Define Function Macros
  86. fuser Identify/kill the process that is accessing a file
  87. g
  88. gawk Find and Replace text within file(s)
  89. getopts Parse positional parameters
  90. grep Search file(s) for lines that match a given pattern
  91. groupadd Add a user security group
  92. groupdel Delete a group
  93. groupmod Modify a group
  94. groups Print group names a user is in
  95. gzip Compress or decompress named file(s)
  96. h
  97. hash Remember the full pathname of a name argument
  98. head Output the first part of file(s)
  99. help Display help for a built-in command •
  100. history Command History
  101. hostname Print or set system name
  102. i
  103. iconv Convert the character set of a file
  104. id Print user and group id's
  105. if Conditionally perform a command
  106. ifconfig Configure a network interface
  107. ifdown Stop a network interface
  108. ifup Start a network interface up
  109. import Capture an X server screen and save the image to file
  110. install Copy files and set attributes
  111. j
  112. jobs List active jobs •
  113. join Join lines on a common field
  114. k
  115. kill Stop a process from running
  116. killall Kill processes by name
  117. l
  118. less Display output one screen at a time
  119. let Perform arithmetic on shell variables •
  120. ln Make links between files
  121. local Create variables •
  122. locate Find files
  123. logname Print current login name
  124. logout Exit a login shell •
  125. look Display lines beginning with a given string
  126. lpc Line printer control program
  127. lpr Off line print
  128. lprint Print a file
  129. lprintd Abort a print job
  130. lprintq List the print queue
  131. lprm Remove jobs from the print queue
  132. ls List information about file(s)
  133. lsof List open files
  134. m
  135. make Recompile a group of programs
  136. man Help manual
  137. mkdir Create new folder(s)
  138. mkfifo Make FIFOs (named pipes)
  139. mkisofs Create an hybrid ISO9660/JOLIET/HFS filesystem
  140. mknod Make block or character special files
  141. more Display output one screen at a time
  142. mount Mount a file system
  143. mtools Manipulate MS-DOS files
  144. mtr Network diagnostics (traceroute/ping)
  145. mv Move or rename files or directories
  146. mmv Mass Move and rename (files)
  147. n
  148. netstat Networking information
  149. nice Set the priority of a command or job
  150. nl Number lines and write files
  151. nohup Run a command immune to hangups
  152. notify-send Send desktop notifications
  153. nslookup Query Internet name servers interactively
  154. o
  155. open Open a file in its default application
  156. op Operator access
  157. p
  158. passwd Modify a user password
  159. paste Merge lines of files
  160. pathchk Check file name portability
  161. ping Test a network connection
  162. pkill Stop processes from running
  163. popd Restore the previous value of the current directory
  164. pr Prepare files for printing
  165. printcap Printer capability database
  166. printenv Print environment variables
  167. printf Format and print data •
  168. ps Process status
  169. pushd Save and then change the current directory
  170. pwd Print Working Directory
  171. q
  172. quota Display disk usage and limits
  173. quotacheck Scan a file system for disk usage
  174. quotactl Set disk quotas
  175. r
  176. ram ram disk device
  177. rcp Copy files between two machines
  178. read Read a line from standard input •
  179. readarray Read from stdin into an array variable •
  180. readonly Mark variables/functions as readonly
  181. reboot Reboot the system
  182. rename Rename files
  183. renice Alter priority of running processes
  184. remsync Synchronize remote files via email
  185. return Exit a shell function
  186. rev Reverse lines of a file
  187. rm Remove files
  188. rmdir Remove folder(s)
  189. rsync Remote file copy (Synchronize file trees)
  190. s
  191. screen Multiplex terminal, run remote shells via ssh
  192. scp Secure copy (remote file copy)
  193. sdiff Merge two files interactively
  194. sed Stream Editor
  195. select Accept keyboard input
  196. seq Print numeric sequences
  197. set Manipulate shell variables and functions
  198. sftp Secure File Transfer Program
  199. shift Shift positional parameters
  200. shopt Shell Options
  201. shutdown Shutdown or restart linux
  202. sleep Delay for a specified time
  203. slocate Find files
  204. sort Sort text files
  205. source Run commands from a file `.'
  206. split Split a file into fixed-size pieces
  207. ssh Secure Shell client (remote login program)
  208. strace Trace system calls and signals
  209. su Substitute user identity
  210. sudo Execute a command as another user
  211. sum Print a checksum for a file
  212. suspend Suspend execution of this shell •
  213. symlink Make a new name for a file
  214. sync Synchronize data on disk with memory
  215. t
  216. tail Output the last part of file
  217. tar Tape ARchiver
  218. tee Redirect output to multiple files
  219. test Evaluate a conditional expression
  220. time Measure Program running time
  221. times User and system times
  222. touch Change file timestamps
  223. top List processes running on the system
  224. traceroute Trace Route to Host
  225. trap Run a command when a signal is set(bourne)
  226. tr Translate, squeeze, and/or delete characters
  227. true Do nothing, successfully
  228. tsort Topological sort
  229. tty Print filename of terminal on stdin
  230. type Describe a command •
  231. u
  232. ulimit Limit user resources •
  233. umask Users file creation mask
  234. umount Unmount a device
  235. unalias Remove an alias •
  236. uname Print system information
  237. unexpand Convert spaces to tabs
  238. uniq Uniquify files
  239. units Convert units from one scale to another
  240. unset Remove variable or function names
  241. unshar Unpack shell archive scripts
  242. until Execute commands (until error)
  243. uptime Show uptime
  244. useradd Create new user account
  245. userdel Delete a user account
  246. usermod Modify user account
  247. users List users currently logged in
  248. uuencode Encode a binary file
  249. uudecode Decode a file created by uuencode
  250. v
  251. v Verbosely list directory contents (`ls -l -b')
  252. vdir Verbosely list directory contents (`ls -l -b')
  253. vi Text Editor
  254. vmstat Report virtual memory statistics
  255. w
  256. wait Wait for a process to complete •
  257. watch Execute/display a program periodically
  258. wc Print byte, word, and line counts
  259. whereis Search the user's $path, man pages and source files for a program
  260. which Search the user's $path for a program file
  261. while Execute commands
  262. who Print all usernames currently logged in
  263. whoami Print the current user id and name (`id -un')
  264. wget Retrieve web pages or files via HTTP, HTTPS or FTP
  265. write Send a message to another user
  266. x
  267. xargs Execute utility, passing constructed argument list(s)
  268. xdg-open Open a file or URL in the user's preferred application.
  269. yes Print a string until interrupted
  270. . Run a command script in the current shell
  271. !! Run the last command again
  272. ### Comment / Remark
  273.  
  274. Commands marked • are bash built-ins, these are available under all shells.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement