CS Week-3 Linux

In a terminal session on MUN’s Linux servers (accessed via the instructions below or by simply logging into Linux on a LabNet machine), screenshot a session of you completing the following:

1. Navigating to a directory that has some files in it;
2. Listing contents of the directory;
3. Redirecting content listing of a directory to a new file;
4. Append some text to the content listing file;
5. Piping output of “sort” of the above file through “less”, showing a sorted version (alphabetically by default) of the file (hint: this is demonstrated under the “Piping” section of the tutorial using “ls”. Your command will start with “sort” and “head” should be replaced with “less”);

You can include multiple steps on 1 screenshot, but attach as many screenshots as needed. Include these as image files. **Please note you should be logged in to MUN’s Linux servers for this challenge**.

Follow this tutorial for help (Section 11 will help you with the majority of this challenge, but Section 1 – 3, and Section 9 are very helpfu): https://ryanstutorials.net/linuxtutorial/ Also, bringing up the manual of commands can be helpful and is also explained under the tutorials.

How to access MUN’s Linux servers using either Mac, Windows, or Linux –
https://courses.cs.mun.ca/schedules/remoteaccess/remoteaccess.html

 

My submission:

 

Leave a Reply

Your email address will not be published. Required fields are marked *