LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-14-2008, 07:19 PM   #1
jamieinger
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
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
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
irishbitte
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: 83
you mean display only the directories returned from a search using 'find'?

Try:
Code:
man find
you'll find some good info there!
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 PM.

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