I need to list the number of files obmitting subdirectories....???
Main Topics
Browse All TopicsCould anyone kindly assist, I would need a unix command to list a count of the number of files in a directory.
ls - <which parameter> ???
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
So i found if i did the following it picks the vLUN's up. Is there an easier way? there has to be a better way than this
# luxadm -e port
Found path to 0 HBA ports
# ls /dev/cfg
c0 c1 c2
Your HBA vLUN connections are
/pci@1d,700000/QLGC,qlc@2,
/pci@1d,700000/QLGC,qlc@2 c3
# cd /dev/cfg
# ls -atl
total 70
drwxr-xr-x 15 root sys 31744 Apr 24 06:43 ..
drwxr-xr-x 2 root root 512 Apr 9 01:23 .
lrwxrwxrwx 1 root root 38 Apr 3 02:42 c0 -> ../../devices/pci@1e,60000
lrwxrwxrwx 1 root root 39 Apr 3 02:42 c1 -> ../../devices/pci@1f,70000
lrwxrwxrwx 1 root root 41 Apr 3 02:42 c2 -> ../../devices/pci@1f,70000
# cd devices
# ls -al
total 20
drwxr-xr-x 6 root sys 512 Apr 3 07:35 .
drwxr-xr-x 24 root root 512 Apr 24 06:41 ..
crw------- 1 root sys 194, 0 Apr 3 02:42 memory-controller@0,0:mc-u
crw------- 1 root sys 109, 0 Apr 3 02:42 pci@1c,600000:devctl
drwxr-xr-x 6 root sys 512 Apr 7 07:19 pci@1d,700000
crw------- 1 root sys 109, 1 Apr 3 02:42 pci@1d,700000:devctl
drwxr-xr-x 4 root sys 512 Apr 3 02:42 pci@1e,600000
crw------- 1 root sys 109, 2 Apr 3 02:42 pci@1e,600000:devctl
drwxr-xr-x 3 root sys 512 Apr 3 02:42 pci@1f,700000
crw------- 1 root sys 109, 3 Apr 3 02:42 pci@1f,700000:devctl
crw------- 1 root sys 205, 0 Apr 3 02:42 ppm@1c,0:jbus-ppm
crw------- 1 root sys 205, 1 Apr 3 02:42 ppm@1e,0:jbus-ppm
drwxr-xr-x 2 root sys 5120 Apr 4 19:35 pseudo
so add the following
# cd /dev/cfg
ln -s ../../devices/pci@1d,70000
ln -s ../../devices/pci@1d,70000
> reboot -- -r
> devfsadm
Business Accounts
Answer for Membership
by: sunnycoderPosted on 2006-09-19 at 00:38:55ID: 17549653
Hi integrosys,
ls -1 | wc -l
Cheers!
sunnycoder