![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Directory inside directory problem | namishtiwari | Shell Programming and Scripting | 6 | 01-27-2008 01:07 AM |
| unable to create any directory that uses numbers as the directory name | fed.linuxgossip | UNIX for Advanced & Expert Users | 16 | 01-13-2008 05:54 PM |
| determining actual directory of a symlinked directory | chiru_h | Shell Programming and Scripting | 3 | 09-24-2007 04:40 PM |
| determine owner directory permissions from within the directory | Sniper Pixie | Shell Programming and Scripting | 4 | 03-07-2006 02:06 PM |
| moving files from a unix directory to a windows directory | gleads | UNIX for Dummies Questions & Answers | 2 | 08-29-2002 05:42 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I know this is a easy question but I forgot how to do this?
How do I 'ls' for only the directories in a given directory. I don't want to display a recursive find for every subdirectory. I just want the simple 'ls #$%^' Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
list directories
I am soooo glad you asked.
Here are some aliases that I use every day. # list of my aliases alias dir='ls -la' alias lt='ls -lt' alias lrt='ls -lrt' alias pp='ps -aef|grep' alias lsfg='lsf |grep '\/'' Enjoy!!
__________________
My brain is your brain |
|
#3
|
||||
|
||||
|
Try ls -F | grep "\/$", like above - but if you want a long listing you can do something like:
ls -l | grep ^d |
|
#4
|
||||
|
||||
|
good!
Sorry my alias was for HPUX. LivinFree's example will work on any major version of UNIX.
__________________
My brain is your brain |
|
#5
|
|||
|
|||
|
Thanks to you all!
JV |
|||
| Google The UNIX and Linux Forums |