NNN(1) General Commands Manual NNN(1) (NAME) nnn - . (SYNOPSIS) nnn [-aAcCdDeEfgHJKnQrRSuUVxz0h] [-b key] [-F val] [-l val] [-p file] [-P key] [-s name] [-t secs] [-T key] [PATH] (DESCRIPTION) nnn (Nnn's Not Noice) noice http://git.2f30.org/noice type-to-nav (contexts) (subshell) . . PATH nnn . PATH nnn . PATH / nnn . PATH nnn . (KEYBINDS) `?' nnn . (OPTIONS) nnn : -a NNN_FIFO ( ENVIRONMENT ) -A -b key (bookmark) -B bsdtar (: atool) -c (CLI) ( -e) -C - context -d (detail mode) -D context NNN_FCOLORS -e VISUAL$ ( EDITOR$ vi) [ CLI] -E EDITOR$ (undetached) -f (history) -F val fifo 0: 1: -g regex -H -i ( ) -J ( ) -K -l val -n type-to-nav -o Enter -p file ( ) stdout '-'=file -P key (plugin) -Q context -r cp mv ( advcpmv ^T BSD/macOS ) -R ( down ) -s name (session) -S (persistent session) -t secs -T key ( SORTING ) : 'a' / 'd' / 'e' / 'r' / 's' / 't' / 'v' ( 'r') -u -U -V -x cp mv rm ( .ntfy ) ( .cbcp ) xterm ( picker) -z ( : ) -0 null ( ) picker -h .Sh " (CONFIGURATION)" . : ${XDG_CONFIG_HOME:-$HOME/.config}/nnn/ ( ) . (ENVIRONMENT) . nnn xdg-open ( Linux) open(1) ( macOS) cygstart ( Cygwin) open ( Haiku) . . (ENVIRONMENT) . (CONTEXTS) . : - (reverse video) - - . . (ENVIRONMENT) . (SESSIONS) . . . - "auto session" . restore ("auto session") . - (persistent session) . . - "auto session" . - (-s/-S) . : ${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions "@" "auto session" . (FILTERS) ( regex) (search-as-you-type). . . nnn . . : -------- + --------------------------------------- | -------- + --------------------------------------- ^char | Esc | / | -------- + --------------------------------------- : ------ + ------------------------------------- | ------ + ------------------------------------- ? | / | string fuzzy regex : | ^L | ( ) | Bksp | Del | ------ + ------------------------------------- regex: (1) '^' (caret) . (2) MKV '\.mkv' . (3) '.*' ( fuzzy). (4) 'nnn' ( PCRE2): '^(?!nnn)' type-to-nav . type-to- nav: ------ + ------------------------ | ------ + ------------------------ ' | + | , | CWD - | . | ; | = | GUI > | @ | ] | ` | / ~ | HOME ------ + ------------------------ nnn . . -T t ^T . : a sparse file ( ) . d . e . r ( -T ). s . t T . : a (access) . c (change) ( ). m (modified) (). v (version) . : j1.png j02.png j3.png. c ( -T ). ^T // ( -T ). ( r) . . e . E . e r E . (SELECTION) nnn ! : (1) - '+' (2) - (3) () . .selection . . . . nnn . mv/rm nnn ( cp ). nnn . . _edit selection_ . . . . nnn . . ( du) ..Sh " (FIND AND LIST)" : - - ( finder) NUL ('\0'). . . 64 MiB (max_paths x max_path_len) . nnn . 1M : find -maxdepth 1 -size +1M -print0 | nnn : nnn < files.txt bash/zsh mime : # to show video files, run: list video list () { find . -maxdepth 1 | file -if- | grep "$1" | awk -F: '{printf "%s%c", $1, 0}' | nnn } (symlinks) . . > l . - . Enter . . -p . (BOOKMARKS) ( ) . (1) : NNN_BMS (ENVIRONMENT) . b NNN_BMS . (2) : B ( ~/.config/nnn/bookmarks) . Enter . NNN_BMS . . - . (UNITS) (B) . K M G T P E Z Y ( ) ls. (ENVIRONMENT) SHELL VISUAL ( EDITOR) PAGER . SHELL PAGER . NNN_OPTS: nnn export NNN_OPTS="cEnrx" NNN_OPENER: . export NNN_OPENER=nuke : nuke . NNN_BMS: key_char:location ;: export NNN_BMS="d:$HOME/Docs;u:/home/user/Cam Uploads;D:$HOME/Downloads/" ( ?) . NNN_PLUG: key_char:plugin ;: export NNN_PLUG='f:finder;o:fzopen;p:mocplay;d:diffs;t:nmount;v:imgview' : 1. ; . 2. Alt ( Alt+key). 3. - . export NNN_PLUG='p:-plugin' ! . export NNN_PLUG='x:!chmod +x "$nnn";g:!git log;s:!smplayer "$nnn"' Enter . `-P` . : 1. $nnn ( ) ("$nnn") 2. $NNN_PLUG "$nnn" 3. () ! 4. -! 5. * : * ( cat) export NNN_PLUG='y:-!sync*' 6. & ! . export NNN_PLUG='m:-!&mousepad "$nnn"' 7. -- | () ! : & ( ) * ( ). export NNN_PLUG='m:-!|mediainfo "$nnn";t:-!|tree -ps;l:-!|ls -lah --group-directories-first' 8. -- > ( ) ! : & ( ) * ( ). `-` . . export NNN_PLUG='m:!>mediainfo "$nnn";t:!>tree -ps;l:!>ls -lah --group-directories-first' : ------------------------------------ + ------------------------------------------------- Key:Command | ------------------------------------ + ------------------------------------------------- c:!convert "$nnn" png:- | xclip | -sel clipboard -t image/png* | C:!cp -rv "$nnn" "$nnn".cp* | e:-!sudo -E vim "$nnn"* | root vim g:-!git diff | git diff h:-!hx "$nnn"* | hx k:-!fuser -kiv "$nnn"* | () l:-!git log | git log n:-!vi /home/user/Dropbox/dir/note* | / p:-!less -iR "$nnn"* | less s:-!&smplayer -minigui "$nnn" | x:!chmod +x "$nnn" | y:-!sync* | (flush) ------------------------------------ + ------------------------------------------------- : https://github.com/jarun/nnn/tree/master/plugins NNN_ORDER: . export NNN_ORDER='t:/home/user/Downloads;S:/tmp' : a/d/e/r/s/t/v ( SORTING ). . / . NNN_COLORS: (context) : # : # 0- 1- 2- 3- 4- () 5- 6- 7- export NNN_COLORS='12341234' # xterm ( hex ): # : https://user-images.githubusercontent.com/1482942/93023823-46a6ba80-f5e1-11ea-9ea3-6a3c757704f4.png export NNN_COLORS='#0a1b2c3d0a1b2c3d' # ( ';') export NNN_COLORS='#0a1b2c3d0a1b2c3d;12341234' : . NNN_FCOLORS: : export NNN_FCOLORS='c1e2272e006033f7c6d6abc4' (Hex) xterm ( ). / 00 . : ------------------------- + --- + ------------- Order | Hex | Color ------------------------- + --- + ------------- Block device | c1 | DarkSeaGreen1 Char device | e2 | Yellow1 Directory | 27 | DeepSkyBlue1 Executable | 2e | Green1 Regular | 00 | Normal Hard link | 60 | Plum4 Symbolic link | 33 | Cyan1 Missing OR file details | f7 | Grey62 Orphaned symbolic link | c6 | DeepPink1 FIFO | d6 | Orange1 Socket | ab | MediumOrchid1 Unknown OR 0B regular/exe | c4 | Red1 ------------------------- + --- + ------------- xterm . -C . xterm . NNN_ARCHIVE: (: bzip2 (g)zip tar). export NNN_ARCHIVE="\\.(7z|bz2|gz|tar|tgz|zip)$" : . NNN_ARCHMNT: (: archivemount). export NNN_ARCHIVE='fuse-archive' NNN_SSHFS: sshfs : export NNN_SSHFS='sshfs -o reconnect,idmap=user,cache_timeout=3600' : . NNN_RCLONE: rclone: export NNN_RCLONE='rclone mount --read-only --no-checksum' : "rclone" . NNN_TRASH: ( rm -rf). export NNN_TRASH=cmd : 1. cmd / nnn . `trash' macOS: export NNN_TRASH="trash" 2. "1" "2" cmd trash-cli gio trash . NNN_SEL: . export NNN_SEL='/tmp/.sel' NNN_FIFO: (named pipe) : export NNN_FIFO='/tmp/nnn.fifo' : 1. -a . 2. FIFO ( -a ). : https://github.com/jarun/nnn/wiki/Live-previews NNN_LOCKER: . export NNN_LOCKER='bmon -p wlp1s0' export NNN_LOCKER='cmatrix' NNN_TMPFILE: cd . export NNN_TMPFILE='/tmp/.lastd' NNN_HELP: . export NNN_HELP='fortune' NNN_MCLICK: . export NNN_MCLICK='^R' : Ctrl+key . nnn: . . NO_COLOR: ANSI ( NNN_COLORS )..Sh " (AUTHORS)" Arun Prakash Jana , Lazaros Koromilas , Dimitris Papastamos . (HOME) https://github.com/jarun/nnn Linux 6.12.113+deb13-amd64 August 15, 2026 Linux 6.12.113+deb13-amd64