Identify which initialization file(s) you have Create (or modify) the login file
ID: 3665178 • Letter: I
Question
Identify which initialization file(s) you have
Create (or modify) the login file ~/.bash_login with the following commands:
Command to include CST383 directory in your PATH
Command to set the environment variable HISTSIZE to 20
Command to create an environment variable ISON that contains the list (usernames) of people who were logged in at the time you logged in.
Command to display the message “Welcome ” <your username>
Command to display the message “Today is ” <date>
Add the following segment code so that the shell can run your environment file
if [ -f $HOME/.bashrc ]
then source $HOME/.bashrc
fi
Now create the environment file ~/.bashrc with the following commands:
Command to set the noclobber option to protect from accidentally deleting a file
Command to set the ignoreeof option to force the use of exit or logout to log off
Command to abbreviate the command alias as a
Command to make permanent the aliases h and re defined in activity 26
Command to define the alias dir as ls –F
Explanation / Answer
Content of .bash_login
export HISTSIZE=20
PATH=$PATH:/CST383/
export PATH
echo WHO : '/usr/bin/who'
echo "Welcome $(whoami)"
echo "Today is $(date)"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.