List files over a specific size in current directory and all subdirectories

后端 未结 5 1814
迷失自我
迷失自我 2020-12-22 21:04

How can I display all files greater than 10k bytes in my current directory and it\'s subdirectories.

Tried ls -size +10k but that didn\'t work.

5条回答
  •  情歌与酒
    2020-12-22 21:58

    Try doing this:

    find . -size +10k -ls
    

    And if you want to use the binary ls :

    find . -size +10k -exec ls -l {} \;
    

提交回复
热议问题