Whamcloud - gitweb
AOSP: use e2fsprogs-defaults for ccflags
[tools/e2fsprogs.git] / debugfs / debugfs.8.in
1 .\" -*- nroff -*-
2 .\" Copyright 1993, 1994, 1995 by Theodore Ts'o.  All Rights Reserved.
3 .\" This file may be copied under the terms of the GNU Public License.
4 .\"
5 .TH DEBUGFS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
6 .SH NAME
7 debugfs \- ext2/ext3/ext4 file system debugger
8 .SH SYNOPSIS
9 .B debugfs
10 [
11 .B \-DVwcin
12 ]
13 [
14 .B \-b
15 blocksize
16 ]
17 [
18 .B \-s
19 superblock
20 ]
21 [
22 .B \-f
23 cmd_file
24 ]
25 [
26 .B \-R
27 request
28 ]
29 [
30 .B \-d
31 data_source_device
32 ]
33 [
34 .B \-z
35 .I undo_file
36 ]
37 [
38 device
39 ]
40 .SH DESCRIPTION
41 The
42 .B debugfs
43 program is an interactive file system debugger. It can be used to
44 examine and change the state of an ext2, ext3, or ext4 file system.
45 .PP
46 .I device
47 is a block device (e.g., /dev/sdXX) or a file containing the file system.
48 .SH OPTIONS
49 .TP
50 .I \-w
51 Specifies that the file system should be opened in read-write mode.
52 Without this option, the file system is opened in read-only mode.
53 .TP
54 .I \-n
55 Disables metadata checksum verification.  This should only be used if
56 you believe the metadata to be correct despite the complaints of
57 e2fsprogs.
58 .TP
59 .I \-c
60 Specifies that the file system should be opened in catastrophic mode, in
61 which the inode and group bitmaps are not read initially.  This can be
62 useful for filesystems with significant corruption, but because of this,
63 catastrophic mode forces the filesystem to be opened read-only.
64 .TP
65 .I \-i
66 Specifies that
67 .I device
68 represents an ext2 image file created by the
69 .B e2image
70 program.  Since the ext2 image file only contains the superblock, block
71 group descriptor, block and inode allocation bitmaps, and
72 the inode table, many
73 .B debugfs
74 commands will not function properly.
75 .B Warning:
76 no safety checks are in place, and
77 .B debugfs
78 may fail in interesting ways if commands such as
79 .IR ls ", " dump ", "
80 etc. are tried without specifying the
81 .I data_source_device
82 using the
83 .I \-d
84 option.
85 .B debugfs
86 is a debugging tool.  It has rough edges!
87 .TP
88 .I -d data_source_device
89 Used with the
90 .I \-i
91 option, specifies that
92 .I data_source_device
93 should be used when reading blocks not found in the ext2 image file.
94 This includes data, directory, and indirect blocks.
95 .TP
96 .I -b blocksize
97 Forces the use of the given block size (in bytes) for the file system,
98 rather than detecting the correct block size automatically.  (This
99 option is rarely needed; it is used primarily when the file system is
100 extremely badly damaged/corrupted.)
101 .TP
102 .I -s superblock
103 Causes the file system superblock to be read from the given block
104 number, instead of using the primary superblock (located at an offset of
105 1024 bytes from the beginning of the filesystem).  If you specify the
106 .I -s
107 option, you must also provide the blocksize of the filesystem via the
108 .I -b
109 option.   (This
110 option is rarely needed; it is used primarily when the file system is
111 extremely badly damaged/corrupted.)
112 .TP
113 .I -f cmd_file
114 Causes
115 .B debugfs
116 to read in commands from
117 .IR cmd_file ,
118 and execute them.  When
119 .B debugfs
120 is finished executing those commands, it will exit.
121 .TP
122 .I -D
123 Causes
124 .B debugfs
125 to open the device using Direct I/O, bypassing the buffer cache.  Note
126 that some Linux devices, notably device mapper as of this writing, do
127 not support Direct I/O.
128 .TP
129 .I -R request
130 Causes
131 .B debugfs
132 to execute the single command
133 .IR request ,
134 and then exit.
135 .TP
136 .I -V
137 print the version number of
138 .B debugfs
139 and exit.
140 .TP
141 .BI \-z " undo_file"
142 Before overwriting a file system block, write the old contents of the block to
143 an undo file.  This undo file can be used with e2undo(8) to restore the old
144 contents of the file system should something go wrong.  If the empty string is
145 passed as the undo_file argument, the undo file will be written to a file named
146 debugfs-\fIdevice\fR.e2undo in the directory specified via the
147 \fIE2FSPROGS_UNDO_DIR\fR environment variable.
148
149 WARNING: The undo file cannot be used to recover from a power or system crash.
150 .SH SPECIFYING FILES
151 Many
152 .B debugfs
153 commands take a
154 .I filespec
155 as an argument to specify an inode (as opposed to a pathname)
156 in the filesystem which is currently opened by
157 .BR debugfs .
158 The
159 .I filespec
160 argument may be specified in two forms.  The first form is an inode
161 number surrounded by angle brackets, e.g.,
162 .IR <2> .
163 The second form is a pathname; if the pathname is prefixed by a forward slash
164 ('/'), then it is interpreted relative to the root of the filesystem
165 which is currently opened by
166 .BR debugfs .
167 If not, the pathname is
168 interpreted relative to the current working directory as maintained by
169 .BR debugfs .
170 This may be modified by using the
171 .B debugfs
172 command
173 .IR cd .
174 .\"
175 .\"
176 .\"
177 .SH COMMANDS
178 This is a list of the commands which
179 .B debugfs
180 supports.
181 .TP
182 .BI blocks " filespec"
183 Print the blocks used by the inode
184 .I filespec
185 to stdout.
186 .TP
187 .BI bmap " [ -a ] filespec logical_block [physical_block]"
188 Print or set the physical block number corresponding to the logical block number
189 .I logical_block
190 in the inode
191 .IR filespec .
192 If the
193 .I -a
194 flag is specified, try to allocate a block if necessary.
195 .TP
196 .BI block_dump " [-f filespec] block_num"
197 Dump the filesystem block given by
198 .I block_num
199 in hex and ASCII format to the console.  If the
200 .I -f
201 option is specified, the block number is relative to the start of the given
202 .BR filespec .
203 .TP
204 .BI cat " filespec"
205 Dump the contents of the inode
206 .I filespec
207 to stdout.
208 .TP
209 .BI cd " filespec"
210 Change the current working directory to
211 .IR filespec .
212 .TP
213 .BI chroot " filespec"
214 Change the root directory to be the directory
215 .IR filespec .
216 .TP
217 .BI close " [-a]"
218 Close the currently open file system.  If the
219 .I -a
220 option is specified, write out any changes to the superblock and block
221 group descriptors to all of the backup superblocks, not just to the
222 master superblock.
223 .TP
224 .BI clri " filespec"
225 Clear the contents of the inode
226 .IR filespec .
227 .TP
228 .BI copy_inode " source_inode destination_inode"
229 Copy the contents of the inode structure in
230 .I source_inode
231 and use it to overwrite the inode structure at
232 .IR destination_inode .
233 .TP
234 .BI dirsearch " filespec filename"
235 Search the directory
236 .I filespec
237 for
238 .IR filename .
239 .TP
240 .BI dirty " [-clean]"
241 Mark the filesystem as dirty, so that the superblocks will be written on exit.
242 Additionally, clear the superblock's valid flag, or set it if
243 .I -clean
244 is specified.
245 .TP
246 .BI dump " [-p] filespec out_file"
247 Dump the contents of the inode
248 .I filespec
249 to the output file
250 .IR out_file .
251 If the
252 .I -p
253 option is given set the owner, group and permissions information on
254 .I out_file
255 to match
256 .IR filespec .
257 .TP
258 .BI dump_mmp " [mmp_block]"
259 Display the multiple-mount protection (mmp) field values.  If
260 .I mmp_block
261 is specified then verify and dump the MMP values from the given block
262 number, otherwise use the
263 .B s_mmp_block
264 field in the superblock to locate and use the existing MMP block.
265 .TP
266 .BI dx_hash " [-h hash_alg] [-s hash_seed] filename"
267 Calculate the directory hash of
268 .IR filename .
269 The hash algorithm specified with
270 .I -h
271 may be
272 .BR legacy , " half_md4" ", or " tea .
273 The hash seed specified with
274 .I -s
275 must be in UUID format.
276 .TP
277 .BI dump_extents " [-n] [-l] filespec"
278 Dump the the extent tree of the inode
279 .IR filespec .
280 The
281 .I -n
282 flag will cause
283 .B dump_extents
284 to only display the interior nodes in the extent tree.   The
285 .I -l
286 flag will cause
287 .B dump_extents
288 to only display the leaf nodes in the extent tree.
289 .IP
290 (Please note that the length and range of blocks for the last extent in
291 an interior node is an estimate by the extents library functions, and is
292 not stored in filesystem data structures.   Hence, the values displayed
293 may not necessarily by accurate and does not indicate a problem or
294 corruption in the file system.)
295 .TP
296 .B dump_unused
297 Dump unused blocks which contain non-null bytes.
298 .TP
299 .BI ea_get " [-f outfile]|[-xVC] [-r] filespec attr_name"
300 Retrieve the value of the extended attribute
301 .I attr_name
302 in the file
303 .I filespec
304 and write it either to stdout or to \fIoutfile\fR.
305 .TP
306 .BI ea_list " filespec
307 List the extended attributes associated with the file
308 .I filespec
309 to standard output.
310 .TP
311 .BI ea_set " [-f infile] [-r] filespec attr_name attr_value
312 Set the value of the extended attribute
313 .I attr_name
314 in the file
315 .I filespec
316 to the string value
317 .I attr_value
318 or read it from \fIinfile\fR.
319 .TP
320 .BI ea_rm " filespec attr_names...
321 Remove the extended attribute
322 .I attr_name
323 from the file \fIfilespec\fR.
324 .TP
325 .BI expand_dir " filespec"
326 Expand the directory
327 .IR filespec .
328 .TP
329 .BI fallocate " filespec start_block [end_block]
330 Allocate and map uninitialized blocks into \fIfilespec\fR between
331 logical block \fIstart_block\fR and \fIend_block\fR, inclusive.  If
332 \fIend_block\fR is not supplied, this function maps until it runs out
333 of free disk blocks or the maximum file size is reached.  Existing
334 mappings are left alone.
335 .TP
336 .BI feature " [fs_feature] [-fs_feature] ..."
337 Set or clear various filesystem features in the superblock.  After setting
338 or clearing any filesystem features that were requested, print the current
339 state of the filesystem feature set.
340 .TP
341 .BI filefrag " [-dvr] filespec"
342 Print the number of contiguous extents in
343 .IR filespec .
344 If
345 .I filespec
346 is a directory and the
347 .I -d
348 option is not specified,
349 .I filefrag
350 will print the number of contiguous extents for each file in
351 the directory.  The
352 .I -v
353 option will cause
354 .I filefrag
355 print a tabular listing of the contiguous extents in the
356 file.  The
357 .I -r
358 option will cause
359 .I filefrag
360 to do a recursive listing of the directory.
361 .TP
362 .BI find_free_block " [count [goal]]"
363 Find the first
364 .I count
365 free blocks, starting from
366 .I goal
367 and allocate it.  Also available as
368 .BR ffb .
369 .TP
370 .BI find_free_inode " [dir [mode]]"
371 Find a free inode and allocate it.  If present,
372 .I dir
373 specifies the inode number of the directory
374 which the inode is to be located.  The second
375 optional argument
376 .I mode
377 specifies the permissions of the new inode.  (If the directory bit is set
378 on the mode, the allocation routine will function differently.)  Also
379 available as
380 .BR ffi .
381 .TP
382 .BI freeb " block [count]"
383 Mark the block number
384 .I block
385 as not allocated.
386 If the optional argument
387 .I count
388 is present, then
389 .I count
390 blocks starting at block number
391 .I block
392 will be marked as not allocated.
393 .TP
394 .BI freefrag " [-c chunk_kb]"
395 Report free space fragmentation on the currently open file system.
396 If the
397 .I \-c
398 option is specified then the filefrag command will print how many free
399 chunks of size
400 .I chunk_kb
401 can be found in the file system.  The chunk size must be a power of two
402 and be larger than the file system block size.
403 .TP
404 .BI freei " filespec [num]"
405 Free the inode specified by
406 .IR filespec .
407 If
408 .I num
409 is specified, also clear num-1 inodes after the specified inode.
410 .TP
411 .BI get_quota " quota_type id"
412 Display quota information for given quota type (user, group, or project) and ID.
413 .TP
414 .B help
415 Print a list of commands understood by
416 .BR debugfs .
417 .TP
418 .BI htree_dump " filespec"
419 Dump the hash-indexed directory
420 .IR filespec ,
421 showing its tree structure.
422 .TP
423 .BI icheck " block ..."
424 Print a listing of the inodes which use the one or more blocks specified
425 on the command line.
426 .TP
427 .BI inode_dump " filespec"
428 Print the contents of the inode data structure in hex and ASCII format.
429 .TP
430 .BI imap " filespec"
431 Print the location of the inode data structure (in the inode table)
432 of the inode
433 .IR filespec .
434 .TP
435 .BI init_filesys " device blocksize"
436 Create an ext2 file system on
437 .I device
438 with device size
439 .IR blocksize .
440 Note that this does not fully initialize all of the data structures;
441 to do this, use the
442 .BR mke2fs (8)
443 program.  This is just a call to the low-level library, which sets up
444 the superblock and block descriptors.
445 .TP
446 .BI journal_close
447 Close the open journal.
448 .TP
449 .BI journal_open " [-c] [-v ver] [-f ext_jnl]
450 Opens the journal for reading and writing.  Journal checksumming can
451 be enabled by supplying \fI-c\fR; checksum formats 2 and 3 can be
452 selected with the \fI-v\fR option.  An external journal can be loaded
453 from \fIext_jnl\fR.
454 .TP
455 .BI journal_run
456 Replay all transactions in the open journal.
457 .TP
458 .BI journal_write " [-b blocks] [-r revoke] [-c] file
459 Write a transaction to the open journal.  The list of blocks to write
460 should be supplied as a comma-separated list in \fIblocks\fR; the
461 blocks themselves should be readable from \fIfile\fR.  A list of
462 blocks to revoke can be supplied as a comma-separated list in
463 \fIrevoke\fR.  By default, a commit record is written at the end; the
464 \fI-c\fR switch writes an uncommitted transaction.
465 .TP
466 .BI kill_file " filespec"
467 Deallocate the inode
468 .I filespec
469 and its blocks.  Note that this does not remove any directory
470 entries (if any) to this inode.  See the
471 .BR rm (1)
472 command if you wish to unlink a file.
473 .TP
474 .BI lcd " directory"
475 Change the current working directory of the
476 .B debugfs
477 process to
478 .I directory
479 on the native filesystem.
480 .TP
481 .BI list_quota " quota_type"
482 Display quota information for given quota type (user, group, or project).
483 .TP
484 .BI ln " filespec dest_file"
485 Create a link named
486 .I dest_file
487 which is a hard link to
488 .IR filespec .
489 Note this does not adjust the inode reference counts.
490 .TP
491 .BI logdump " [-acsOS] [-b block] [-i filespec] [-f journal_file] [output_file]"
492 Dump the contents of the ext3 journal.  By default, dump the journal inode as
493 specified in the superblock.  However, this can be overridden with the
494 .I \-i
495 option, which dumps the journal from the internal inode given by
496 .IR filespec .
497 A regular file containing journal data can be specified using the
498 .I \-f
499 option.  Finally, the
500 .I \-s
501 option utilizes the backup information in the superblock to locate the
502 journal.
503 .IP
504 The
505 .I \-S
506 option causes
507 .B logdump
508 to print the contents of the journal superblock.
509 .IP
510 The
511 .I \-a
512 option causes the
513 .B logdump
514 program to print the contents of all of the descriptor blocks.
515 The
516 .I \-b
517 option causes
518 .B logdump
519 to print all journal records that refer to the specified block.
520 The
521 .I \-c
522 option will print out the contents of all of the data blocks selected by
523 the
524 .I \-a
525 and
526 .I \-b
527 options.
528 .IP
529 The
530 .I \-O
531 option causes logdump to display old (checkpointed) journal entries.
532 This can be used to try to track down journal problems even after the
533 journal has been replayed.
534 .TP
535 .BI ls " [-l] [-c] [-d] [-p] [-r] filespec"
536 Print a listing of the files in the directory
537 .IR filespec .
538 The
539 .I \-c
540 flag causes directory block checksums (if present) to be displayed.
541 The
542 .I \-d
543 flag will list deleted entries in the directory.
544 The
545 .I \-l
546 flag will list files using a more verbose format.
547 The
548 .I \-p
549 flag will list the files in a format which is more easily parsable by
550 scripts, as well as making it more clear when there are spaces or other
551 non-printing characters at the end of filenames.
552 The
553 .I \-r
554 flag will force the printing of the filename, even if it is encrypted.
555 .TP
556 .BI list_deleted_inodes " [limit]"
557 List deleted inodes, optionally limited to those deleted within
558 .I limit
559 seconds ago.  Also available as
560 .BR lsdel .
561 .IP
562 This command was useful for recovering from accidental file deletions
563 for ext2 file systems.  Unfortunately, it is not useful for this purpose
564 if the files were deleted using ext3 or ext4, since the inode's
565 data blocks are no longer available after the inode is released.
566 .TP
567 .BI modify_inode " filespec"
568 Modify the contents of the inode structure in the inode
569 .IR filespec .
570 Also available as
571 .BR mi .
572 .TP
573 .BI mkdir " filespec"
574 Make a directory.
575 .TP
576 .BI mknod " filespec [p|[[c|b] major minor]]"
577 Create a special device file (a named pipe, character or block device).
578 If a character or block device is to be made, the
579 .I major
580 and
581 .I minor
582 device numbers must be specified.
583 .TP
584 .BI ncheck " [-c] inode_num ..."
585 Take the requested list of inode numbers, and print a listing of pathnames
586 to those inodes.  The
587 .I -c
588 flag will enable checking the file type information in the directory
589 entry to make sure it matches the inode's type.
590 .TP
591 .BI open " [-weficD] [-b blocksize] [-d image_filename] [-s superblock] [-z undo_file] device"
592 Open a filesystem for editing.  The
593 .I -f
594 flag forces the filesystem to be opened even if there are some unknown
595 or incompatible filesystem features which would normally
596 prevent the filesystem from being opened.  The
597 .I -e
598 flag causes the filesystem to be opened in exclusive mode.  The
599 .IR -b ", " -c ", " -d ", " -i ", " -s ", " -w ", and " -D
600 options behave the same as the command-line options to
601 .BR debugfs .
602 .TP
603 .BI punch " filespec start_blk [end_blk]"
604 Delete the blocks in the inode ranging from
605 .I start_blk
606 to
607 .IR end_blk .
608 If
609 .I end_blk
610 is omitted then this command will function as a truncate command; that
611 is, all of the blocks starting at
612 .I start_blk
613 through to the end of the file will be deallocated.
614 .TP
615 .BI symlink " filespec target"
616 Make a symbolic link.
617 .TP
618 .B pwd
619 Print the current working directory.
620 .TP
621 .B quit
622 Quit
623 .B debugfs
624 .TP
625 .BI rdump " directory[...] destination"
626 Recursively dump
627 .IR directory ,
628 or multiple
629 .IR directories ,
630 and all its contents (including regular files, symbolic links, and other
631 directories) into the named
632 .IR destination ,
633 which should be an existing directory on the native filesystem.
634 .TP
635 .BI rm " pathname"
636 Unlink
637 .IR pathname .
638 If this causes the inode pointed to by
639 .I pathname
640 to have no other references, deallocate the file.  This command functions
641 as the unlink() system call.
642 .I
643 .TP
644 .BI rmdir " filespec"
645 Remove the directory
646 .IR filespec .
647 .TP
648 .BI setb " block [count]"
649 Mark the block number
650 .I block
651 as allocated.
652 If the optional argument
653 .I count
654 is present, then
655 .I count
656 blocks starting at block number
657 .I block
658 will be marked as allocated.
659 .TP
660 .BI set_block_group " bgnum field value"
661 Modify the block group descriptor specified by
662 .I bgnum
663 so that the block group descriptor field
664 .I field
665 has value
666 .IR value .
667 Also available as
668 .BR set_bg .
669 .TP
670 .BI set_current_time " time"
671 Set current time in seconds since Unix epoch to use when setting filesystem
672 fields.
673 .TP
674 .BI seti " filespec [num]"
675 Mark inode
676 .I filespec
677 as in use in the inode bitmap.  If
678 .I num
679 is specified, also set num-1 inodes after the specified inode.
680 .TP
681 .BI set_inode_field " filespec field value"
682 Modify the inode specified by
683 .I filespec
684 so that the inode field
685 .I field
686 has value
687 .I value.
688 The list of valid inode fields which can be set via this command
689 can be displayed by using the command:
690 .B set_inode_field -l
691 Also available as
692 .BR sif .
693 .TP
694 .BI set_mmp_value " field value"
695 Modify the multiple-mount protection (MMP) data so that the MMP field
696 .I field
697 has value
698 .I value.
699 The list of valid MMP fields which can be set via this command
700 can be displayed by using the command:
701 .B set_mmp_value -l
702 Also available as
703 .BR smmp .
704 .TP
705 .BI set_super_value " field value"
706 Set the superblock field
707 .I field
708 to
709 .I value.
710 The list of valid superblock fields which can be set via this command
711 can be displayed by using the command:
712 .B set_super_value -l
713 Also available as
714 .BR ssv .
715 .TP
716 .B show_debugfs_params
717 Display
718 .B debugfs
719 parameters such as information about currently opened filesystem.
720 .TP
721 .BI show_super_stats " [-h]"
722 List the contents of the super block and the block group descriptors.  If the
723 .I -h
724 flag is given, only print out the superblock contents. Also available as
725 .BR stats .
726 .TP
727 .BI stat " filespec"
728 Display the contents of the inode structure of the inode
729 .IR filespec .
730 .TP
731 .B supported_features
732 Display filesystem features supported by this version of
733 .BR debugfs .
734 .TP
735 .BI testb " block [count]"
736 Test if the block number
737 .I block
738 is marked as allocated in the block bitmap.
739 If the optional argument
740 .I count
741 is present, then
742 .I count
743 blocks starting at block number
744 .I block
745 will be tested.
746 .TP
747 .BI testi " filespec"
748 Test if the inode
749 .I filespec
750 is marked as allocated in the inode bitmap.
751 .TP
752 .BI undel " <inode_number> [pathname]"
753 Undelete the specified inode number (which must be surrounded by angle
754 brackets) so that it and its blocks are marked in use, and optionally
755 link the recovered inode to the specified pathname.  The
756 .B e2fsck
757 command should always be run after using the
758 .B undel
759 command to recover deleted files.
760 .IP
761 Note that if you are recovering a large number of deleted files, linking
762 the inode to a directory may require the directory to be expanded, which
763 could allocate a block that had been used by one of the
764 yet-to-be-undeleted files.  So it is safer to undelete all of the
765 inodes without specifying a destination pathname, and then in a separate
766 pass, use the debugfs
767 .B link
768 command to link the inode to the destination pathname, or use
769 .B e2fsck
770 to check the filesystem and link all of the recovered inodes to the
771 lost+found directory.
772 .TP
773 .BI unlink " pathname"
774 Remove the link specified by
775 .I pathname
776 to an inode.  Note this does not adjust the inode reference counts.
777 .TP
778 .BI write " source_file out_file"
779 Copy the contents of
780 .I source_file
781 into a newly-created file in the filesystem named
782 .IR out_file .
783 .TP
784 .BI zap_block " [-f filespec] [-o offset] [-l length] [-p pattern] block_num"
785 Overwrite the block specified by
786 .I block_num
787 with zero (NUL) bytes, or if
788 .I -p
789 is given use the byte specified by
790 .IR pattern .
791 If
792 .I -f
793 is given then
794 .I block_num
795 is relative to the start of the file given by
796 .IR filespec .
797 The
798 .I -o
799 and
800 .I -l
801 options limit the range of bytes to zap to the specified
802 .I offset
803 and
804 .I length
805 relative to the start of the block.
806 .TP
807 .BI zap_block " [-f filespec] [-b bit] block_num"
808 Bit-flip portions of the physical
809 .IR block_num .
810 If
811 .I -f
812 is given, then
813 .I block_num
814 is a logical block relative to the start of
815 .IR filespec .
816 .SH ENVIRONMENT VARIABLES
817 .TP
818 .B DEBUGFS_PAGER, PAGER
819 The
820 .B debugfs
821 program always pipes the output of the some commands through a
822 pager program.  These commands include:
823 .IR show_super_stats " (" stats ),
824 .IR list_directory " (" ls ),
825 .IR show_inode_info " (" stat ),
826 .IR list_deleted_inodes " (" lsdel ),
827 and
828 .IR htree_dump .
829 The specific pager can explicitly specified by the
830 .B DEBUGFS_PAGER
831 environment variable, and if it is not set, by the
832 .B PAGER
833 environment variable.
834 .IP
835 Note that since a pager is always used, the
836 .BR less (1)
837 pager is not particularly appropriate, since it clears the screen before
838 displaying the output of the command and clears the output the screen
839 when the pager is exited.  Many users prefer to use the
840 .BR less (1)
841 pager for most purposes, which is why the
842 .B DEBUGFS_PAGER
843 environment variable is available to override the more general
844 .B PAGER
845 environment variable.
846 .SH AUTHOR
847 .B debugfs
848 was written by Theodore Ts'o <tytso@mit.edu>.
849 .SH SEE ALSO
850 .BR dumpe2fs (8),
851 .BR tune2fs (8),
852 .BR e2fsck (8),
853 .BR mke2fs (8),
854 .BR ext4 (5)