Answers for "linux command find by file size"

7

linux file size

cd dir ; du -hsx * | sort -rh | head -20 
# example output
# 300MB    some_backup_file.log
# 1.8GB    some_huge_file.war
Posted by: Guest on August-11-2020
0

linux command line search file by size

b: 512-byte blocks (default)
    c: bytes
    w: two-byte words
    k: Kilobytes
    M: Megabytes
    G: Gigabytes
find /tmp -type f -size 1024c
Posted by: Guest on July-08-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language