105.1 Customize And Use The Shell Environment Flashcards
List all shell options.
set -o
Turn on the allexport shell option just for this session.
set -o allexport
Turn off the noclobber shell option just for this session.
set +o noclobber
Turn on the noglob shell option permanently for all shell logins.
vi ~/.profile
set -o noglob
Display function names and contents.
declare -f
Display function names.
declare -F
A more concise form of if/then statements using && or ||.
Command line lists
Command to remove an alias.
unalias [name]
Remove declared functions and shell variables.
unset [name]
The primary prompt environment variable for setting the prompt value and formatting.
PS1
Run ls without an alias.
\ls
Location of user profile variables.
~/.bash_profile
Location of user login commands.
~/.bash_login
Location of global profile variables like $PATH.
~/.profile
Location of shell variables.
~/.bashrc
Not a login script, runs when starting a new shell.