79f14786257bb617621769af2b3587ff52fd0224
[adu.git] / adu.1.inc
1 [NAME]
2 adu \- advanced disk usage
3 [EXAMPLES]
4
5 .PP
6 The following example creates a database containing the disk usage
7 patterns of the /var directory:
8 .IP
9 $ adu --create --database-dir /root/adu-var --base-dir /var
10
11 .PP
12 Here's a simple query that uses the newly created database to print
13 the user-summary:
14 .IP
15 $ adu --select --database-dir /root/adu-var
16
17 .PP
18 The command below prints the five largest directories of the users root and
19 mysql:
20 .IP
21 $ adu --select --database-dir /root/adu-var --select-options '--select-mode user_list --user root --user mysql --limit 5'
22 .PP
23 The same, using short options:
24 .IP
25 $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5'
26 .PP
27 Again the same, but omitting /var/cache:
28 .IP
29 $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5 -p !^cache/'
30
31 [SEE ALSO]
32 .BR du (1)