![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| du from list with du of list total | Movomito | Shell Programming and Scripting | 3 | 05-04-2008 06:33 PM |
| how to generate a random list from a given list | mskcc | Shell Programming and Scripting | 3 | 05-30-2006 12:30 AM |
| ls -t arg list too long | CSU_Ram | UNIX for Dummies Questions & Answers | 4 | 05-05-2005 07:19 AM |
| Comparing a distinct value in 1 list with another list | manualvin | Shell Programming and Scripting | 6 | 06-22-2004 03:42 AM |
| memory list... | danhash | UNIX for Dummies Questions & Answers | 3 | 07-21-2003 11:57 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
how to list dir only
Hi
I had trouble , i forget how to show the dir only , please state, thanks |
| Forum Sponsor | ||
|
|
|
|||
|
The questions is open for different iterpretations:
If you want to list the content of a directory and not the contents of it's subdirectories, use the -d flag that comes with ls (i.e. ls -d *). man ls would have provided the answer. If you want to show only directories and no other type of files use the -type d option which comes with find (i.e. find / -type d). man find would have provided the answer. Hope this helps.
__________________
The dead stay dead and the living only wait to join them........ |