Filter Small Files from the ‘du’ Command with Grep
Ever wanted to filter out the files that were less than 1GB with the simple ‘du’ (disk usage) command? Simple. Add the -h flag and a little grep magic, and you’re all set:
du -h | grep '[0-9]G'
Ever wanted to filter out the files that were less than 1GB with the simple ‘du’ (disk usage) command? Simple. Add the -h flag and a little grep magic, and you’re all set:
du -h | grep '[0-9]G'
No comments yet.
RSS feed for comments on this post. TrackBack URL
You must be logged in to post a comment.