Pham Quỳnh
New member
How do I list only the directory structures in Linux?
Answer
How to List Only Directories in Linux
Answer
How to List Only Directories in Linux
- Listing directories using Wildcards. The simplest method is using wildcards. …
- Using -F option and grep. The -F options appends a trailing forward slash. …
- Using -l option and grep. In the long listing of ls i.e. ls -l , we can ‘grep’ the lines starting with d . …
- Using echo command. …
- Using printf. …
- Using find command.