Let’s play with the Command Line!

We got an introduction to the Command Line in The Foundation Program! Knowing how to use the command line is a great skill that you can possess. Here’s a small assignment for you. Feel free to discuss the assignment in your learning circle whatsapp group.

  1. The assignment has to be done strictly using a PC.
  2. Head over to this link
  3. Download the file (remember the path where you’re downloading it to 😉 )
  4. Once the download is complete, change directory over to the downloaded file’s directory using the command line.
  5. Unzip the file using your command line. (Google and find out the command to unzip a file using the command line, yes, googling is the key to success 😎 )
  6. Once the file is unzipped, you’ll be able to view a folder named super_directory
  7. In it you’ll find two folders named lightning and personal
  8. Change directory into the folder named lightning create another directory called thor , change directory into thor, create a file called god_of_thunder.txt
  9. To the newly created file, add the text, “THIS DRINK, I LIKE IT! ANOTHER!”
  10. Print out the contents of god_of_thunder.txt onto the terminal.
  11. Now find the other directory which was in the zipped file, called personal
  12. Rename the personal directory with your name. (do not add spaces in while renaming. Keep it like, eg: bijoy_sijo , you can use underscores to separate the words)
  13. Inside your renamed directory, create a new directory with the name of your college.
  14. Change into your college directory, create another directory with the name of your department. In your department directory create a file called i_love_college.txt
  15. Change back to the super_directory directory.
  16. Do a tree of the super_parent directory. Take a screenshot and save it with an appropriate name. (If the tree command doesn’t seem to work for you, Google how to install tree command in your shell)
  17. Once the screenshot is saved, find where you saved the screenshot 😂 , move / copy the screenshot into the super_parent directory.
  18. Use the command history in your terminal, take a screenshot of the part which contains the commands you used to do this assignment, give it an appropriate name, again, find where the screenshot is saved, move / copy the screenshot into the root of the super_parent directory.