Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Look at your ~/.profile, ~/.bashrc, ~/.bash_profile, ~/.bash_login, and /etc/pro

ID: 3613175 • Letter: L

Question

Look at your ~/.profile, ~/.bashrc,  ~/.bash_profile,   ~/.bash_login, and /etc/profile files and list the envirironment variable thatare exported along with their values. What is the purpose of eachvariable ?   What command did you use to list theexported variables ? This is a Linux question Thanks, will rate lifesaver !! Look at your ~/.profile, ~/.bashrc,  ~/.bash_profile,   ~/.bash_login, and /etc/profile files and list the envirironment variable thatare exported along with their values. What is the purpose of eachvariable ?   What command did you use to list theexported variables ? This is a Linux question Thanks, will rate lifesaver !!

Explanation / Answer

->When a login shell starts up, the following files aresourced:           ->/etc/profile,if it exists.           ->Itsources the first of these that it finds, searching for them inthis order:~/.bash_profile, ~/.bash_login,~/.profile.              ->Ifthe shell is not a login shell, then it will source both/etc/bash.bashrc and ~/.bashrc, if each of them exists. List of environment variables: ->/etc/profile:To export environmentvariables for all users when they log in using a bash, sh, or ksh(and other) shell. ->/etc/skel : directory from whichnew home directories get a copy of files. ->env: display environment variables, orrun a command with a modified environment. ->export:make environment variablesavailable to commands. ->set:display environment, or controloperation of the bash shell. ->unset: completely remove variables orfunctions from environment. ->In $ man bash: search forPROMPTING.There are also other prompts: PS2, PS3, PS4. ->'export' command is use to list the exportedvariables. ITS HELPFUL TO YOU........ ->'export' command is use to list the exportedvariables. ITS HELPFUL TO YOU........
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote