Skip to content

Instantly share code, notes, and snippets.

@paulghaddad
Created October 13, 2014 20:38
Show Gist options
  • Save paulghaddad/e28d9ba24927c2ee061b to your computer and use it in GitHub Desktop.
Save paulghaddad/e28d9ba24927c2ee061b to your computer and use it in GitHub Desktop.
Level Up 1: Can use htop / df / du to monitor system resources
1. Demonstrate the command to check what the remaining disk space is on your laptop. Make sure to use the flag to make the output more readable.
df -h
2. Navigate to the your home directory, and demonstrate the command to see how much space that directory and each subdirectory takes on disk.
du ~
du -d 2 ~ (for a depth of 2)
3. Demonstrate the command to see how much memory is currently being consumed on your laptop. Sort the running processes to see which is consuming the most resources.
htop
F6 (sort by)
Choose "RES"
4. Completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment