The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
list the files but exclude the files in subdirectories shyjuezy UNIX for Dummies Questions & Answers 8 10-15-2008 10:42 AM
Exclude & Zip dreams5617 Shell Programming and Scripting 1 02-11-2007 05:01 PM
Exclude a directory to tar ust UNIX for Dummies Questions & Answers 1 10-12-2005 01:35 AM
How to exclude files from printed results umen UNIX for Dummies Questions & Answers 2 09-18-2005 03:35 AM
tar: how to exclude subdirectories? kymberm Filesystems, Disks and Memory 7 10-15-2002 12:53 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-17-2007
Registered User
 

Join Date: Apr 2007
Posts: 75
du (exclude files)

Hi,

I want to get the disk usage of a directory. But I want it to ignore a particular directory within it.

Lets say I want disk usage of all files/dirs within dir1 except those that are named .snapshot

Does du have the option of excluding a particular directory.
Reply With Quote
Forum Sponsor
  #2  
Old 07-17-2007
cassj's Avatar
Supporter
 

Join Date: Jul 2003
Location: Interweb
Posts: 107
du --exclude='.snapshot'

Give that a shot.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0