This Blog is to share our knowledge and expertise on Linux System Administration and VMware Administration

Thursday, April 5, 2018

How to use --exclude option in du command

du command is used to estimate file space usage.

Sometime we need to exclude some folder or files while running du command.
For that we can use below option to achieve that.

[root@testserver /]# du -sh * --exclude=repository --exclude=oem1

The above command will exclude the repository & oem folder  under / path.

Hope it helps.

No comments:

Post a Comment