1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ls.md

24 lines
367 B
Markdown
Raw Normal View History

2014-01-28 10:27:02 +01:00
# ls
> List directory contents.
2014-01-28 10:27:02 +01:00
- List files one per line:
2014-01-28 10:27:02 +01:00
`ls -1`
2014-01-28 10:27:02 +01:00
- List all files, including hidden files:
2014-01-28 10:27:02 +01:00
`ls -a`
2014-01-28 10:27:02 +01:00
- Long format list (permissions, ownership, size and modification date) of all files:
2014-01-28 10:27:02 +01:00
`ls -la`
2014-01-28 21:58:16 +00:00
- Long format list with size displayed using human readable units (KB,MB,GB):
`ls -lh`
- Long format list sorted by size (descending):
2014-02-21 14:05:52 -08:00
`ls -lS`