Link to home
Start Free TrialLog in
Avatar of ethanjohnsons
ethanjohnsons

asked on

du for / and mt pts

I need to find out the size of each file under root (/) and its sub dir  as well as any other mt pts

I have tried like these:

du -m / |sort +0rn
du -m . |sort +0rn

but, they don't give me what I need.

thx

SOLUTION
Avatar of sjm_ee
sjm_ee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ethanjohnsons
ethanjohnsons

ASKER

this ( find / -ls |sort +4nr |more ) would be what I need as long as I can exclude certain dirs i.e. /proc.

find: 0652-023 Cannot open file /proc/491944.
sort: 0653-657 A write error occurred while sorting.

thx

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thx much