Solved

disk usage

Posted on 2006-11-08
3
377 Views
Last Modified: 2010-04-21
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?
0
Comment
Question by:AnuPutcha
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 50 total points
ID: 17900599
He he, some folders are named with starting dash, eg: -ve ;)
du -sh -- *
0
 

Author Comment

by:AnuPutcha
ID: 17916630
can you explain what would this -- do after du -sh to -ve kind of files/dir's? Just want to understand the mechanism.
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17917348
-- says that it's end of flags, and next arguments are regular arguments. In that case filenames.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Samsung memory install did'nt recognize by new hardware 5 24
removing nim resources 5 37
AIX Server 10 75
llcommand 6 76
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now