and CORRECT Answers
rbash - CORRECT ANSWER - restricted bash shell
/etc/shells - CORRECT ANSWER - location of shells
sh - CORRECT ANSWER - bourne shell, very first iteration of shells for UNIX
$SHELL - CORRECT ANSWER - environment variable to display current shell being
used
$BASH - CORRECT ANSWER - environment variable to display location of /bin/bash
/dev/null - CORRECT ANSWER - data dump location on the machine
2 - CORRECT ANSWER - file descriptor for stderr
2>/dev/null - CORRECT ANSWER - send all errors to /dev/null
ps --forest - CORRECT ANSWER - shows, in a tree format, the processes and their
parents/children
which - CORRECT ANSWER - gives the user the path to the executable
whatis - CORRECT ANSWER - gives the user more information about a file
file - CORRECT ANSWER - gives the user the file type of a file
,{1..10} - CORRECT ANSWER - brace expansion in the bash shell
$BASH_ENV - CORRECT ANSWER - holds the name of the file to source when a script
is run
Login shell - CORRECT ANSWER - interactive shell created when authenticating onto a
machine
Non-login shell - CORRECT ANSWER - native shell not requiring the start of /etc/profile
because no remote authentication is completed
Non-interactive shell - CORRECT ANSWER - essentially a script.sh, can't interact with it.
sh, bash, dash, csh, zsh, ksh, tcsh, rbash - CORRECT ANSWER - what are the different
types of shells?
root - CORRECT ANSWER - what user is ALWAYS logged into the system?
0:0 - CORRECT ANSWER - what is the EUID/GUID of root?
/etc/profile, /etc/bash.bashrc, ~/.bash_profile, ~/.bash_login, ~/.profile, ~/.bashrc - CORRECT
ANSWER - what files are called during bash initialization?
shopt login_shell, echo $- - CORRECT ANSWER - how can you check if you are in a
login shell
redirect input, output, and pipe - CORRECT ANSWER - what do '<', '>', and '|', do on the
command line?
, 2> - CORRECT ANSWER - how do you redirect stderr
tab completion, command history, brace expansion - CORRECT ANSWER - What are
some features of BASH?
alias - CORRECT ANSWER - bash command to create an alias
unalias - CORRECT ANSWER - bash command to remove an alias
env - CORRECT ANSWER - bash command to show working environment
set - CORRECT ANSWER - bash command to show more detailed output of the working
environment
function - CORRECT ANSWER - bash starting line of script to create a function
hash - CORRECT ANSWER - database to show the bash shell recently accessed
commands
find -exec <cmd> {} \; - CORRECT ANSWER - find command to execute a command on
whatever "find" finds
man hier - CORRECT ANSWER - gives the user a description of the filesystem hierarchy
lsattr - CORRECT ANSWER - lists file attributes on a Linux second extended file system
chattr - CORRECT ANSWER - change file attributes on a Linux file system