finding big files (not nemo)

This commit is contained in:
Morgan Wattiez 2019-08-08 14:35:18 +02:00
parent 71c8dfa7b9
commit 519dc1b9ce
2 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,7 @@ alias x='extract'
alias current_year='`echo date +"%Y"`' alias current_year='`echo date +"%Y"`'
alias meteo='weather' alias meteo='weather'
alias learnmore="apropos . | sort --random-sort | awk 'NR == 1 {print$1}' | cut -d'(' -f 1 | xargs man" alias learnmore="apropos . | sort --random-sort | awk 'NR == 1 {print$1}' | cut -d'(' -f 1 | xargs man"
alias biggerthan10='biggerthan 10M'
# Show/hide hidden files in Finder # Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder" alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"

View File

@ -101,3 +101,8 @@ function skip {
n=$(($1 + 1)) n=$(($1 + 1))
cut -d' ' -f$n- cut -d' ' -f$n-
} }
# Find files bigger than X size and sort them by size
function biggerthan() {
find . -size "+$*" -type f -print0 | xargs -0 ls -Ssh | sort -z
}