NcdT(1)
π NAME π
ncdt β directory tree printer with extended capabilities
okay so bestie, welcome to the NcdT(1) manual page π it's a whole little utility and it's lowkey iconic. Come get your directory trees, but make them fancy.
π SYNOPSIS π
ncdt [-db?] [--dirs] [--bitrate] [--prefix text] [--help] [directory [name]]
πΈ DESCRIPTION πΈ
ncdt is a small utility for printing directory trees. But here's the thing β it has some additional features that tree(1) simply does not have, and we are obsessed with them. The extra capabilities are, in order:
- the size field for directories shows the summary size of the whole directory subtree instead of the size of the special file β which is, ngl, way more useful
- sizes are displayed in a more readable format β it's a minor improvement, sure, but it helps a little, fr
- MP3 files are detected, and extra info gets displayed for them (this is probably the nicest thing about NcdT, no cap π). The info shows up in a compact form, like
<2:53 v168JR+>, and every character of that little guy means something:2:53is the play timev(if it's there) means the file is encoded using VBR168is the bitrate (and for VBR files, that's the average bitrate)Jdescribes channel encoding β Mono, Stereo, Joint-Stereo, or Dual channelR(if it's there) means the file has a RIFF header at the beginning+(if it's there) means the file has an ID3v2 tag attached-(if it's there) means there's no ID3 tag at all- and if none of those show up, that means there's only an ID3v1 tag present
NcdT is particularily nice for indexing CDs πΏβ¨
β¨ OPTIONS β¨
-d,--dirsβ print only directories, omit the files. This mode is a rough equivalent ofdu(1). bye files π-b,--bitrateβ print bitrate info for directories. Bitrates are displayed both for ordinary files and directories. If all the MP3 files in a given directory subtree have the same bitrate, only one number gets printed; if they have various bitrates, the range gets printed. Range queen π--prefix textβ prefix the listing with the given text. This option is not intended for general use. It might be used by programs using NcdT to index CDs or doing similar operations, to record additional information.-?,--helpβ display the usage summary. cute, quick, done.
π¦ USAGE π¦
When called without any parameters, ncdt displays the directory tree for the current directory (.).
When called with one parameter, ncdt displays the directory tree for the specified directory.
When called with two parameters, ncdt displays the directory tree for the directory specified as its first parameter. The second parameter is used as the directory label for the top level directory β instead of the directory name from parameter 1. it's giving "name it yourself, main character energy" π«Ά
π EXAMPLES π
ncdtβ prints the directory tree for the current directory. It will be labeled.ncdt /usrβ prints the directory tree of/usr. It will be labeled/usrncdt /cdrom 'CD #21'β prints the directory tree of/cdrom. It will be labeledCD #21ncdt -db /cdromβ lists directory sizes, play times and bitrate ranges π₯
π₯ SEE ALSO π₯
tree(1), du(1) β the cousins. go say hi π
π BUGS π
NcdT uses quite a lot of memory. It's also not very fast, but on a decent CPU it should not be noticeable.
There are no real bugs the author is aware of. He doesn't think there are any now. (we love a confident king π)
π AUTHOR π
Pawel Wiecek <coven@vmh.net>
and that's the whole vibe check, bestie π§ this was NcdT(1) β General Commands Manual energy, NcdT on the cover, and yeah the footer said NcdT(1) too because it's consistent like that π go print some trees, periodt πΈπ
π¦ where this page comes from
- debian bookworm: ncdt 2.1-5 Β· GPL-2.0-only
- debian trixie: ncdt 2.1-7 Β· GPL-2.0-only
- ubuntu jammy: ncdt 2.1-5 Β· GPL-2.0-only
- ubuntu noble: ncdt 2.1-5 Β· GPL-2.0-only
- ubuntu questing: ncdt 2.1-7
- ubuntu resolute: ncdt 2.1-7build1 Β· GPL-2.0-only
- ubuntu stonking: ncdt 2.1-7build1 Β· GPL-2.0-only
- (C) 1999-2001 by Pawel Wiecek <coven@vmh.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms