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 10-14-2008, 07:19 PM   #1
LQ Newbie
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Display Folders only in Bash Linux

I have been through this forum top to bottom and i cant find this answer, I accidentally come across it when looking for something else

Probally easy but here it is

find . -type d
Old 10-14-2008, 08:15 PM   #2
Senior Member
Registered: Apr 2004
Location: Tweed Heads, Australia
Distribution: Devuan
Posts: 3,432
Blog Entries: 33

Rep: Reputation: 228Reputation: 228Reputation: 228
Hi, And welcome to LQ.

sometimes I find the dir (you might recognise it from any dos experience you may have)

command helps here.

dir --help for more,

dir -D (lists directories of the current folder.)

Hope that helps, Regards, Glenn
Old 10-14-2008, 08:15 PM   #3
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
you mean display only the directories returned from a search using 'find'?

man find
you'll find some good info there!


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
Bash script: Parse folders in path string miceagol Programming 3 03-25-2008 06:31 PM
bash script help - finding last n log files in all sub folders jeepescu Programming 4 11-03-2007 07:57 PM
Move huge amount of folders with bash alexweb Linux - Newbie 4 10-27-2006 04:06 AM
Cannot create folders with bash script called from php keyF Linux - Software 4 06-25-2006 10:58 AM
How do I display colours with ls, without using -G (using bash) r4nd0mz Linux - Software 6 04-28-2004 05:53 PM > Forums > Linux Forums > Linux - Newbie

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