summaryrefslogtreecommitdiff
path: root/debugfs/debugfs.8.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2004-01-24 18:54:41 -0500
committerTheodore Ts'o <tytso@mit.edu>2004-01-24 18:54:41 -0500
commit2b5ddd75c90ed4dce2ecdca12b59688a46b11b01 (patch)
treed6a0f26918ceaa585dfacb36cbc89a9397beda4d /debugfs/debugfs.8.in
parent2293a4d5deb30b02d90c4d0aee516e8280092a58 (diff)
downloade2fsprogs-2b5ddd75c90ed4dce2ecdca12b59688a46b11b01.tar.gz
For debugfs, use the "more" pager in preference to "less",
since "less" doesn't work terribly well for debugfs's purpose. Document the DEBUGFS_PAGER and PAGER environment variables.
Diffstat (limited to 'debugfs/debugfs.8.in')
-rw-r--r--debugfs/debugfs.8.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/debugfs/debugfs.8.in b/debugfs/debugfs.8.in
index 3cc0f960..944327be 100644
--- a/debugfs/debugfs.8.in
+++ b/debugfs/debugfs.8.in
@@ -434,6 +434,36 @@ Create a file in the filesystem named
and copy the contents of
.I source_file
into the destination file.
+.SH ENVIRONMENT VARIABLES
+.TP
+.B DEBUGFS_PAGER, PAGER
+The
+.BR debugfs (8)
+program always pipes the output of the some commands through a
+pager program. These commands include:
+.IR show_super_stats ,
+.IR list_directory ,
+.IR show_inode_info ,
+.IR list_deleted_inodes ,
+and
+.IR htree_dump .
+The specific pager can explicitly specified by the
+.B DEBUGFS_PAGER
+environment variable, and if it is not set, by the
+.B PAGER
+environment variable.
+.IP
+Note that since a pager is always used, the
+.BR less (1)
+pager is not particularly appropriate, since it clears the screen before
+displaying the output of the command and clears the output the screen
+when the pager is exited. Many users prefer to use the
+.BR less (1)
+pager for most purposes, which is why the
+.B DEBUGFS_PAGER
+environment variable is available to override the more general
+.B PAGER
+environment variable.
.SH AUTHOR
.B debugfs
was written by Theodore Ts'o <tytso@mit.edu>.