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 experts
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