ls: Add the -p option to append a trailing slash to directories

This overrides the `-F` option and vice-versa.
This commit is contained in:
Tim Ledbetter 2023-09-25 22:37:30 +01:00 committed by Andreas Kling
commit ba40526db2
Notes: sideshowbarker 2024-07-17 18:46:57 +09:00
2 changed files with 16 additions and 5 deletions

View file

@ -21,6 +21,7 @@ If no *path* argument is provided the current working directory is used.
* `-A`: Do not list implied . and .. directories
* `-B`, `--ignore-backups`: Do not list implied entries ending with ~
* `-F`, `--classify`: Append a file type indicator to entries
* `-p`: Append a '/' indicator to directories
* `-d`, `--directory`: List directories themselves, not their contents
* `-l`, `--long`: Display long info
* `-t`: Sort files by timestamp (newest first)