Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-28-2010, 11:15 AM   #1
LQ Newbie
Registered: Nov 2009
Location: coimbatore
Distribution: centos
Posts: 7

Rep: Reputation: 0
what is that command


Please refer me one command to list the list of folders/ within the folder.

Old 01-28-2010, 11:20 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
With zsh, it's ls -ld *(-/DN) ...but you could do the same with find. Recursively, it's simply find . -type d, but for one layer you'd use something like find . -maxdepth 1 -type d.
Old 01-28-2010, 11:54 AM   #3
LQ Newbie
Registered: Jan 2010
Distribution: Slackware
Posts: 7

Rep: Reputation: 1
command to list all files and folders inside a folder recursively:-
ls -aR <directory name>
Also, To output a tree graph of the current directory and all its subdirectories, type:-

Last edited by AcEg33k; 01-28-2010 at 11:58 AM.
1 members found this post helpful.
Old 01-28-2010, 12:30 PM   #4
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
In BASH you can us ls. BASH is default for most users in most linux distributions. You can change it but if you are new to linux then chances are you ar using bash. I suggest reading the manual pages (man pages). To view the man pages you open a terminal and type man [command]. so if you wanted to see the man pages for the ls command you would type man ls.
Old 01-28-2010, 12:41 PM   #5
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
@ AcEg33k: I never knew about the tree command, and I've been using linux for a while. Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 03:14 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 07:30 PM
My error in mkisofs command to make a command line iso mg92865 Linux - Newbie 1 06-20-2008 12:43 PM
startx command in FC7 reverts me back to the command prompt sriram87 Linux - Newbie 5 01-04-2008 12:18 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration