shells Flashcards
name some shells
Bash, Dash, KornShell, tcsh, Z shell
display current shell on Cent OS
echo $SHELL
display current shell on Ubuntu
uname -a to provide all system information such as processor type, OS name
what does the type command do
lets you know if a command is internal or external
environmental variables
track specific system info, such as name of user logged onto shell, default home dir, search path shell uses to find exe programs
set
displays active environmental variables
$PATH
colon separated list of directories to search for commands
PS1
shell prompt
subshell / childshell
created when you perform certain tasks, such as running a shell script.
echo $SHLVL
any level higher than 1 indicates you are in a subshell
man
documentation regarding a command’s purpose, various options, syntax, etc
history
view recent commands
how to reexecute commands in command history?
put an exclamation mark prior to the number