2 adu \- advanced disk usage
6 The following example creates a database containing the disk usage
7 patterns of the /var directory:
9 $ adu --create --database-dir /root/adu-var --base-dir /var
12 Here's a simple query that uses the newly created database to print
15 $ adu --select --database-dir /root/adu-var
17 To print the one-line global summary instead, use
19 $ adu --select --database-dir /root/adu-var --select-options '--select-mode global_summary'
21 To sort the user summary by file count rather than by file size, run
23 $ adu --select --database-dir /root/adu-var --select-options '--list-sort=file_count'
25 The command below prints the five largest directories of the users root and
28 $ adu --select --database-dir /root/adu-var --select-options '--select-mode user_list --user root --user mysql --limit 5'
30 The same, using short options:
32 $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5'
34 Again the same, but omitting /var/cache:
36 $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5 -p !^cache/'
38 A simple script for interactive mode:
48 set -o file-list.mysql
52 Run adu in interactive mode with the above script (adu-script.txt):
54 $ adu -Id /root/adu-var < adu-script.txt