远程挂载功能需要额外安装 sshfs 或 rclone;插件需按插件仓库说明单独安装;默认用桌面程序打开文件,在纯 CLI 环境需设置 NNN_OPENER 并配合 -c 选项。

sh -c "$(curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/misc/quickstart.sh)"README 未说明具体硬件要求;仅提到常驻内存通常低于 3.5MB,可在树莓派、Termux(Android)、Linux、macOS、BSD、Haiku、Cygwin、WSL 上运行。
轻量终端文件管理器,约150KB、几乎零配置,用键盘快速浏览和操作文件
轻量极速的终端文件管理器,用 C 写成,支持文件预览、搜索、批量重命名和磁盘占用分析,适合习惯命令行的开发者日常浏览与管理文件。
核心能力
- 内置磁盘用量分析器,按块或表观大小统计
- 支持即时过滤与边输边搜,含模糊、正则和字符串过滤
- 用上下文(标签/工作区)管理多个目录并自定义颜色
- 插件体系支持实时预览、挂载磁盘、文件差异和上传
- 可编译裁剪功能与依赖,提供静态二进制免安装
容易踩的坑
- v5.3nnn v5.3 Mai Tai最新正式版2026-08-15 · 2026-08-15 14:12 UTC
nnn v5.3 Mai Tai release notes.
- add native preview pane (P) with automatic
.npreviewsupport - fuzzy filtering improvements:
- scoring, ranking, character arbitration
- dimmed matches (works with string filtering also)
- native prompt - cycle entries in the current directory with TAB
- enter a directory that exactly matches the filter with /
- support Alt-Esc to quit a context with or without an active filter
- optimize ncurses rendering with
leaveok() - lazy-load plugins when requested
- disable linking libreadline by default; use
make O_NORL=0to enable it - show the runtime bookmarked directory path in the help menu
- add
O_BENCHto exit after startup for benchmark runs - add
statsplugin to show complete file information in a pager - add
tnpplugin to open files in a tmux Neovim pane - add Kitty drag-and-drop support to
dragdrop - plugin
nmountimprovements:- unmount all external USB partitions with u
- fill prompt with last input on Up, clear on Down
- clear stale Kitty graphics placements when closing video previews in
preview-tui - use
HOST_CCandHOST_CFLAGSwhen building the icons generator - fix shell quoting in
preview-tabbed - fix context selection and active-tab handling when cycling contexts
- fix selection-path unescaping during selection edits
- reconcile off-screen selections correctly before inversion
- do not automatically enter directories without read permission
- add safety checks for session header fields
- support escaping name completions in the native prompt
- handle arbitrarily long paths when escaping shell arguments
- add native preview pane (P) with automatic
- v5.2nnn v5.2 Blue Hawaii2026-02-14 · 2026-02-14 03:15 UTC
查看更新说明
nnn v5.2 Blue Hawaii release notes.
- enable 8 contexts (saved sessions may no longer be usable, users need to re-create the sessions)
- massive disk usage calculation performance improvement
- floating window
- render file stats (f) in a navigable floating window
- support rendering output of command run as plugin within floating window (prefix
>)
- support in order fuzzy search
- with no selection, allow user input on Copy here or Move here e.g. to copy the system clipboard
- double confirm when removing more than 10 selected files using
rm - auto-complete hovered file name on pressing TAB at the end of prompt input
- fix: scroll down arrow indicator not showing when down arrow is pressed with filter
- fix: refresh directory after selection edits
- support PCRE2 compile-in (
make O_PCRE2=1), remove PCRE1 support (no longer being developed) - support jelliz in preview-tui
- history file for native prompt
- v5.1nnn v5.1 Moscow Mule2025-03-23 · 2025-03-23 05:08 UTC
查看更新说明
nnn v5.1 Moscow Mule release notes.
- add support for custom trash command in
$NNN_TRASH - remember history of last 16 commands executed in the native prompt in the current session
- count files from selection file when no file is selected during selection removal
- show session name in help
- show current entry in reversed bold
- show current (non-auto) session name at save session prompt
- show
Fin the status bar when filter is inactive in type-to-nav mode - restore correct filter function on session load, switch filter function on context changes
- extend xreadline() with some by-word movement
- added plugins gpgs and gpgv
- add icon for
lzipfiles, more emoji icons - suffix the current context number with
*in help screen
- add support for custom trash command in
- v5.0nnn v5.0 Daiquiri2024-08-26 · 2024-08-26 13:22 UTC
查看更新说明
nnn v5.0 Daiquiri release notes.
- show relative line numbering when jumping (#1808)
- option
-Nto use native prompt when compiled with libreadline - rm improvements
- log removed filename
- cancel on n or N
- show name of the hovered file to be removed
- show number of selected files to be removed
- new keybind X to force
rm -rfalways (#1811) - fix sort order getting changed on context switch (#1757)
- fix current selection on new file creation, if symlinks exist (#1767)
- fix filter toggle with mouse click on last 2 rows (#1765)
- fix file creation (#1864)
- when handling bookmark, use readlink, not realpath
- set
$PWDon directory switch - add option
-0to null-separate file paths in picker mode - quitcd.nu (for nushell) now supports modular import (#1806)
- add command as plugin example to cd to user input directory
-
cbcopy-mac,cbpaste-mac: plugins for integration with macOS clipboard -
fzhistplugin: add support for zsh history -
preview-tuiplugin: support eza as replacement for exa, multiple fixes -
preview-tuiplugin: add full svg support (#1865) -
preview-tabbed: show (n)sxiv in thumbnail mode inside "Pictures" directory - mpv sixel/kitty support for preview (#1590)
- v4.9nnn v4.9 Elixir2023-08-27 · 2023-08-27 04:28 UTC
查看更新说明
nnn v4.9 Elixir release notes.
- config option
NNN_ARCHMNTto specify archive mounter utility - key ^y to jump to next young file
- filter adjustment when opening context from plugin
- properly update mode after
chmod - pre-fill selected file name to create link if sel is preferred over hovered
- fix crash when
PWDis empty - make
quitcd.bash_zshPOSIX-compliant -
nmount- supportudiskctlas default -
preview-tui- support wezterm split size percentage -
preview-tui- move to bash for environment manipulation through arrays -
fzopen- handle empty selection -
finder- use default path to find - add icons for
djvufiles - support Nerd Fonts v3.0.0 and above (older versions are broken by v3.0.0)
- config option
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
nnn (n³) is a full-featured terminal file manager. It's tiny (~150 KiB), nearly 0-config and incredibly fast.
It is designed to be unobtrusive with smart workflows to match the trains of thought.
nnn can analyze disk usage, batch rename, launch apps and pick files. The plugin repository has tons of plugins to extend the capabilities further e.g. live previews, (un)mount disks, find & list, file/dir diff, upload files. A patch framework hosts sizable user-submitted patches which are subjective in nature.
Independent (neo)vim plugins - nnn.vim, vim-floaterm nnn wrapper and nnn.nvim (neovim exclusive).
Runs on the Pi, Termux (Android), Linux, macOS, BSD, Haiku, Cygwin, WSL, across DEs or a strictly CLI env.
Features
- Quality
- Privacy-aware (no unconfirmed user data collection)
- POSIX-compliant, follows Linux kernel coding style
- Highly optimized, static analysis integrated code
- Frugal
- Typically needs less than 3.5MB resident memory
- Works with 8 colors (and xterm 256 colors)
- Disk-IO sensitive (few disk reads and writes)
- No FPU usage (all integer maths, even for file size)
- Minimizes screen refresh with fast line redraws
- Tiny binary (typically around 150KB)
- 1-column mode for smaller terminals and form factors
- Hackable - compile in/out features and dependencies
- Portable
- Language-agnostic plugins
- Static binary available (no need to install)
- Minimal library deps, easy to compile
- No config file, minimal config with sensible defaults
- Plugin to backup configuration
- Widely available on many packagers
- Touch enabled, handheld-friendly shortcuts
- Unicode support
- Modes
- Light (default), detail
- Disk usage analyzer (block/apparent)
- File picker, (neo)vim plugin
- Navigation
- Filter with automatic dir entry on unique match
- Type-to-nav (turbo navigation/always filter) mode
- Jump to an entry with visible relative offset
- Contexts (aka tabs/workspaces) with custom colors
- Sessions, bookmarks, mark and visit a dir
- Remote mounts (needs
sshfs,rclone) - Familiar shortcuts (arrows, ~, -, @), quick look-up
cdon quit (easy shell integration)- Proceed to next file on file open and selection
- Search
- Instant filtering with search-as-you-type
- Fuzzy, regex (POSIX/PCRE2) and string (default) filters
- Subtree search plugin to open or edit files
- Sort
- Ordered pure numeric names by default (visit
/proc) - Case-insensitive version (aka natural) sort
- By name, access/change/mod (default) time, size, extn
- Reverse sort
- Directory-specific ordering
- Ordered pure numeric names by default (visit
- Mimes
- Built-in previewer for directory and text files
- FIFO-based previewer plugins with extensive mime support
- Open with desktop opener or specify a custom opener
- File-specific colors (or minimal dirs in context color)
- Icons and Emojis support (customize and compile-in)
- Plugin for image, video and audio thumbnails
- Create, list, extract (to), mount (FUSE based) archives
- Option to open all text files in
$EDITOR
- Convenience
- Detailed file stats and mime information
- Run plugins and custom commands with hotkeys
- FreeDesktop compliant trash utility integration
- Cross-dir file/all/range selection
- Create (with parents), rename, duplicate files and dirs
- Create new file or directory (tree) on startup
- Batch renamer for selection or dir
- List input stream of file paths from stdin or plugin
- Copy (as), move (as), delete, archive, link selection
- Easily copy, move paths in system clipboard to current dir
- Dir updates, notification on
cp,mv,rmcompletion - Copy file paths to system clipboard on select
- Launch apps, run commands, spawn a shell, toggle exe
- Access context paths/files at prompt or spawned shell
- Lock terminal after configurable idle timeout
- Capture and show output of a program in help screen
- Basic support for screen readers and braille displays
Quickstart
Beginners
- Install
nnn, preferably using the package manager. - Run the following command to generate (and optionally add to your rc file) a shell function to start with.
sh -c "$(curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/misc/quickstart.sh)"
Use the shell function name you chose to run nnn with your preferred configuration.
Power users
- Install
nnnand the dependencies you need. - Install plugins.
- Configure cd on quit.
- The desktop opener is default. Use
-eto open text files in the terminal. Optionally open detached. - In a CLI environment, set
NNN_OPENERtonuke. Use option-c. For GUI apps, consider xopen. - Sync subshell
$PWDtonnn. - Use
-xto sync selection to clipboard, show notis oncp,mv,rmand set xterm title. - Bid
lsgoodbye!alias l='nnn -dDe':sunglasses: - Visit the Live previews and Troubleshooting Wiki pages.
Don't memorize! Arrows, /, q suffice. Tab creates and/or cycles contexts. ? lists shortcuts.
Videos
- nnn file manager on Termux (Android)
- NNN File Manager
- This Week in Linux 114 - TuxDigital
- I'M GOING TO USE THE NNN FILE BROWSER! 😮
- NNN: Is This Terminal File Manager As Good As People Say?
- Checkmate, GUI users. | 4P
Elsewhere
- AddictiveTips
- ArchWiki
- FOSSMint
- gHacks Tech News
- Hacker News [1] [2]
- It's FOSS
- Linux Format Issue 265; Manage files with nnn
- LinuxLinks [1] [2] [3]
- Linux Magazine; FOSSPicks
- Make Tech Easier
- Opensource.com
- Open Source For You
- PCLinuxOS Magazine Issue June 2021
- Suckless Rocks
- Ubuntu Full Circle Magazine Issue 135; Review: nnn
- Using and Administering Linux: Volume 2: Zero to SysAdmin: Advanced Topics
- Wikipedia
Developers
- Arun Prakash Jana (Copyright © 2016-2026)
- 0xACE
- Anna Arad
- KlzXS
- Léo Villeveygoux
- Luuk van Baal
- NRK
- Sijmen J. Mulder
- and other contributors
Visit the Tracker thread for a list of features in progress and anything up for grabs. Feel free to discuss new ideas or enhancement requests.