1833750 Members
2481 Online
110063 Solutions
New Discussion

file system

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

file system

how to check the size of each and every file and a particular directory.
3 REPLIES 3
wittie
Frequent Advisor
Solution

Re: file system

Hi

for example:

# du -akx /var | sort -nr | more

for the files in /var directory
Glenn S. Davidson
Trusted Contributor

Re: file system

I'd give wittie a 10. That is cool.

To get summaries when you are in a specific directory:

du -sk *

If there are directories in the directory you are in then they will produce an output also and there will be no designation to tell you they are directories (you will just have to check that).

I would go with wittie's suggestion
Conformity Destroys a mans initiative and independence. It supresses his powerful inner drive to do his own thing.
TY 007
Honored Contributor

Re: file system

Hello Indrajit,

# ls -alR [directory_full_path] > /tmp/ls.txt

# more /tmp/ls.txt

Thanks