Wednesday, 8 August 2012


Bash Shell Commands

The following table is a list of bash shell commands.
The bash shell commands are all described on the same man page (man bash).
Command
Description
 
aliasCreate an alias
 
breakExit from a loop
 

caseEvaluate one of several scripts, depending on a given value
 

cdChange directory


commandRun a command - ignoring shell functions
 

continueResume the next iteration of a loop
 

declareDeclare variables and give them attributes
 

dirsDisplay list of remembered directories
 

enableEnable and disable builtin shell commands
 

evalEvaluate several commands/arguments
 

execExecute a command
 

exitExit the shell
 

exportSet an environment variable
 

forExpand words, and execute commands
 

hashRemember the full pathname of a name argument
 

historyCommand History
 

ifConditionally perform a command
 

letPerform arithmetic on shell variables
 

localCreate variables
 

logoutExit a login shell
 

popdRestore the previous value of the current directory
 

pushdSave and then change the current directory
 

readread a line from standard input
 

readonlyMark variables/functions as readonly
 

returnExit a shell function
 

setManipulate shell variables and functions
 

shiftShift positional parameters
 

shoptShell Options
 

sourceRun commands from a file `.'
 

timesUser and system times
 

typeDescribe a command
 

ulimitLimit user resources
 

umaskUsers file creation mask
 

unaliasRemove an alias
 

unsetRemove variable or function names
 

untilExecute commands (until error)
 

whileExecute commands
 

No comments:

Post a Comment