Useful Snippets

Welcome!


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

RSS Latest posts from my personal blog


Most viewed posts


Subscribe to RSS feed


Show file size of all files and folders in a directory and sort them from smallest to largest

Stanislav KhromovStanislav Khromov

Command:

du ./ -h --max-depth=1 | sort -h

Example output:

56K     ./.subversion
100K    ./autoremove-attachments
116K    ./skgRnh
120K    ./ioping-0.6
124K    ./mysqltuner-new
144K    ./.pip
228K    ./move-2013-07-29
436K    ./admin-block-country
668K    ./theme-cloc-test
1.5M    ./.vagrant.d
1.8M    ./rubygems-1.8.24
2.9M    ./mainwp-test

Web Developer at Aftonbladet (Schibsted Media Group)
Any opinions on this blog are my own and do not reflect the views of my employer.
LinkedIn
Twitter
WordPress.org Profile
Visit my other blog

Comments 0
There are currently no comments.