A summary for some importat Bash configuration
Command
|
Description
|
set
|
set [options] [arguments]
sign (-) is used with the command’s option to enable that option and the plus sign (+) is used with the command’s option to disable that option
-a
|
It defines those variables or functions which are created or modified or exported.
|
-b
|
It informs the job termination.
|
-B
|
To do the task of the brace expansion.
|
-C
|
It disables the overwriting feature of the existing file.
|
-e
|
It exits for non-zero exit status value.
|
-f
|
It disables the filename generation task.
|
-h
|
It saves the location of the command where it has been used.
|
-m
|
It enables job control.
|
-n
|
It reads the commands.
|
-t
|
It exits from the command after executing a single command.
|
-u
|
It traces the unset variables.
|
-v
|
It prints the shell input lines.
|
-x
|
It displays the commands and their attributes sequentially. It is mainly used to debug the script.
|
|