Question
UNIX/LINUX i. Create a Bash login file with the following settings Create a Bash login file with the following settings Set your history size to
UNIX/LINUX
i. Create a Bash login file with the following settings
Create a Bash login file with the following settings
Set your history size to 100
Include the directory IFT250 as the first directory of your PATH
Set the VISUAL environment variable to vi
# Bash shell prompt
Set your prompt to the login shell followed by underscore, then !$ and a space. For example, if your login shell is Bourne, your prompt should be: sh_!$
Note: To extract a basename (eg. sh) from a pathname (e. g. /usr/bin/sh), you can use the command basename $pathname
# File creation
Set your umask to 077
# File creationSet your umask to 077
# Display the following Welcome Message
Welcome
Today is
# Display the following system information
The command last shows listing of last logged in users.
The command logname print the users login name
If you combine the commands last with logname (last `logname`), it displays the listing of the last logged in for the user
To get the users last 3 logins, you can use the command: last `logname` | head -3
The users command display a one-line list of users currently logged in
Use the above command to display the following system information:
Last three logins:
Current users:
# Execute your environment file
if [ -f ${HOME}/.bashrc ]
then source ${HOME}/.bashrc
fi
ii. Create a Bash environment file with the following settings
Create a Bash environment file with the following settings
Create a Bash environment file with the following settings
Create a Bash environment file with the following settings
# Aliases
Set alias a for the command alias
Set alias d for the command date
Set alias h for the command history
Set alias la for the command ls a
Set alias ll for the command ls l
Set alias r for the command fc s
iii. Create a Bash logout file with the following Message
Create a Bash logout file with the following Message
Till next time!!!
iv. Create a vim environment file with the following settings
Define any abbreviation with the command
:ab ASU Arizona State University;
:ab
Define any macro with command
:map g 1G
:map K deep
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started