The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-19-2001
Registered User
 

Join Date: Jul 2001
Location: india,tamilnadu
Posts: 2
Angry how can i display the list of directories(only)

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  
Old 07-19-2001
Registered User
 

Join Date: Jun 2001
Location: Leicestershire, UK
Posts: 92
Hi,

In Linux you can list directories only by typing: ls -d */

Andy
  #3  
Old 07-20-2001
Registered User
 

Join Date: Nov 2000
Location: India
Posts: 83
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  
Old 07-24-2001
Registered User
 

Join Date: Jul 2001
Posts: 1
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0