1832890 Members
2580 Online
110048 Solutions
New Discussion

Unix Command

 
SOLVED
Go to solution
Goh Cheng Chuan
Occasional Advisor

Unix Command

Need to know the command to list the total file size of a directory for planning of backup.
Goh CC
3 REPLIES 3
Manuel Plaza
Regular Advisor
Solution

Re: Unix Command

Hi,
With "du -sk" you can see the total size of directory tree in Kbytes.
Regards
Alex Glennie
Honored Contributor

Re: Unix Command

could try ll -d or use additional command line options as detailed under man ll ?
Victor BERRIDGE
Honored Contributor

Re: Unix Command

Yep
du -ks is what you need, and if you wish to du all directories from a point:
du -sk $(ll|grep "^d"|cut -c58-90)

all the best