![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
du --exclude='.snapshot'
Give that a shot. |
||||
| Google The UNIX and Linux Forums |