![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unix command to cound the number of files in a folder | manas6 | UNIX for Dummies Questions & Answers | 6 | 04-21-2008 08:03 AM |
| Listing Files | krishna_sicsr | High Level Programming | 3 | 04-05-2007 01:32 PM |
| TAR command , listing backed up files | FredSmith | SUN Solaris | 3 | 10-03-2005 10:08 AM |
| Listing of files | Vitalka | Linux | 1 | 03-02-2005 09:32 AM |
| Recursive directory listing without listing files | psingh | UNIX for Dummies Questions & Answers | 4 | 05-10-2002 10:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
ls command for listing the number of files
I've searched the man page for an option for the ls command to print the number of files in a directory. I'm moving files and folders around and thought a count of files would be a quick way to determine if I was missed one somewhere. Some "unix's" shells do this I think... maybe linux...
Anybody know how to do this real quick System is: SunOS 5.10 Generic sun4u sparc SUNW,Ultra-5_10 KSH I did this but is comes back with byte count rather than a file count. ls -l |wc Thanks All ) |
|
||||
|
one little minor problem, at least what i have encountered, is that ls -l list out the files, including the "total" line on the very first line. wc -l will count that line too. So its just sufficient to exclude the switch , or use ls -1 instead.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|