Using "Linux Find" command to get human readable directory sizes in public_html
Say you have 100 top level directories and 1000 files just under ../public_html/ without counting deeper located files and dirs. and you want to get an overview of dirs under your www-directory. You can do it with one line command.
Use find to find directories, set maxdept to just get top-level folders.
Combine it with -exec and get same time the disk usage of dirs.
Use -h for human readable file sizes GB, MB, KB instead of byte size.
find /home/YOUR_USERNAME/public_html/ -type d -maxdepth 1 -exec du -sh {} \;
Similar entries
- Argument List too Long
- howto cp images, mp3 from multiple directory to one directory (find, exec, cp)
- How to recursively create md5 and sha1 sum of your files.
- Update / overwrite files and directories recursively with Linux mv - cp commands
- Search only in .php files under linux
- Compress dirs and files recursively but exclude self
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /home/mysite/public_html/includes/
- search for files and create an archive with them (tar,find,linux)
- Search in text files recursively with PHP - Grep
- web development tool Firebug for Firefox
- Downloading websites in limited dept levels and output to one directory without folder hierarchy with WGET
- Install Curl on PHP5 Webmin + Debian
- Iframe Trojan / Virus of Alcobro.net
- Howto erase your files/partition with shred in linux
- List all files in a Directory without Filesize, heading info under Windows using MS-Dos Dir command
- Powertoys for Windows XP let u work faster and easier
- Howto duplicate (clone) VirtualBox image in Windows 7
- Server load watch
- Kill a task and exit command line window
- Fatal error: Call to undefined function block_list() in /includes/theme.inc on line 1586

Post new comment