LoginSignup
1
1

More than 3 years have passed since last update.

ls コマンドのよく使うオプションまとめ

Last updated at Posted at 2019-08-16

CentOS 7 で確認。ls のバージョンは GNU coreutils 8.22。

不可視項目も含めて表示

ls -A

-a では ... も表示される。

長い形式で表示

ls -l

サイズの単位をわかりやすくするには -h をつける。

SELinux のコンテキストも含めて表示

ls -Z

1 行に 1 つずつ表示

ls -1

ディレクトリの中を再帰的に表示

ls -R

数字を自然な順序で並べ替え

ls -v

更新日時順で並べ替え

ls -t
1
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
1
1