Created
May 6, 2014 11:43
-
-
Save bhalothia/ff10caf4672773177d00 to your computer and use it in GitHub Desktop.
Simple disk space usage commands.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd / | |
$ du -sh * | |
4.0K jboss.sh | |
0 list.txt | |
4.0K log_rotation.sh | |
1.5G nohup.out | |
4.0K script.sh | |
4.0K stop_backup.sh | |
41M testdeploy | |
It would give us the disk space usage of each directory where you run this command. | |
$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/xvde 7.9G 5.0G 2.6G 67% / | |
tmpfs 3.7G 0 3.7G 0% /dev/shm | |
This will give us the entire stats about free disk space and used as given above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment