Thread: wanna get all directories in /

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    197

    wanna get all directories in /

    Hi!
    Is there any Linux-command that works like "dir C:\ /S /B" under MS-DOS? Or what do you think in implementing it on myself, would it be difficult?

    klausi
    When I close my eyes nobody can see me...

  2. #2
    Registered User alex's Avatar
    Join Date
    Sep 2001
    Posts
    132
    Yes there is,

    find / -type d
    to find all directories

    find /
    to find all files, including pathname

    alex
    Last edited by alex; 02-26-2002 at 10:13 AM.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Or even just
    ls -R

    or is it
    ls -r

    I dunno - read the manual

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    197

    Thumbs up

    Thank you all, itīs what I wanted.

    klausi
    When I close my eyes nobody can see me...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Comparing 2 directories
    By Opel_Corsa in forum C++ Programming
    Replies: 4
    Last Post: 01-19-2007, 11:30 PM
  2. VC6 directories
    By Magos in forum Tech Board
    Replies: 0
    Last Post: 03-11-2005, 05:52 PM
  3. problem while opening files from multiple directories
    By V.G in forum Windows Programming
    Replies: 2
    Last Post: 11-08-2004, 03:29 PM
  4. Visual C/C++ directories
    By Magos in forum Tech Board
    Replies: 9
    Last Post: 04-15-2003, 08:45 PM
  5. Working with directories...
    By C Seņor in forum C Programming
    Replies: 4
    Last Post: 04-20-2002, 11:45 AM