Files
tldr/pages.ja/common/ls.md

33 lines
845 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ls
> ディレクトリの内容を一覧表示します。
> 詳しくはこちら: <https://www.gnu.org/software/coreutils/ls>
- ファイルを1行ごとに一覧表示:
`ls -1`
- 隠しファイルを含むすべてのファイルを一覧表示:
`ls -a`
- すべてのファイルを一覧表示し、ディレクトリ名の最後に `/` を付加する:
`ls -F`
- 全ファイルを長い形式(パーミッション、所有者、サイズ、修正日)で一覧表示します:
`ls -la`
- サイズを人間が読みやすい単位KiB、MiB、GiBで表示した長い形式での一覧表示:
`ls -lh`
- サイズ順(降順)に並べた長い形式での一覧表示:
`ls -lSR`
- すべてのファイルの長い形式でのリストで、更新日が古いものから順に表示されます:
`ls -ltr`