Hard Drive

Hard Drive

Check your hard drive usage

df -h

Check your hard drive usage in the specific folder

sudo du -hs {folder path}
sudo du -hs /home/web/laravel/*
2.6M	/home/web/laravel/app
4.0K	/home/web/laravel/artisan
36K     /home/web/laravel/bootstrap
4.0K	/home/web/laravel/bower.json
4.0K	/home/web/laravel/composer.json
196K	/home/web/laravel/composer.lock
124K	/home/web/laravel/config
132K	/home/web/laravel/database
4.0K	/home/web/laravel/package.json
4.0K	/home/web/laravel/phpunit.xml
7.7G	/home/web/laravel/public
4.0K	/home/web/laravel/readme.md
1.6M	/home/web/laravel/resources
276K	/home/web/laravel/routes
4.0K	/home/web/laravel/server.php
827M	/home/web/laravel/storage
28K     /home/web/laravel/tests
64M     /home/web/laravel/vendor
4.0K	/home/web/laravel/webpack.mix.js

Show all file size by using MB in the current path

ls -al --block-size=M

Reference