bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: du -x still supported?


From: Bob Proulx
Subject: Re: du -x still supported?
Date: Sun, 10 Feb 2002 18:15:37 -0700

> I ask because it doesn't appear to do what logic and the man page
> imply it will do when executed as such: du -sHx /* it reports size
> for /home, /usr, /data and /proc which are all seperate
> filesystems.

du -x will avoid crossing any filesystem below the ones that you are
asking it about.  But if you explicitly tell it to list a filesystem
it will do so.  By using the /* wildcards you are explicitly telling
du to report on all of the files and directories matched by /*.
Because of the -x option it won't cross to a different filesystems
below the ones you specified on the command line.

Try using 'echo' to show you want the du program is seeing from the
command line you gave it.

  echo du -sHx /*

On my machine that shows:

  du -sHx /bin /boot /cdrom /dev /etc /home /lib /lost+found /mnt /opt /proc 
/root /sbin /tmp /usr /var

You might want to check out the FAQ which explains this in more
detail.  Search for all of the references to "glob", there are
several, and see if those explanations help.

  http://www.gnu.org/software/fileutils/doc/faq/

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]