View Single Post

  #2 (permalink)  
Old 04-08-2008, 08:30 PM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Use find command, to print the list of all dirs including subdir
Code:
find . -type d -print
Save the list to a file:
Code:
find . -type d -print > /path/to/file
less /path/to/file
To just scan current dir and no subdirs
Code:
find . -maxdepth 1 -type d -print
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote