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?
AnuPutchaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ravenplConnect With a Mentor Commented:
He he, some folders are named with starting dash, eg: -ve ;)
du -sh -- *
0
 
AnuPutchaAuthor Commented:
can you explain what would this -- do after du -sh to -ve kind of files/dir's? Just want to understand the mechanism.
0
 
ravenplCommented:
-- says that it's end of flags, and next arguments are regular arguments. In that case filenames.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.