ls help


 
Thread Tools Search this Thread
# 1  
ls help

say if i do: ls parentdir
how should i get the result like
Code:
parentdir/subdir1
parentdir/subdir2
parentdir/subdir3
.
.
.

help~

Last edited by methyl; 04-10-2012 at 10:00 AM.. Reason: please use code tags
# 2  
Code:
find parentdir -maxdepth 1

# 3  
Try find not [/icode]ls[/icode] .

Code:
# If you just want to list the directories
find parentdir -type d -print
# Or if you want to see the files as well
find parentdir -print
# Or just the files
find parentdir -type f -print


Last edited by methyl; 04-10-2012 at 10:15 AM..
# 4  
thank you guys thats very useful Smilie
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Science: Gadgets
Difficulty: Medium
The Western Electric Model 500 telephone uses tone dialing to dial phone numbers.
True or False?

Featured Tech Videos