Question: 1. (20 points) Write a profile file (for a bash shell) so that it sets the following environment: Adds the aliases md for mkdir and

 1. (20 points) Write a profile file (for a bash shell)

1. (20 points) Write a profile file (for a bash shell) so that it sets the following environment: Adds the aliases md for mkdir and rd for rmdir Adds an alias where a user can logout by simply typing x and pressing return Changes the prompt so that it displays the current command number, the current user name, the current shell, and the current directory Gets the full name of the user from the /etc/passwd file and stores it in a variable called full Displays a message "Welcome . "followed by the full name of the user . Displays the message "It is now N followed by the current date and time Displays the line "Last 3 commands" followed by the last three (3) commands executed by the user. Appends the current directory (.) to the PATH variable. .Changes the second prompt (PS2) so that it displays "continue> "whenever additional text is expected from the user. Exports the full variable to any new shell started by the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!