ls help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ls help
# 1  
Old 04-10-2012
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  
Old 04-10-2012
Code:
find parentdir -maxdepth 1

# 3  
Old 04-10-2012
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  
Old 04-11-2012
thank you guys thats very useful Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question