for example

1.
there is only two file in /home/test/
# ls -l /home/test/
total 8
-rw-r--r--  1 root  wheel  2 Mar  3 23:29 a.txt
-rw-r--r--  1 root  wheel  3 Mar  3 23:29 b.txt

So the total size of all files ( a.txt + b.txt ) should be 5 Bytes.
How to get total size ( 5 Bytes ) directly but not the 8 Bytes.


2.
# man du
says,
     -h      "Human-readable" output.  Use unit suffixes: Byte, Kilobyte,
             Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte in order to
             reduce the number of digits to four or less.

but 
# du -h /home/test
6.0K    /home/test

How to let unit suffixes: Byte  display (come out)  but not Kilobyte?

just like 
# du -b /home/test   ( option "-b" not exist)
5B  /home/test   

Reply via email to