1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 01:55:24 +02:00
tldr/pages/linux/dir.md
2025-03-12 21:05:58 +02:00

528 B

dir

List directory contents using one line per file, special characters are represented by backslash escape sequences. Works as ls -C --escape. More information: https://manned.org/dir.

  • List all files, including hidden files:

dir {{[-a|--all]}}

  • List files including their author (-l is required):

dir -l --author

  • List files excluding those that match a specified blob pattern:

dir --hide {{pattern}}

  • List subdirectories recursively:

dir {{[-R|--recursive]}}

  • Display help:

dir --help