![]() |
|
|
|
|
|||||||
| 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 |
| Want to Get List of All directories | niceboykunal123 | Shell Programming and Scripting | 6 | 05-06-2008 11:58 AM |
| Display only subdirectories from given directories | HAA | Shell Programming and Scripting | 8 | 04-25-2007 02:36 AM |
| How to display directories recursively? | jwriter | UNIX for Dummies Questions & Answers | 5 | 04-23-2007 12:37 PM |
| how to list directories only | yodadbl07 | UNIX for Dummies Questions & Answers | 3 | 04-26-2006 01:48 AM |
| How to list only directories? | videsh77 | UNIX for Dummies Questions & Answers | 4 | 01-09-2006 07:10 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
when i am giving ls command it displays all the files and directories how can we the list of directories in the current directory?
__________________
V. Guruprasad |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Hi,
In Linux you can list directories only by typing: ls -d */ Andy |
|
#3
|
|||
|
|||
|
hi
on solaris ls -F gives shows you all the directories ending with a
/ , then you can do a grep on it. like this ls -F | grep '/' |
|
#4
|
|||
|
|||
|
On most systems this should do if you want to list directories under your current directory only:
ls -l | grep ^d Oscar |
|||
| Google The UNIX and Linux Forums |