Lab 11

In this lab you will experiment with different bash configuration files and customize your prompt.

Complete these on your CLI VM Linux machine. Have Fun!!!!

Part I

Create the following aliases in your .bashrc:

1 After it is completed - run all of your aliases sequentially and Take a screenshot

Part II

Experiment with changing your prompt. When you are done, create the following aliases in your .bashrc file.

2 After it is completed - run all of your aliases sequentially and Take a screenshot

PART III

Editing the .bashrc file allows us to customize what happens everytime we log in. Edit the end of the .bashrc file so that when a user logs in a nice welcome message is printed to the screen. You should visit this site to find a nice ascii art message that will display when you login.

When echoing mulitple lines of text you should use triple quotes:

echo """Using multiple lines
    is Cool stuff"""

When you copy and paste ascii art sometimes it will have special reserved characters in the text. This will cause an error in your bashrc file.

Record some information everytime a user logs in or out. The file .bashrc is run when someone logs in. The file .bash_logout is run when someone logs out of the system. At the end of your .bashrc and .bash_logout files craft a nice message for someone logging in and logging out, with date and time that will append to a file called log.txt in your home directory. This should be relatively easy with judicious usage of echo, date, and redirection operators. Test to make sure it is working correctly.

3 Take a screenshot of your working welcome message

4 Take a screenshot of your changes to the bashrc file

To Pass off

Submit your screenshots in Canvas

Last Updated 11/09/2018