Excluding hidden files from du command output with --exclude, grep -v or sed

前端 未结 1 1009
Happy的楠姐
Happy的楠姐 2021-02-12 17:43

I\'m trying to check with Disk Usage tool how big are my home directory folders but it also prints out folders and files starting with dot.

I can\'t seem to filter them

相关标签:
1条回答
  • 2021-02-12 18:16

    If running du with no specified path (current dir), use this:

    du -h --exclude "./.*"
    
    0 讨论(0)
提交回复
热议问题