CS699: Software Foundation Lab
Lab 2: Bash Scripting and Git Usage
Part 1 - Exploring bashrc



SUB-PART A

Aim

  • You are required to modify your .bashrc file (which is a hidden file in your home folder) and create an alias inside it.
  • The alias should be able to get the space usage of all the files and folders and display it on your screen.
  • The output of your script should display a list of files and folders in the current directory on the Terminal (to be more "precise").
  • You should take a screenshot of the output, when your script is executed in the "home" folder and paste the .jpg or .png in the folder named q1.
  • You are also required to paste the .bashrc file in the folder q1.

SUB-PART B

Aim

  • You are 'yet-again' required to change your .bashrc file to display your "NAME" every time you log on to your Linux (e.g. Ubuntu) Terminal.
  • It should be an ASCII art which can be created using the web-service: link.
  • The link above allows you to type any text and create ASCII art of the text using special characters on your keyboard. You can add such text to your .bashrc file and try logging in again to the Terminal.
  • When your welcome message is displayed, please take a screenshot similar to the last statement and paste in the folder q1.
  • You must also paste your modified .bashrc file in the folder q1.

To check the content of folder q1:

$ ls -A q1/

Output of above command should look like:

q1
├── .bashrc
├── screenshot_of_sub-partA.png
└── screenshot_of_sub-partB.png

Part 1 will be checked manually and graded accordingly.



ALL THE BEST