Student ID
You can put any integer number here to generate different exercises for practice. However you must submit the activity associated with your ID number to D2L in order to receive credit for the activity.
Simple Linux Commands Activity
Part 1 - Who is Logged In
- Run the command to show the list of users currently logged into the sit.cna-qatar.edu.qa server. Run the command to show the current time.
- Search the internet to find out how to run both the above commands in a single line (there are a couple of ways to do this but the output should be list of the users followed immediately by the current time.
- Capture a screenshot of the combined command and add this to your document.
Part 2 - Disk Usage
The disk free (df) command can be used to determine how space is used and is available on the hard drives on a Linux server. Use the "df" command to report this for sit.cna-qatar.edu.qa but format the output as follows:
- Make the output numbers to be powers of 1024 (i.e. human readable).
- Include these columns only (in this order): ?.
- Take a screenshot of the completed command.
Part 3 - RAM Usage
- Use the 'free' command to get the current RAM usage on your server in ?.
Part 4 - Calendar Command
- Create a calendar in Linux for ?. Include a screenshot of the command used and the generated calendar in your document.
- Create a calendar in Linux for ? including the ? months after. Include a screenshot of the command the generated output in your document.
- How many days into the year is the date ?? For example February 3, 2020 is 33 days into the year. The Julian days option of the calendar is quite helpful for this and you may want to use the cal command a couple of times. Describe in your document how you obtained the result and include screenshots of the calendar command(s) used.