I'm trying to check with the disk usage tool how big my home directory folders are, but it's folders and files Let's start with dot.
I can not filter them
du -h --exclude = "?" Du-H | Grep -v "?" Du-H | Grep -ve "?" Du-H | Sed "?" Thanks in advance.
Edit & gt; Thank you for SiegeX for your reply. Du-H - Max-Depth = 1 | Grep -v "./ \\." Since the dot matches any of the characters, we need to prefix it with a double backslash because it also has a special character.
If running with a specified path (current dir)
Use du -h --exclude ". /.*"
Comments
Post a Comment