How do I list only the directory structures in Linux?

Pham Quỳnh

New member
How do I list only the directory structures in Linux?
Answer
How to List Only Directories in Linux
  1. Listing directories using Wildcards. The simplest method is using wildcards. …
  2. Using -F option and grep. The -F options appends a trailing forward slash. …
  3. Using -l option and grep. In the long listing of ls i.e. ls -l , we can ‘grep’ the lines starting with d . …
  4. Using echo command. …
  5. Using printf. …
  6. Using find command.
2 нояб. 2012 г.
 

Tìm kiếm

Back
Top