Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nccf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
702
Provoz
nccf
Commits
f71b09c5
Commit
f71b09c5
authored
14 years ago
by
Yorhel
Browse files
Options
Downloads
Patches
Plain Diff
Man page + TODO updates
parent
9f7bc01f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TODO
+9
-6
9 additions, 6 deletions
TODO
doc/ncdu.1
+42
-6
42 additions, 6 deletions
doc/ncdu.1
with
51 additions
and
12 deletions
TODO
+
9
−
6
View file @
f71b09c5
Small list of planned features/changes, suggestions are always welcome.
Small list of planned features/changes, in no particular order.
Suggestions are always welcome.
- Add export/import feature for filelists
...
...
@@ -7,6 +8,8 @@ Small list of planned features/changes, suggestions are always welcome.
- Improve browser interface
* Option to display number of files
* Mutt-like status bar?
* More information in file info window:
> dev, ino, mode, gid, uid, mtime, atime, number of files
- Add custom key bindings
* Using a config file (/etc/ncdurc, ~/.ncdurc)
...
...
@@ -14,15 +17,15 @@ Small list of planned features/changes, suggestions are always welcome.
- Improved sorting configuration
* Sort by number of files
* Use one key to open up a menu with sort options, instead of
having a
special key for each column
* Use one key to open up a menu with sort options, instead of
having a
special key for each column
- Better handling of hard links
?
- Better handling of hard links
* Use hash table or BST to speed up hard link detection
* Have a separate size variable for "shared" data
(displayed in the browser as e.g. "291+3MiB")
This should be both more intuitive and more correct than simply
counting a semi-random occurence and ignoring others, as we do now.
* Support directory hard links (on Darwin and Solaris)
(And recognise bind-mounted paths as such on Linux?)
- Better handling of multibyte or multicolumn characters
* strlen() <> number_of_columns() <> number_of_characters()
...
...
This diff is collapsed.
Click to expand it.
doc/ncdu.1
+
42
−
6
View file @
f71b09c5
.TH
NCDU 1 "Oct 2
3, 200
9
" "ncdu-git" "ncdu manual"
.TH
ncdu 1 "Aug 1
3, 20
1
0" "ncdu-git" "ncdu manual"
.SH NAME
\fBncdu \fP- NCurses Disk Usage
.SH SYNOPSIS
\fBncdu\fP [\fB-hqvx\fP] [\fB--exclude
PATTERN\fP] [\fB-X
FILE\fP] \fIdir\fP
\fBncdu\fP [\fB-hqvx\fP] [\fB--exclude
\fP \fI
PATTERN\fP] [\fB-X
\fP \fI
FILE\fP] \fIdir\fP
.SH DESCRIPTION
\fBncdu\fP (NCurses Disk Usage) is a curses-based version of
...
...
@@ -36,7 +36,7 @@ be added multiple times to add more patterns.
.TP
\fB-X\fP FILE, \fB--exclude-from\fP FILE
Exclude files that match any pattern in FILE. Patterns
should be sep
e
rated by a newline.
should be sep
a
rated by a newline.
.SH KEYS
.TP
...
...
@@ -90,11 +90,47 @@ Refresh/recalculate the current directory.
\fBq\fP
Quit
.SH AUTHOR
Written by Yoran Heling <projects@yorhel.nl>.
.SH HARD LINKS
Every disk usage analysis utility has its own way of (not) counting hard links.
There does not seem to be any universally agreed method of handling hard links,
and it is even inconsistent among different versions of ncdu. This section
explains what each version of ncdu does.
.P
ncdu 1.5 and below does not support any hard link detection at all: each link
is considered a separate inode and its size is counted for every link. This
means that the displayed directory sizes are incorrect when analyzing
directories which contain hard links.
.P
ncdu 1.6 has basic hard link detection: When a link to a previously encountered
inode is detected, the link is considered to have a file size of zero bytes.
Its size is not counted again, and the link is indicated in the browser
interface with a 'H' mark. The displayed directory sizes are only correct when
all links to an inode reside within that directory. When this is not the case,
the sizes may or may not be correct, depending on which links were considered
as "duplicate" and which as "original". The indicated size of the topmost
directory (that is, the one specified on the command line upon starting ncdu)
is always correct.
.P
ncdu 1.7 has improved hard link detection. Each file that has more than two
links has the "H" mark visible in the browser interface. Each hard link is
counted exactly once for every directory it appears in. The indicated size of
each directory is therefore, correctly, the sum of the sizes of all unique
inodes that can be found in that directory. Note, however, that this may 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.
.SH BUGS
Infinite. Please contact the author if you find one.
Directory hard links are not supported. They will not be detected as being hard
links, and will thus be scanned and counted multiple times.
.P
Some minor glitches may appear when displaying filenames that contain multibyte
or multicolumn characters.
.P
Please report any other bugs you may find at the bug tracker, which can be
found on the web site at http://dev.yorhel.nl/ncdu
.SH AUTHOR
Written by Yoran Heling <projects@yorhel.nl>.
.SH SEE ALSO
\fBdu\fP(1)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment