Skip to content

cf - count files in given directories and subdirectories

Notifications You must be signed in to change notification settings

sanderness66/cf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf(1) - count files in given directories and subdirectories

Kozmix Go, 05-JUL-2022

cf [-a] [-s] [-c] [-S] [dir ...]

Description

cf counts the number of files in the given directories (or the current directory if no argument is given), and all its subdirectories. Bit like du(1) but for file counts, rather than file sizes. cf only counts regular files, not directories, symbolic links, device files or named pipes.

cf has these options:

  • -a
    do not ignore entries starting with .

  • -s
    print only a total file count for each argument

  • -c
    print a grand total

  • -S
    don't add subdirectory counts to directory count

Bugs

cf -S -c doesn't work as expected.

See Also

du(1), ls(1)

Author

svm

About

cf - count files in given directories and subdirectories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published