[juneau-lug] ls directories

  • From: Jamie <jamie@xxxxxxxxxxxxxxxxx>
  • To: juneau-lug@xxxxxxxxxxxxx
  • Date: Fri, 04 Feb 2011 19:04:12 -0900

ls , the most basic, simple command we have, right?  Can someone 
enlighten me on listing directories, using the -d option.  Here is what 
I find

ls -dl /*        works, lists just the directories
ls -dl /var/*        works
ls -dl /var/log/*        lists files and directories -HUH?

In fact, anytime I ask for more than 2 levels of depth, it includes 
files.  I don't want them listed.  Is there a way?
------------------------------------
The Juneau Linux Users Group -- http://www.juneau-lug.org
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: