Link to home
Start Free TrialLog in
Avatar of AnuPutcha
AnuPutcha

asked on

disk usage

I am able to say du -sh * from the $WORK dir and get a sum for all the dir's and files but if I go down 1 level to $WORK/migi_tests
and give the same cmd, it does not work,

% cd migi_tests/
% du -sh *
du: invalid option -- v
du: invalid option -- e
du: invalid option -- .
du: invalid option -- f
du: invalid option -- i
du: invalid option -- v
du: invalid option -- e
du: invalid option -- .
du: invalid option -- p
du: invalid option -- v
du: invalid option -- e
du: invalid option -- .
du: invalid option -- r
du: invalid option -- p
du: invalid option -- t
Try `du --help' for more information.

what is different between the dir's?
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland 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 AnuPutcha
AnuPutcha

ASKER

can you explain what would this -- do after du -sh to -ve kind of files/dir's? Just want to understand the mechanism.
-- says that it's end of flags, and next arguments are regular arguments. In that case filenames.