Unix command for the day: du -h | grep “[0-9]M” | sort -n -r > du.txt

Here’s the unix command for the day: du -h | grep “[0-9]M” | sort -n -r > du.txt or du -h | grep “[0-9]M” | sort -n -r | less This will: 1) Do a disk usage (human readable) du -h 2) pipe the results to grep to search for all instances of a number … Continue reading Unix command for the day: du -h | grep “[0-9]M” | sort -n -r > du.txt