author | František Kučera <franta-hg@frantovo.cz> |
Wed, 30 Oct 2019 00:34:58 +0100 | |
branch | v_0 |
changeset 281 | 0b6b1781a0a5 |
child 297 | 192b0059a6c4 |
permissions | -rw-r--r-- |
281
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
<stránka |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
<nadpis>Indexing and searching the filesystem</nadpis> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
<perex>build an index of the filesystem and search it faster or offline using SQL</perex> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
<m:pořadí-příkladu>03500</m:pořadí-příkladu> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
<text xmlns="http://www.w3.org/1999/xhtml"> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
<p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
Thanks to the <code>relpipe-in-filesystem</code> we can collect metadata (or even the file contents) |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
and store them for later use in an index file. |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
Such index is useful for faster access and for offline work (we can index e.g. an optical disc or external or network HDD). |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
<p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
We can simply pipe the relational data into a file and use this file as the index. |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
Or we can use some other format. In this example, we will use an SQLite file as the index. |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
<p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
First step is to collect the file metadata. We will index just a subset of our filesystem, |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
the <code>/bin/</code> and <code>/usr/bin/</code> directories: |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
<m:pre jazyk="bash"><![CDATA[find /bin/ /usr/bin/ -print0 \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
| relpipe-in-filesystem --relation "program" \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
| relpipe-tr-sql --file bin.sqlite --file-keep true]]></m:pre> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
<p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
This index allows us to do fast searches and various analysis. |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
We can e.g. find 20 largest binaries: |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
34 |
</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
<m:pre jazyk="bash"><![CDATA[relpipe-in-sql \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
--file bin.sqlite \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
--relation "largest" \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
"SELECT path, size FROM program WHERE type = 'f' ORDER BY size DESC LIMIT 20" \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
| relpipe-out-tabular]]></m:pre> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
<p>How very:</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
<m:pre jazyk="text"><![CDATA[largest: |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
45 |
╭──────────────────────────────┬───────────────╮ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
46 |
│ path (string) │ size (string) │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
47 |
├──────────────────────────────┼───────────────┤ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
48 |
│ /usr/bin/blender │ 76975440 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
49 |
│ /usr/bin/blenderplayer │ 32199344 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
50 |
│ /usr/bin/mscore │ 24252992 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
51 |
│ /usr/bin/mysql_embedded │ 23004600 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
52 |
│ /usr/bin/node │ 18369616 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
53 |
│ /usr/bin/galax-parse │ 18365264 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
54 |
│ /usr/bin/galax-run │ 18360496 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
55 |
│ /usr/bin/clementine │ 16818328 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
56 |
│ /usr/bin/emacs25-nox │ 15055112 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
57 |
│ /usr/bin/doxygen │ 14924104 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
58 |
│ /usr/bin/rosegarden │ 14416952 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
59 |
│ /usr/bin/snap │ 13472520 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
60 |
│ /usr/bin/audacity │ 13257064 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
61 |
│ /usr/bin/pgadmin3 │ 13098800 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
62 |
│ /usr/bin/qemu-system-aarch64 │ 12564688 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
63 |
│ /usr/bin/qemu-system-arm │ 12370192 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
64 |
│ /usr/bin/qemu-system-ppc64 │ 12280864 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
65 |
│ /usr/bin/qemu-system-ppc │ 11738208 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
66 |
│ /usr/bin/qemu-system-x86_64 │ 11658464 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
67 |
│ /usr/bin/qemu-system-i386 │ 11623776 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
68 |
╰──────────────────────────────┴───────────────╯ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
69 |
Record count: 20]]></m:pre> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
70 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
71 |
<p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
72 |
And we can collect additional metadata and append them to our index file. |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
73 |
In this example, we get lists of dynamically linked libraries using the <code>ldd</code> tool |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
74 |
for each binary and store the lists in our index: |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
75 |
</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
76 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
77 |
<m:pre jazyk="bash"><![CDATA[relpipe-in-sql \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
78 |
--file bin.sqlite \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
79 |
--relation bin "SELECT path FROM program WHERE type = 'f'" \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
80 |
| relpipe-out-nullbyte \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
81 |
| while read_nullbyte f; do |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
82 |
ldd "$f" | perl -ne 'if (/ => (.*) \(/) { print "$ENV{f},$1\n"; }'; |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
83 |
done \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
84 |
| relpipe-in-csv \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
85 |
"dependency" \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
86 |
"program" string \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
87 |
"library" string \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
88 |
| relpipe-tr-sql --file bin.sqlite]]></m:pre> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
89 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
90 |
<p>And then we can make a „popularity contest“ and find 20 most often used libraries:</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
91 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
92 |
<m:pre jazyk="bash"><![CDATA[relpipe-in-sql \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
93 |
--file bin.sqlite \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
94 |
--relation "popular_libraries" " |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
95 |
SELECT |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
96 |
d.library, |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
97 |
count(*) AS count |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
98 |
FROM dependency AS d |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
99 |
JOIN program AS p ON (d.program = p.path) |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
100 |
GROUP BY library |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
101 |
ORDER BY count DESC |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
102 |
LIMIT 20" \ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
103 |
| relpipe-out-tabular]]></m:pre> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
104 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
105 |
<p>Well, well… here we are:</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
106 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
107 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
108 |
<m:pre jazyk="bash"><![CDATA[popular_libraries: |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
109 |
╭────────────────────────────────────────────┬────────────────╮ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
110 |
│ library (string) │ count (string) │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
111 |
├────────────────────────────────────────────┼────────────────┤ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
112 |
│ /lib/x86_64-linux-gnu/libc.so.6 │ 2508 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
113 |
│ /lib/x86_64-linux-gnu/libpthread.so.0 │ 1487 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
114 |
│ /lib/x86_64-linux-gnu/libdl.so.2 │ 1364 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
115 |
│ /lib/x86_64-linux-gnu/libm.so.6 │ 1271 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
116 |
│ /lib/x86_64-linux-gnu/librt.so.1 │ 1057 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
117 |
│ /lib/x86_64-linux-gnu/libz.so.1 │ 1019 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
118 |
│ /lib/x86_64-linux-gnu/libgcc_s.so.1 │ 811 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
119 |
│ /lib/x86_64-linux-gnu/libpcre.so.3 │ 788 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
120 |
│ /lib/x86_64-linux-gnu/liblzma.so.5 │ 749 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
121 |
│ /usr/lib/x86_64-linux-gnu/libstdc++.so.6 │ 742 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
122 |
│ /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 │ 681 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
123 |
│ /lib/x86_64-linux-gnu/libbsd.so.0 │ 658 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
124 |
│ /usr/lib/x86_64-linux-gnu/libXau.so.6 │ 648 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
125 |
│ /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 │ 648 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
126 |
│ /usr/lib/x86_64-linux-gnu/libxcb.so.1 │ 648 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
127 |
│ /usr/lib/x86_64-linux-gnu/libX11.so.6 │ 638 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
128 |
│ /usr/lib/x86_64-linux-gnu/libpng16.so.16 │ 622 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
129 |
│ /lib/x86_64-linux-gnu/libgpg-error.so.0 │ 616 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
130 |
│ /lib/x86_64-linux-gnu/libgcrypt.so.20 │ 613 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
131 |
│ /usr/lib/x86_64-linux-gnu/liblz4.so.1 │ 575 │ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
132 |
╰────────────────────────────────────────────┴────────────────╯ |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
133 |
Record count: 20]]></m:pre> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
134 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
135 |
<p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
136 |
In future versions there might be an option to gather more file metadata like hashes, Exif etc. |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
137 |
But even in the current version, it is possible to gather any literally metadata using a custom script (as we have shown with <code>ldd</code> above). |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
138 |
Extended attributes are already supported (the <code>--xattr</code> option). |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
139 |
</p> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
140 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
141 |
</text> |
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
142 |
|
0b6b1781a0a5
examples: Indexing and searching the filesystem
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
143 |
</stránka> |