LoginSignup
0
1

More than 3 years have passed since last update.

全てのファイルをファイル名順でリストアップするコマンド

Last updated at Posted at 2020-02-06

以下のコマンドで全てのファイルをファイル名、ファイルサイズ順でリストアップできます。

ls -la $(find / -type f) | sort -k9

ファイルサイズ順(降順)なら

ls -la $(find / -type f) | sort -nr -k5

ファイルサイズ順(降順)トップ10だけなら

ls -la $(find / -type f) | sort -nr -k5 | head -10
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1