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

后端 未结 5 1812
迷失自我
迷失自我 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:35

    I realize the assignment is likely long over. For anyone else:

    You are overcomplicating.

    find . -size +10k
    

提交回复
热议问题