A very minimal implementation of the ls command.
lsz currently supports macOS only. Linux and Windows support are planned.
lsz [path] [options]
If path is not provided, lsz lists the current directory.
| Option | Description |
|---|---|
-a, --all |
Show all files, including hidden files |
-l, --list |
Show output in long list format |
-h, --human |
Print file sizes in human readable format (e.g. 1K, 234M, 2G) |
-s, --sort <field> |
Sort the result by one of: name, size, created, modified, accessed |
-r, --reverse |
Reverse the sort order (only has an effect together with -s/--sort) |
--help |
Show this help message |
lsz /path -l -a
lsz /path -la
lsz -la /path
lsz
lsz /path -l
lsz /path -a
lsz -l
lsz -a
lsz -lh /path
lsz /path -la --sort name
lsz /path -lar --sort created
lsz -s size -r
- macOS
- Linux
- Windows
Planned features:
- Linux and Windows support