Welcome to our website
To take full advantage of all features you need to login or register. Registration is completely free and takes only a few seconds.
How to exclude a set of files from disk space usage calculation using du
Posted by Philipp Esselbach on: 03/08/2011 10:38 AM [ Print | 0 comment(s) ]
Linuxers shows you how to exclude a set of files from disk space usage calculation using du
We have already discussed the most common options used with du - a tool to check/calculate file space usage. In its most basic form, du tells you the size of all the files in a given directory. Using -s option it sums up the total size of a directory, but what if we don't want to include a set of files while calculating the utilized space. Using the --exclude and --exclude-from option, we can easily mention the files to be excluded.
Lets say we want to exclude all the *.png files while calculating the file space usage.
Lets say we want to exclude all the *.png files while calculating the file space usage.
How to exclude a set of files from disk space usage calculation using du
Related Threads
07/11/2008 10:20 AM: How to edit grun.conf for duel booting (1) by danleff
06/22/2006 05:43 PM: How to edit and modify the grub.conf (8) by danleff
08/01/2003 10:33 PM: how to end an x client session (8) by Zuti
06/22/2006 05:43 PM: How to edit and modify the grub.conf (8) by danleff
08/01/2003 10:33 PM: how to end an x client session (8) by Zuti
