ncdu: bump version to 2.1.2

This commit is contained in:
John McQuah 2022-06-13 12:11:40 -04:00
parent 088512bc25
commit d42d57f4a8
4 changed files with 235 additions and 133 deletions

8
REPO
View File

@ -176,9 +176,9 @@ f:3cf13c44423b0e81b461aee80c08d184:mpc/mpc.1
f:a1320d55cba100bf3cd393d93b8654f6:mpc/.signature f:a1320d55cba100bf3cd393d93b8654f6:mpc/.signature
f:21f23c57df203321aac287ee1b3bb778:mpc/Pkgfile f:21f23c57df203321aac287ee1b3bb778:mpc/Pkgfile
f:bc9f438a799929ce3ac6625ea0059026:mpc/.footprint f:bc9f438a799929ce3ac6625ea0059026:mpc/.footprint
f:9daf59ceb8ed05c01f15451fb7d65aa4:ncdu/.signature f:56760e4171ce7f972e9bc895109c4b4c:ncdu/.signature
f:214f42ba2310f541e22ea66bb1bbcb91:ncdu/Pkgfile f:1741189bf6b0ad05369c079c85c6492c:ncdu/Pkgfile
f:82dfde7d6235763e8634563710d83d47:ncdu/ncdu.1 f:e9fd08791d6b05ab8b85628c42bb0f70:ncdu/ncdu.1
f:3765586fe37e9002a781bae8f35a9bc6:ncdu/.footprint f:3765586fe37e9002a781bae8f35a9bc6:ncdu/.footprint
f:3647bf31ba5888ab5c8693305de43678:deadbeef/README f:3647bf31ba5888ab5c8693305de43678:deadbeef/README
f:b9940fa072d21562fccc3f21838411ad:deadbeef/.signature f:b9940fa072d21562fccc3f21838411ad:deadbeef/.signature
@ -189,7 +189,7 @@ f:412bb094f6509c07effc72e234385448:libheif/.signature
f:db5d8b905684850432f6a1b3d2de03cf:libheif/Pkgfile f:db5d8b905684850432f6a1b3d2de03cf:libheif/Pkgfile
f:6ef24497c85bb356f9d9ad9484b8137c:libheif/.footprint f:6ef24497c85bb356f9d9ad9484b8137c:libheif/.footprint
f:5ecba6966c8a0fdd61d64ab2048f5f5c:octave/.signature f:5ecba6966c8a0fdd61d64ab2048f5f5c:octave/.signature
f:1b02384a8f107e07669ba72ade37e45f:octave/Pkgfile f:3bdac93eff95693cd36f59163ebd839d:octave/Pkgfile
f:4e3d0d933b8243cc633768f26bd36181:octave/.footprint f:4e3d0d933b8243cc633768f26bd36181:octave/.footprint
f:f26be1a427696c1af78566caf20eb6b1:tuigreet/.signature f:f26be1a427696c1af78566caf20eb6b1:tuigreet/.signature
f:406ef23d61bc2179b8a0d53501dda881:tuigreet/Pkgfile f:406ef23d61bc2179b8a0d53501dda881:tuigreet/Pkgfile

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/jmq.pub untrusted comment: verify with /etc/ports/jmq.pub
RWTTPlFarK9CxNCTESca0xfIMEipzodjP7tIvYnJDfaFvlxjtVsxNjymfr2DdklqUyzkcDyMbpCHbw/xRiXLM9lNYfIFAJg+gAo= RWTTPlFarK9CxCMYOww7j2a8xAEb3tEmWMwbmrvL6QZoCixNMmlBY4S0tAknW/PpQNa1jw7fncG7BoLDgnu6lDO/J1Jk7O+v9wI=
SHA256 (Pkgfile) = 063b9815b0b4ece2501f2dd960a7e662fbafadc0ea85a52f6f7d03c49e48b572 SHA256 (Pkgfile) = f86a5707675e5a35b8c24cfdd6d85249f050a33d85c654359a49ebfc2d963623
SHA256 (.footprint) = 28b3a45f7809ec9fe4cc3c0f4b48d291960afd02f9615e0d97c4cbdd1567ecec SHA256 (.footprint) = 28b3a45f7809ec9fe4cc3c0f4b48d291960afd02f9615e0d97c4cbdd1567ecec
SHA256 (ncdu-2.0-linux-x86_64.tar.gz) = f5e16062a330f5c7fbe27b2bf0d507caeb61195d5b956d13c6eea63fb08685b5 SHA256 (ncdu-2.1.2-linux-x86_64.tar.gz) = c837b535a5b42b5c9813bc5719358d6fc84ded3c4d477e779edd0f4ca88b2b60
SHA256 (ncdu.1) = 14ea77376c568239e2971ead2b2123d1504167e7106e180478812550dde1bf58 SHA256 (ncdu.1) = 3391859c7c07c219a25dfa1406a025c7c64f5d6fd6929d1f22fa03ac947986cc

View File

@ -4,7 +4,7 @@
# Depends on: ncurses # Depends on: ncurses
name=ncdu name=ncdu
version=2.0 version=2.1.2
release=1 release=1
source=(https://dev.yorhel.nl/download/$name-$version-linux-x86_64.tar.gz ncdu.1) source=(https://dev.yorhel.nl/download/$name-$version-linux-x86_64.tar.gz ncdu.1)

View File

@ -132,8 +132,8 @@
.rm #[ #] #H #V #F C .rm #[ #] #H #V #F C
.\" ======================================================================== .\" ========================================================================
.\" .\"
.IX Title "NCDU 1" .IX Title "STDIN 1"
.TH NCDU 1 "2021-07-22" "ncdu-2.0" "ncdu manual" .TH STDIN 1 "2022-06-13" "perl v5.32.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents. .\" way too many mistakes in technical documents.
.if n .ad l .if n .ad l
@ -151,13 +151,13 @@ provides a fast way to see what directories are using your disk space.
.IX Header "OPTIONS" .IX Header "OPTIONS"
.SS "Mode Selection" .SS "Mode Selection"
.IX Subsection "Mode Selection" .IX Subsection "Mode Selection"
.IP "\-h, \-\-help" 4 .IP "\fB\-h\fR, \-\fB\-help\fR" 4
.IX Item "-h, --help" .IX Item "-h, --help"
Print a short help message and quit. Print a short help message and quit.
.IP "\-v, \-V, \-\-version" 4 .IP "\fB\-v\fR, \fB\-V\fR, \fB\-\-version\fR" 4
.IX Item "-v, -V, --version" .IX Item "-v, -V, --version"
Print ncdu version and quit. Print ncdu version and quit.
.IP "\-f \fI\s-1FILE\s0\fR" 4 .IP "\fB\-f\fR \fI\s-1FILE\s0\fR" 4
.IX Item "-f FILE" .IX Item "-f FILE"
Load the given file, which has earlier been created with the \f(CW\*(C`\-o\*(C'\fR option. If Load the given file, which has earlier been created with the \f(CW\*(C`\-o\*(C'\fR option. If
\&\fI\s-1FILE\s0\fR is equivalent to \f(CW\*(C`\-\*(C'\fR, the file is read from standard input. \&\fI\s-1FILE\s0\fR is equivalent to \f(CW\*(C`\-\*(C'\fR, the file is read from standard input.
@ -169,7 +169,7 @@ deletion and shell spawning options in the browser will be disabled.
.IP "\fIdir\fR" 4 .IP "\fIdir\fR" 4
.IX Item "dir" .IX Item "dir"
Scan the given directory. Scan the given directory.
.IP "\-o \fI\s-1FILE\s0\fR" 4 .IP "\fB\-o\fR \fI\s-1FILE\s0\fR" 4
.IX Item "-o FILE" .IX Item "-o FILE"
Export all necessary information to \fI\s-1FILE\s0\fR instead of opening the browser Export all necessary information to \fI\s-1FILE\s0\fR instead of opening the browser
interface. If \fI\s-1FILE\s0\fR is \f(CW\*(C`\-\*(C'\fR, the data is written to standard output. See the interface. If \fI\s-1FILE\s0\fR is \f(CW\*(C`\-\*(C'\fR, the data is written to standard output. See the
@ -180,12 +180,12 @@ directory with many files. 10.000 files will get you an export in the order of
600 to 700 KiB uncompressed, or a little over 100 KiB when compressed with 600 to 700 KiB uncompressed, or a little over 100 KiB when compressed with
gzip. This scales linearly, so be prepared to handle a few tens of megabytes gzip. This scales linearly, so be prepared to handle a few tens of megabytes
when dealing with millions of files. when dealing with millions of files.
.IP "\-e" 4 .IP "\fB\-e\fR, \fB\-\-extended\fR, \fB\-\-no\-extended\fR" 4
.IX Item "-e" .IX Item "-e, --extended, --no-extended"
Enable extended information mode. This will, in addition to the usual file Enable/disable extended information mode. This will, in addition to the usual
information, also read the ownership, permissions and last modification time file information, also read the ownership, permissions and last modification
for each file. This will result in higher memory usage (by roughly ~30%) and in time for each file. This will result in higher memory usage (by roughly ~30%)
a larger output file when exporting. and in a larger output file when exporting.
.Sp .Sp
When using the file export/import function, this flag will need to be added When using the file export/import function, this flag will need to be added
both when exporting (to make sure the information is added to the export), and both when exporting (to make sure the information is added to the export), and
@ -195,16 +195,59 @@ information.
.Sp .Sp
This enables viewing and sorting by the latest child mtime, or modified time, This enables viewing and sorting by the latest child mtime, or modified time,
using 'm' and 'M', respectively. using 'm' and 'M', respectively.
.IP "\fB\-\-ignore\-config\fR" 4
.IX Item "--ignore-config"
Do not attempt to load any configuration files.
.SS "Scan Options"
.IX Subsection "Scan Options"
These options affect the scanning progress, and have no effect when importing
directory information from a file.
.IP "\fB\-x\fR, \fB\-\-one\-file\-system\fR" 4
.IX Item "-x, --one-file-system"
Do not cross filesystem boundaries, i.e. only count files and directories on
the same filesystem as the directory being scanned.
.IP "\fB\-\-cross\-file\-system\fR" 4
.IX Item "--cross-file-system"
Do cross filesystem boundaries. This is the default, but can be specified to
overrule a previously given \f(CW\*(C`\-x\*(C'\fR.
.IP "\fB\-\-exclude\fR \fI\s-1PATTERN\s0\fR" 4
.IX Item "--exclude PATTERN"
Exclude files that match \fI\s-1PATTERN\s0\fR. The files will still be displayed by
default, but are not counted towards the disk usage statistics. This argument
can be added multiple times to add more patterns.
.IP "\fB\-X\fR \fI\s-1FILE\s0\fR, \fB\-\-exclude\-from\fR \fI\s-1FILE\s0\fR" 4
.IX Item "-X FILE, --exclude-from FILE"
Exclude files that match any pattern in \fI\s-1FILE\s0\fR. Patterns should be separated
by a newline.
.IP "\fB\-\-include\-caches\fR, \fB\-\-exclude\-caches\fR" 4
.IX Item "--include-caches, --exclude-caches"
Include (default) or exclude directories containing \s-1CACHEDIR.TAG.\s0 The
directories will still be displayed, but their contents will not be scanned or
counted towards the disk usage statistics.
<http://www.brynosaurus.com/cachedir/>
.IP "\fB\-L\fR, \fB\-\-follow\-symlinks\fR, \fB\-\-no\-follow\-symlinks\fR" 4
.IX Item "-L, --follow-symlinks, --no-follow-symlinks"
Follow (or not) symlinks and count the size of the file they point to. As of
ncdu 1.14, this option will not follow symlinks to directories and will count
each symlinked file as a unique file (i.e. unlike how hard links are handled).
This is subject to change in later versions.
.IP "\fB\-\-include\-kernfs\fR, \fB\-\-exclude\-kernfs\fR" 4
.IX Item "--include-kernfs, --exclude-kernfs"
(Linux only) Include (default) or exclude Linux pseudo filesystems, e.g. /proc
(procfs), /sys (sysfs).
.Sp
The complete list of currently known pseudo filesystems is: binfmt, bpf, cgroup,
cgroup2, debug, devpts, proc, pstore, security, selinux, sys, trace.
.SS "Interface options" .SS "Interface options"
.IX Subsection "Interface options" .IX Subsection "Interface options"
.IP "\-0" 4 .IP "\fB\-0\fR" 4
.IX Item "-0" .IX Item "-0"
Don't give any feedback while scanning a directory or importing a file, other Don't give any feedback while scanning a directory or importing a file, other
than when a fatal error occurs. Ncurses will not be initialized until the scan than when a fatal error occurs. Ncurses will not be initialized until the scan
is complete. When exporting the data with \f(CW\*(C`\-o\*(C'\fR, ncurses will not be is complete. When exporting the data with \f(CW\*(C`\-o\*(C'\fR, ncurses will not be
initialized at all. This option is the default when exporting to standard initialized at all. This option is the default when exporting to standard
output. output.
.IP "\-1" 4 .IP "\fB\-1\fR" 4
.IX Item "-1" .IX Item "-1"
Similar to \f(CW\*(C`\-0\*(C'\fR, but does give feedback on the scanning progress with a single Similar to \f(CW\*(C`\-0\*(C'\fR, but does give feedback on the scanning progress with a single
line of output. This option is the default when exporting to a file. line of output. This option is the default when exporting to a file.
@ -212,146 +255,199 @@ line of output. This option is the default when exporting to a file.
In some cases, the ncurses browser interface which you'll see after the In some cases, the ncurses browser interface which you'll see after the
scan/import is complete may look garbled when using this option. If you're not scan/import is complete may look garbled when using this option. If you're not
exporting to a file, \f(CW\*(C`\-2\*(C'\fR is probably a better choice. exporting to a file, \f(CW\*(C`\-2\*(C'\fR is probably a better choice.
.IP "\-2" 4 .IP "\fB\-2\fR" 4
.IX Item "-2" .IX Item "-2"
Provide a full-screen ncurses interface while scanning a directory or importing Provide a full-screen ncurses interface while scanning a directory or importing
a file. This is the only interface that provides feedback on any non-fatal a file. This is the only interface that provides feedback on any non-fatal
errors while scanning. errors while scanning.
.IP "\-q" 4 .IP "\fB\-q\fR, \fB\-\-slow\-ui\-updates\fR, \fB\-\-fast\-ui\-updates\fR" 4
.IX Item "-q" .IX Item "-q, --slow-ui-updates, --fast-ui-updates"
Quiet mode. While scanning or importing the directory, ncdu will update the Change the \s-1UI\s0 update interval while scanning or importing. Ncdu will update the
screen 10 times a second by default, this will be decreased to once every 2 screen 10 times a second by default (\f(CW\*(C`\-\-fast\-ui\-updates\*(C'\fR), this can be
seconds in quiet mode. Use this feature to save bandwidth over remote decreased to once every 2 seconds with \f(CW\*(C`\-q\*(C'\fR or \f(CW\*(C`\-\-slow\-ui\-updates\*(C'\fR. This
connections. This option has no effect when \f(CW\*(C`\-0\*(C'\fR is used. feature can be used to save bandwidth over remote connections. This option has
.IP "\-r" 4 no effect when \f(CW\*(C`\-0\*(C'\fR is used.
.IP "\fB\-\-enable\-shell\fR, \fB\-\-disable\-shell\fR" 4
.IX Item "--enable-shell, --disable-shell"
Enable or disable shell spawning from the browser. This feature is enabled by
default when scanning a live directory and disabled when importing from file.
.IP "\fB\-\-enable\-delete\fR, \fB\-\-disable\-delete\fR" 4
.IX Item "--enable-delete, --disable-delete"
Enable or disable the built-in file deletion feature. This feature is enabled
by default when scanning a live directory and disabled when importing from
file. Explicitly disabling the deletion feature can work as a safeguard to
prevent accidental data loss.
.IP "\fB\-\-enable\-refresh\fR, \fB\-\-disable\-refresh\fR" 4
.IX Item "--enable-refresh, --disable-refresh"
Enable or disable directory refreshing from the browser. This feature is
enabled by default when scanning a live directory and disabled when importing
from file.
.IP "\fB\-r\fR" 4
.IX Item "-r" .IX Item "-r"
Read-only mode. This will disable the built-in file deletion feature. This Read-only mode. When given once, this is an alias for \f(CW\*(C`\-\-disable\-delete\*(C'\fR, when
option has no effect when \f(CW\*(C`\-o\*(C'\fR is used, because there will not be a browser given twice it will also add \f(CW\*(C`\-\-disable\-shell\*(C'\fR, thus ensuring that there is no
interface in that case. It has no effect when \f(CW\*(C`\-f\*(C'\fR is used, either, because way to modify the file system from within ncdu.
the deletion feature is disabled in that case anyway. .IP "\fB\-\-si\fR, \fB\-\-no\-si\fR" 4
.Sp .IX Item "--si, --no-si"
\&\s-1WARNING:\s0 This option will only prevent deletion through the file browser. It is
still possible to spawn a shell from ncdu and delete or modify files from
there. To disable that feature as well, pass the \f(CW\*(C`\-r\*(C'\fR option twice (see
\&\f(CW\*(C`\-rr\*(C'\fR).
.IP "\-rr" 4
.IX Item "-rr"
In addition to \f(CW\*(C`\-r\*(C'\fR, this will also disable the shell spawning feature of the
file browser.
.IP "\-\-si" 4
.IX Item "--si"
List sizes using base 10 prefixes, that is, powers of 1000 (\s-1KB, MB,\s0 etc), as List sizes using base 10 prefixes, that is, powers of 1000 (\s-1KB, MB,\s0 etc), as
defined in the International System of Units (\s-1SI\s0), instead of the usual base 2 defined in the International System of Units (\s-1SI\s0), instead of the usual base 2
prefixes, that is, powers of 1024 (KiB, MiB, etc). prefixes, that is, powers of 1024 (KiB, MiB, etc).
.IP "\-\-confirm\-quit" 4 .IP "\fB\-\-disk\-usage\fR, \fB\-\-apparent\-size\fR" 4
.IX Item "--confirm-quit" .IX Item "--disk-usage, --apparent-size"
Requires a confirmation before quitting ncdu. Very helpful when you Select whether to display disk usage (default) or apparent sizes. Can also be
accidentally press 'q' during or after a very long scan. toggled in the browser with the 'a' key.
.IP "\-\-color \fI\s-1SCHEME\s0\fR" 4 .IP "\fB\-\-show\-hidden\fR, \fB\-\-hide\-hidden\fR" 4
.IX Item "--color SCHEME" .IX Item "--show-hidden, --hide-hidden"
Select a color scheme. Currently only two schemes are recognized: \fIoff\fR to Show (default) or hide \*(L"hidden\*(R" and excluded files. Can also be toggled in the
disable colors (the default) and \fIdark\fR for a color scheme intended for dark browser with the 'e' key.
backgrounds. .IP "\fB\-\-show\-itemcount\fR, \fB\-\-hide\-itemcount\fR" 4
.SS "Scan Options" .IX Item "--show-itemcount, --hide-itemcount"
.IX Subsection "Scan Options" Show or hide (default) the item counts column. Can also be toggled in the
These options affect the scanning progress, and have no effect when importing browser with the 'c' key.
directory information from a file. .IP "\fB\-\-show\-mtime\fR, \fB\-\-hide\-mtime\fR" 4
.IP "\-x" 4 .IX Item "--show-mtime, --hide-mtime"
.IX Item "-x" Show or hide (default) the last modification time column. Can also be toggled
Do not cross filesystem boundaries, i.e. only count files and directories on in the browser with the 'm' key. This option is ignored when not in extended
the same filesystem as the directory being scanned. mode (see \f(CW\*(C`\-e\*(C'\fR).
.IP "\-\-exclude \fI\s-1PATTERN\s0\fR" 4 .IP "\fB\-\-show\-graph\fR, \fB\-\-hide\-graph\fR" 4
.IX Item "--exclude PATTERN" .IX Item "--show-graph, --hide-graph"
Exclude files that match \fI\s-1PATTERN\s0\fR. The files will still be displayed by Show (default) or hide the relative size bar column. Can also be toggled in the
default, but are not counted towards the disk usage statistics. This argument browser with the 'g' key.
can be added multiple times to add more patterns. .IP "\fB\-\-show\-percent\fR, \fB\-\-hide\-percent\fR" 4
.IP "\-X \fI\s-1FILE\s0\fR, \-\-exclude\-from \fI\s-1FILE\s0\fR" 4 .IX Item "--show-percent, --hide-percent"
.IX Item "-X FILE, --exclude-from FILE" Show (default) or hide the relative size percent column. Can also be toggled in
Exclude files that match any pattern in \fI\s-1FILE\s0\fR. Patterns should be separated the browser with the 'g' key.
by a newline. .IP "\fB\-\-graph\-style\fR \fI\s-1OPTION\s0\fR" 4
.IP "\-\-exclude\-caches" 4 .IX Item "--graph-style OPTION"
.IX Item "--exclude-caches" Change the way that the relative size bar column is drawn. Recognized values
Exclude directories containing \s-1CACHEDIR.TAG.\s0 The directories will still be are \fIhash\fR to draw \s-1ASCII\s0 \f(CW\*(C`#\*(C'\fR characters (default and most portable),
displayed, but not their content, and they are not counted towards the disk \&\fIhalf-block\fR to use half-block drawing characters or \fIeighth-block\fR to use
usage statistics. eighth-block drawing characters. Eighth-block characters are the most precise
See http://www.brynosaurus.com/cachedir/ but may not render correctly in all terminals.
.IP "\-L, \-\-follow\-symlinks" 4 .IP "\fB\-\-shared\-column\fR \fI\s-1OPTION\s0\fR" 4
.IX Item "-L, --follow-symlinks" .IX Item "--shared-column OPTION"
Follow symlinks and count the size of the file they point to. As of ncdu 1.14, Set to \fIoff\fR to disable the shared size column for directories, \fIshared\fR
this option will not follow symlinks to directories and will count each (default) to display shared directory sizes as a separate column or \fIunique\fR
symlinked file as a unique file (i.e. unlike how hard links are handled). This to display unique directory sizes as a separate column. These options can also
is subject to change in later versions. be cycled through in the browser with the 'u' key.
.IP "\-\-exclude\-firmlinks" 4 .IP "\fB\-\-sort\fR \fI\s-1COLUMN\s0\fR" 4
.IX Item "--exclude-firmlinks" .IX Item "--sort COLUMN"
(MacOS only) Exclude firmlinks. Change the default column to sort on. Accepted values are \fIdisk-usage\fR (the
.IP "\-\-exclude\-kernfs" 4 default), \fIname\fR, \fIapparent-size\fR, \fIitemcount\fR or \fImtime\fR. The latter only
.IX Item "--exclude-kernfs" makes sense in extended mode, see \f(CW\*(C`\-e\*(C'\fR.
(Linux only) Exclude Linux pseudo filesystems, e.g. /proc (procfs), /sys (sysfs).
.Sp .Sp
The complete list of currently known pseudo filesystems is: binfmt, bpf, cgroup, The column can be suffixed with \fI\-asc\fR or \fI\-desc\fR to set the order to
cgroup2, debug, devpts, proc, pstore, security, selinux, sys, trace. ascending or descending, respectively. e.g. \f(CW\*(C`\-\-sort=name\-desc\*(C'\fR will sort by
name in descending order.
.IP "\fB\-\-group\-directories\-first\fR, \fB\-\-no\-group\-directories\-first\fR" 4
.IX Item "--group-directories-first, --no-group-directories-first"
Sort (or not) directories before files.
.IP "\fB\-\-confirm\-quit\fR, \fB\-\-no\-confirm\-quit\fR" 4
.IX Item "--confirm-quit, --no-confirm-quit"
Require a confirmation before quitting ncdu. Very helpful when you accidentally
press 'q' during or after a very long scan.
.IP "\fB\-\-confirm\-delete\fR, \fB\-\-no\-confirm\-delete\fR" 4
.IX Item "--confirm-delete, --no-confirm-delete"
Require a confirmation before deleting a file or directory. Enabled by default,
but can be disabled if you're absolutely sure you won't accidentally press 'd'.
.IP "\fB\-\-color\fR \fI\s-1SCHEME\s0\fR" 4
.IX Item "--color SCHEME"
Select a color scheme. The following schemes are recognized: \fIoff\fR to disable
colors, \fIdark\fR for a color scheme intended for dark backgrounds and \fIdark-bg\fR
for a variation of the \fIdark\fR color scheme that also works in terminals with a
light background.
.Sp
The default is \fIdark-bg\fR unless the \f(CW\*(C`NO_COLOR\*(C'\fR environment variable is set.
.SH "CONFIGURATION"
.IX Header "CONFIGURATION"
Ncdu can be configured by placing command-line options in \f(CW\*(C`/etc/ncdu.conf\*(C'\fR or
\&\f(CW\*(C`$HOME/.config/ncdu/config\*(C'\fR. If both files exist, the system configuration
will be loaded before the user configuration, allowing users to override
options set in the system configuration. Options given on the command line will
override options set in the configuration files. The files will not be read at
all when \f(CW\*(C`\-\-ignore\-config\*(C'\fR is given on the command line.
.PP
The configuration file format is simply one command line option per line. Lines
starting with \f(CW\*(C`#\*(C'\fR are ignored. Example configuration file:
.PP
.Vb 2
\& # Always enable extended mode
\& \-e
\&
\& # Disable file deletion
\& \-\-disable\-delete
\&
\& # Exclude .git directories
\& \-\-exclude .git
.Ve
.SH "KEYS" .SH "KEYS"
.IX Header "KEYS" .IX Header "KEYS"
.IP "?" 4 .IP "\fB?\fR" 4
.IX Item "?"
Show help + keys + about screen Show help + keys + about screen
.IP "up, down j, k" 4 .IP "\fBup\fR, \fBdown\fR, \fBj\fR, \fBk\fR" 4
.IX Item "up, down j, k" .IX Item "up, down, j, k"
Cycle through the items Cycle through the items
.IP "right, enter, l" 4 .IP "\fBright\fR, \fBenter\fR, \fBl\fR" 4
.IX Item "right, enter, l" .IX Item "right, enter, l"
Open selected directory Open selected directory
.IP "left, <, h" 4 .IP "\fBleft\fR, \fB<\fR, \fBh\fR" 4
.IX Item "left, <, h" .IX Item "left, <, h"
Go to parent directory Go to parent directory
.IP "n" 4 .IP "\fBn\fR" 4
.IX Item "n" .IX Item "n"
Order by filename (press again for descending order) Order by filename (press again for descending order)
.IP "s" 4 .IP "\fBs\fR" 4
.IX Item "s" .IX Item "s"
Order by filesize (press again for descending order) Order by filesize (press again for descending order)
.IP "C" 4 .IP "\fBC\fR" 4
.IX Item "C" .IX Item "C"
Order by number of items (press again for descending order) Order by number of items (press again for descending order)
.IP "a" 4 .IP "\fBa\fR" 4
.IX Item "a" .IX Item "a"
Toggle between showing disk usage and showing apparent size. Toggle between showing disk usage and showing apparent size.
.IP "M" 4 .IP "\fBM\fR" 4
.IX Item "M" .IX Item "M"
Order by latest child mtime, or modified time. (press again for descending order) Order by latest child mtime, or modified time. (press again for descending order)
Requires the \-e flag. Requires the \-e flag.
.IP "d" 4 .IP "\fBd\fR" 4
.IX Item "d" .IX Item "d"
Delete the selected file or directory. An error message will be shown when the Delete the selected file or directory. An error message will be shown when the
contents of the directory do not match or do not exist anymore on the contents of the directory do not match or do not exist anymore on the
filesystem. filesystem.
.IP "t" 4 .IP "\fBt\fR" 4
.IX Item "t" .IX Item "t"
Toggle dirs before files when sorting. Toggle dirs before files when sorting.
.IP "g" 4 .IP "\fBg\fR" 4
.IX Item "g" .IX Item "g"
Toggle between showing percentage, graph, both, or none. Percentage is relative Toggle between showing percentage, graph, both, or none. Percentage is relative
to the size of the current directory, graph is relative to the largest item in to the size of the current directory, graph is relative to the largest item in
the current directory. the current directory.
.IP "c" 4 .IP "\fBu\fR" 4
.IX Item "u"
Toggle display of the shared / unique size column for directories that share
hard links. This column is only visible if the current listing contains
directories with shared hard links.
.IP "\fBc\fR" 4
.IX Item "c" .IX Item "c"
Toggle display of child item counts. Toggle display of child item counts.
.IP "m" 4 .IP "\fBm\fR" 4
.IX Item "m" .IX Item "m"
Toggle display of latest child mtime, or modified time. Requires the \-e flag. Toggle display of latest child mtime, or modified time. Requires the \-e flag.
.IP "e" 4 .IP "\fBe\fR" 4
.IX Item "e" .IX Item "e"
Show/hide 'hidden' or 'excluded' files and directories. Please note that even Show/hide 'hidden' or 'excluded' files and directories. Please note that even
though you can't see the hidden files and directories, they are still there and though you can't see the hidden files and directories, they are still there and
they are still included in the directory sizes. If you suspect that the totals they are still included in the directory sizes. If you suspect that the totals
shown at the bottom of the screen are not correct, make sure you haven't shown at the bottom of the screen are not correct, make sure you haven't
enabled this option. enabled this option.
.IP "i" 4 .IP "\fBi\fR" 4
.IX Item "i" .IX Item "i"
Show information about the current selected item. Show information about the current selected item.
.IP "r" 4 .IP "\fBr\fR" 4
.IX Item "r" .IX Item "r"
Refresh/recalculate the current directory. Refresh/recalculate the current directory.
.IP "b" 4 .IP "\fBb\fR" 4
.IX Item "b" .IX Item "b"
Spawn shell in current directory. Spawn shell in current directory.
.Sp .Sp
@ -371,30 +467,36 @@ spawning the shell. This variable allows you to detect when your shell is
running from within ncdu, which can be useful to avoid nesting multiple running from within ncdu, which can be useful to avoid nesting multiple
instances of ncdu. Ncdu itself does not (currently) warn when attempting to run instances of ncdu. Ncdu itself does not (currently) warn when attempting to run
nested instances. nested instances.
.IP "q" 4 .IP "\fBq\fR" 4
.IX Item "q" .IX Item "q"
Quit Quit
.SH "FILE FLAGS" .SH "FILE FLAGS"
.IX Header "FILE FLAGS" .IX Header "FILE FLAGS"
Entries in the browser interface may be prefixed by a one-character flag. These Entries in the browser interface may be prefixed by a one-character flag. These
flags have the following meaning: flags have the following meaning:
.IP "!" 4 .IP "\fB!\fR" 4
.IX Item "!"
An error occurred while reading this directory. An error occurred while reading this directory.
.IP "." 4 .IP "\fB.\fR" 4
.IX Item "."
An error occurred while reading a subdirectory, so the indicated size may not be An error occurred while reading a subdirectory, so the indicated size may not be
correct. correct.
.IP "<" 4 .IP "\fB<\fR" 4
.IX Item "<"
File or directory is excluded from the statistics by using exclude patterns. File or directory is excluded from the statistics by using exclude patterns.
.IP ">" 4 .IP "\fB>\fR" 4
.IX Item ">"
Directory is on another filesystem. Directory is on another filesystem.
.IP "^" 4 .IP "\fB^\fR" 4
.IX Item "^"
Directory is excluded from the statistics due to being a Linux pseudo filesystem. Directory is excluded from the statistics due to being a Linux pseudo filesystem.
.IP "@" 4 .IP "\fB@\fR" 4
.IX Item "@"
This is neither a file nor a folder (symlink, socket, ...). This is neither a file nor a folder (symlink, socket, ...).
.IP "H" 4 .IP "\fBH\fR" 4
.IX Item "H" .IX Item "H"
Same file was already counted (hard link). Same file was already counted (hard link).
.IP "e" 4 .IP "\fBe\fR" 4
.IX Item "e" .IX Item "e"
Empty directory. Empty directory.
.SH "EXAMPLES" .SH "EXAMPLES"
@ -479,25 +581,25 @@ not always be same as the space that will be reclaimed after deleting the
directory, as some inodes may still be accessible from hard links outside it. directory, as some inodes may still be accessible from hard links outside it.
.SH "BUGS" .SH "BUGS"
.IX Header "BUGS" .IX Header "BUGS"
Directory hard links are not supported. They will not be detected as being hard Directory hard links and firmlinks (MacOS) are not supported. They will not be
links, and will thus be scanned and counted multiple times. detected as being hard links, and may thus be scanned and counted multiple
times.
.PP .PP
Some minor glitches may appear when displaying filenames that contain multibyte Some minor glitches may appear when displaying filenames that contain multibyte
or multicolumn characters. or multicolumn characters.
.PP .PP
The unique and shared directory sizes are calculated based on the assumption
that the link count of hard links does not change during a filesystem scan or
in between refreshes. If it does, for example after deleting a hard link, then
these numbers will be very much incorrect and a full refresh by restarting ncdu
is needed to get correct numbers again.
.PP
All sizes are internally represented as a signed 64bit integer. If you have a All sizes are internally represented as a signed 64bit integer. If you have a
directory larger than 8 EiB minus one byte, ncdu will clip its size to 8 EiB directory larger than 8 EiB minus one byte, ncdu will clip its size to 8 EiB
minus one byte. When deleting items in a directory with a clipped size, the minus one byte. When deleting or refreshing items in a directory with a clipped
resulting sizes will be incorrect. size, the resulting sizes will be incorrect. Likewise, item counts are stored
.PP in a 32\-bit integer, so will be incorrect in the unlikely event that you happen
Item counts are stored in a signed 32\-bit integer without overflow detection. to have more than 4 billion items in a directory.
If you have a directory with more than 2 billion files, quite literally
anything can happen.
.PP
On macOS 10.15 and later, running ncdu on the root directory without
`\-\-exclude\-firmlinks` may cause directories to be scanned and counted multiple
times. Firmlink cycles are currently (1.16) not detected, so it may also cause
ncdu to get stuck in an infinite loop and eventually run out of memory.
.PP .PP
Please report any other bugs you may find at the bug tracker, which can be Please report any other bugs you may find at the bug tracker, which can be
found on the web site at https://dev.yorhel.nl/ncdu found on the web site at https://dev.yorhel.nl/ncdu