-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
84 lines (58 loc) · 1.64 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
flc - files count
Date: 25 January 2012
Version: 1.1
flc is a little utility that count files recursively in a directory.
Dependencies
============
flc depends only on standards librairies that you should have.
Installation
============
To compile flc, run:
make
Then, to install flc, run as root:
make install
flc will be installed in /usr/local/bin. If you want to change the
installation path, set the PREFIX variable to something before runing
make install.
Default PREFIX: /usr/local
Usage
=====
Usage: flc [OPTIONS] DIR
Options:
-d,--directories Also count directories
-D,--only-directories Count only number of directories
-L,--only-symlinks Count only number of symbolic links
-F,--only-regular-files Count only number of regular files
-h,--help Show this menu
Efficiency
==========
Count number of files in a directory containing 10 copies of the
2.6.37 linux kernel source.
Performance with find and wc
----------------------------
% time find . -type f | wc -l
386924
find . -type f 0,73s user 13,07s system 61% cpu 22,538 total
Performance with du and wc
--------------------------
% time du | wc -l
23882
du 0,72s user 13,54s system 61% cpu 23,018 total
Performance with flc
-------------------
% time flc .
386924
flc . 0,39s user 3,54s system 28% cpu 13,677 total
Todo
====
More options available:
- do not cross filesystem
- do not count hard links
Write a manual
License
=======
This program is realeased under the GNU General Public License License V3.
Please, read COPYING file for more information.
Contact
=======
If you want to help this program, submit a PR, or write an issue.