Skip to main content

List file / directory and show the size


Easy way to list file and sub directory within a directory and show the size, we can use du command combined with ls command.

For example, in above screenshoot we know that there are 3 sub directories and 1 file under /var/www.

du command will show estimate disk space usage in current directory. Above screenshoot show that the size of /var/www is 5,4 GB. Option -s (summarize) will display only a total for each argument, -h will print the result in human readable format (5,4G instead of 5559480).

Now, we combine two commands (du and ls):

Now, we know that the size of temp subdir  is 5,3G

Comments

Popular posts from this blog

Notes: about de novo assembly

De novo assembly [SFG standford]: http://sfg.stanford.edu/denovo.html A combined approach for de novo dna sequence assembly of very short reads (IPSJ transaction on Bioinformatics): https://www.jstage.jst.go.jp/article/ipsjtbio/4/0/4_0_21/_article to be continued...