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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-22-2004
Registered User
 

Join Date: Feb 2004
Posts: 2
how to list dir only

Hi
I had trouble , i forget how to show the dir only , please state, thanks
Reply With Quote
Forum Sponsor
  #2  
Old 02-22-2004
Registered User
 

Join Date: Feb 2004
Location: netherlands
Posts: 42
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........
Reply With Quote
  #3  
Old 02-22-2004
Registered User
 

Join Date: Feb 2004
Posts: 2
druuna


thank lots , i will remember it
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:11 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