Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 2.58 KB

exercise2.md

File metadata and controls

40 lines (30 loc) · 2.58 KB

J.O.B-Training-System Commands Assignment

In this online exercise you will practice the system information commands in your terminal program using the same cloned repo in the last exercise that will track your work.

Exercise 1 Date

In a terminal window practice the date command which is call date.

  1. In your terminal type the command man date and read the documentation related to the date command
  2. Type the command date and note the format and information displayed on your screen

Exercise 2 Disk Free

In a terminal window practice the disk free command which is call df. This command is useful to discover if you are out of space on your local disk.

  1. In your terminal type the command df
  • note that the terminal displays the disk usage and availablity
  1. In your terminal type the command df -h
  • note that the terminal now displays disk usage in gigabyte or megabyte sizes to make it easier to read
  1. In your terminal type the command df -lh
  • note that the terminal now displays local file systems only in human readable format
  1. In your terminal type the command df -h > df.txt and press enter to log your work for this exercise

Exercise 3 Top

In a terminal window practice the top command which is called top. This command is useful to discover what program may be slowing down a computer if the processer is close to 100% utilization.

  1. Type the command man top and read the documentation related to the manual for the change directory command
  • press the Q button to quit out of the manual
  1. In your terminal type the command top
  • note the terminal shows you all the running commands on your computer with the highest CPU usage program listed at the top
  • press the Q button to quit top

Exercise 4 Uptime

In a terminal window practice the uptime command which is called uptime.

  1. Type the command man uptime and read the documentation related to the manual for the change directory command
  • press the Q button to quit out of the manual
  1. In your terminal type the command uptime
  • note the terminal shows you the amount of time the computer you are on has been running
  1. In your terminal type the command uptime > uptime.txt to log your work

You have now completed the second online exercise for Linux commands. You will now be taken back to the Jump on Board website to begin the next section regarding file handling commands. Please return to the Linux Commands Course Website to continue to the next section.