can I use ls, or do I need something more.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting can I use ls, or do I need something more.
# 1  
Old 03-16-2011
can I use ls, or do I need something more.

I have been reading for the last few hours. Im not getting anywhere... well Im not getting there fast enough. so I thought I would ask the expertsSmilie

I need to list and count directorys in root. this is part of a class im taking. I dont know scripting much at all. well not at all. still I need the out put to look like this

the root directory on "hostname" has "some number" directorys
#then list the directroys like this, or close to it.

2048 r-x 2 14:26 bin
512 r-x 2 15:59 bsd-src
3072 r-x 3 14:45 dev

and so on.

with ls -gko / I get some of what I need. but I need some hints/help with the rest.

ls -gko /

drxwr-xr-x 3 4 feb 2 2010 bin
drxwr-xr-x 3 4 feb 2 2010 boot

and for some reason, adding the -d option that I think should be giving me only directorys is giving me this one line.

drxwr-xr-x 33 4 Jan 3 13:46 /

help wanted

thanks

Last edited by rontopia; 03-16-2011 at 10:22 PM..
# 2  
Old 03-17-2011
This may be a homework or assignment question. If so, please see the sub-forum, noting the special rules that apply there.
# 3  
Old 03-17-2011
True, we have a special forum for homework and other class-related projects. Thread closed.
Login or Register to Ask a Question

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