2.6 Flashcards
A shell that runs after the user successfully logs in using a user ID and password.
login shell
A shell that is opened without requiring the user to authenticate with a user ID and password
Non-login shell
A special file containing a script that is run during a shell startup. its how the user gets to the interface
shell configuration file
There are two shell types that determine which shell configuration files are executed.
login shells and Non login shells
login shells will run after using one of the following su commands
su -l
sudo -i
non login shells will open after executing one of the following commands
su
sudo
one way to determing the shell type is to run ________ commmand
echo $0
if the echo 0$ returns a dash followed by the name of the shell then it is ________ shell
login
/etc/bashrc or /etc/bash.bashrc is run by
all users non login shell
~/.bashrc is run by
the specified user and its a non login
/etc/profile is run by
all users login shell
*.sh files in the /etc/profile.d/derectory is run by
all users login shell
~/.bash_profile is run by
the specified user login shell
~/.bash.login s run by
the specified user login shell
~/.profile is run by
the specified user login shell