Solved

disk usage

Posted on 2006-11-08
3
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 148
Linux : understanding ifcfg-*** files  from directory  #/etc/sysconfig/network-scripts 11 128
MarkLogic 1 116
Image not there 4 74
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

738 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