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.
In a terminal window practice the date command which is call date.
- In your terminal type the command
man date
and read the documentation related to the date command - Type the command
date
and note the format and information displayed on your screen
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.
- In your terminal type the command
df
- note that the terminal displays the disk usage and availablity
- 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
- In your terminal type the command
df -lh
- note that the terminal now displays local file systems only in human readable format
- In your terminal type the command
df -h > df.txt
and press enter to log your work for this exercise
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.
- 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
- 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
In a terminal window practice the uptime command which is called uptime.
- 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
- In your terminal type the command
uptime
- note the terminal shows you the amount of time the computer you are on has been running
- In your terminal type the command
uptime > uptime.txt
to log your work