103.1 Command Line (Env Vars, Displays) Flashcards
env variables
shortcuts with easy to use and remember designation that allow you to indicate
paths
commands
aliases
other info
env variables
env variables
command to list all env vars set for the current session EXCEPT for shell settings
env
set
used to view any shell settings or shell variables for the session
set
shopt
used to view any shell settings or shell variables for the session
shopt
PATH
env var containing a colon separated listing of directories that are searched - in order for command executable files
PATH
PATH
absolute path
/home/user/command
PATH
env var is set for the system here
/etc/profile
PATH
can be modified on command line or any other executable sourced script
/home/user/.bashrc
HISTFILE
command uses this value to display a list of previously run commands
history
HISTFILE
by default the value for any user will be
/home/user/.bash_history
HISTFILE
index of current command
HISTCMD
HISTFILE
when set to ignorespace any command preceeded by blank space with NOT be recorded in history file
HISTCONTROL
HISTFILE
number of lines that can be used to hold previous commands
default == 500
HISTFILESIZE
env var change
overwrite
Overwrite export VARIABLE=newValue
env var change
append
Append
export VARIABLE=$VARIABLE:newValue