Results 1 to 4 of 4

Thread: ls command to view directories only?

  1. #1
    Join Date
    Jul 2009
    Posts
    41

    ls command to view directories only?

    How to ls command to view directories only? I know linux is very customizable and every command can be used in conjunction with other commands to get the desired output ... So please help me...

  2. #2
    Join Date
    Mar 2009
    Posts
    599

    Re: ls command to view directories only?

    I hae never needed such kind of command, but you may need it, here is the command :
    Code:
    ls -d *

  3. #3
    Join Date
    Jan 2009
    Posts
    289

    Re: ls command to view directories only?

    There is one more :

    Code:
    ls --directory *

  4. #4
    Join Date
    Jan 2009
    Posts
    1,738

    Re: ls command to view directories only?

    One more so that makes it a total of three, posting all of those togather :

    Code:
    ls -d *
    ls --directory *
    ls -ldR *
    Have fun...

Similar Threads

  1. WinRAR command line to unzip files in multiple directories
    By jymoo in forum Software Development
    Replies: 1
    Last Post: 05-10-2011, 12:37 PM
  2. Replies: 3
    Last Post: 16-07-2011, 03:03 AM
  3. Command to view JPEG files in windows 7
    By Laiman in forum Windows Software
    Replies: 3
    Last Post: 05-04-2011, 01:40 PM
  4. View server roles through command line
    By indelljo in forum Windows Server Help
    Replies: 2
    Last Post: 14-05-2010, 07:26 PM
  5. Problem with Directories
    By goatape in forum Operating Systems
    Replies: 2
    Last Post: 15-09-2008, 01:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,687,448.44359 seconds with 17 queries