]> git.tuebingen.mpg.de Git - adu.git/blobdiff - adu.1.inc
manual: Add example for interactive mode.
[adu.git] / adu.1.inc
index 79f14786257bb617621769af2b3587ff52fd0224..ddb131ffc96d0aeeb2e17c3c08f01d3046e5a722 100644 (file)
--- a/adu.1.inc
+++ b/adu.1.inc
@@ -13,7 +13,14 @@ Here's a simple query that uses the newly created database to print
 the user-summary:
 .IP
        $ adu --select --database-dir /root/adu-var
-
+.PP
+To print the one-line global summary instead, use
+.IP
+       $ adu --select --database-dir /root/adu-var --select-options '--select-mode global_summary'
+.PP
+To sort the user summary by file count rather than by file size, run
+.IP
+       $ adu --select --database-dir /root/adu-var --select-options '--list-sort=file_count'
 .PP
 The command below prints the five largest directories of the users root and
 mysql:
@@ -27,6 +34,24 @@ The same, using short options:
 Again the same, but omitting /var/cache:
 .IP
        $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5 -p !^cache/'
+.PP
+A simple script for interactive mode:
+
+.EX
+       set -m user_list
+       set -u root
+       set -o file-list.root
+       run
+       reset
+       set -m user_list
+       set -u mysql
+       set -o file-list.mysql
+       run
+.EE
+.PP
+Run adu in interactive mode with the above script (adu-script.txt):
+.IP
+       $ adu -Id /root/adu-var < adu-script.txt
 
 [SEE ALSO]
 .BR du (1)