C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-26-2002, 05:34 AM   #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...
klausi is offline   Reply With Quote
Old 02-26-2002, 10:02 AM   #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.
alex is offline   Reply With Quote
Old 02-26-2002, 01:52 PM   #3
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,665
Or even just
ls -R

or is it
ls -r

I dunno - read the manual
Salem is offline   Reply With Quote
Old 02-27-2002, 04:09 AM   #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...
klausi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 04:32 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22