2019-11-25 15:45:35 +00:00
< h1 align = "center" > nnn - < i > type less, do more, wayyy faster< / i > < / h1 >
2016-08-20 16:27:14 +00:00
2017-04-14 17:46:01 +00:00
< p align = "center" >
< a href = "https://github.com/jarun/nnn/releases/latest" > < img src = "https://img.shields.io/github/release/jarun/nnn.svg?maxAge=600" alt = "Latest release" / > < / a >
2019-12-21 01:54:01 +00:00
< a href = "https://repology.org/project/nnn/versions" > < img src = "https://repology.org/badge/tiny-repos/nnn.svg" alt = "Availability" > < / a >
2019-04-13 08:54:59 +00:00
< a href = "https://travis-ci.org/jarun/nnn" > < img src = "https://img.shields.io/travis/jarun/nnn/master.svg?label=travis" alt = "Travis Status" / > < / a >
< a href = "https://circleci.com/gh/jarun/workflows/nnn" > < img src = "https://img.shields.io/circleci/project/github/jarun/nnn.svg?label=circleci" alt = "CircleCI Status" / > < / a >
2019-12-16 00:25:15 +00:00
< a href = "https://en.wikipedia.org/wiki/Privacy-invasive_software" > < img src = "https://img.shields.io/badge/privacy-✓-crimson" alt = "Privacy Awareness" / > < / a >
2017-04-14 17:46:01 +00:00
< a href = "https://github.com/jarun/nnn/blob/master/LICENSE" > < img src = "https://img.shields.io/badge/license-BSD%202--Clause-yellow.svg?maxAge=2592000" alt = "License" / > < / a >
2019-12-16 00:25:15 +00:00
< a href = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RMLTQ76JSXJ4Q" > < img src = "https://img.shields.io/badge/PayPal-donate-1eb0fc.svg" alt = "Donate via PayPal!" / > < / a >
2019-08-24 14:35:45 +00:00
< / p >
2019-09-30 23:00:58 +00:00
< p align = "center" > < a href = "https://www.youtube.com/watch?v=U2n5aGqou9E" > < img src = "https://i.imgur.com/MPWpmos.png" / > < / a > < / p >
< p align = "center" > < i > navigate-as-you-type & du (click to see demo video)< / i > < / p >
2016-08-21 12:07:18 +00:00
2019-08-09 04:58:14 +00:00
## Introduction
2019-07-29 23:27:59 +00:00
2019-11-30 14:37:11 +00:00
`nnn` is a full-featured terminal file manager. It's tiny and nearly 0-config with an [incredible performance ](https://github.com/jarun/nnn/wiki/Performance ).
2019-07-29 23:27:59 +00:00
2019-12-09 02:13:20 +00:00
`nnn` is also a du analyzer, an app launcher, a batch renamer and a file picker. The [plugin repository ](https://github.com/jarun/nnn/tree/master/plugins#nnn-plugins ) has tons of plugins and documentation to extend the capabilities further. You can _plug_ new functionality _and play_ with a custom keybind instantly. There's an independent [(neo)vim plugin ](https://github.com/mcchrish/nnn.vim ).
2019-08-14 14:27:44 +00:00
2019-11-30 14:37:11 +00:00
It runs smoothly on the Raspberry Pi, Termux [on Android ](https://www.youtube.com/watch?v=AbaauM7gUJw ), Linux, macOS, BSD, Cygwin, WSL and works seamlessly with DEs and GUI utilities.
2019-09-27 03:14:52 +00:00
2019-12-14 13:30:09 +00:00
Visit the [Wiki ](https://github.com/jarun/nnn/wiki ) for concepts, program usage, how-tos and troubleshooting.
2019-07-29 23:27:59 +00:00
2019-08-09 04:58:14 +00:00
## Features
2017-04-21 03:30:46 +00:00
2018-11-11 17:50:16 +00:00
- Modes
2019-09-15 17:02:44 +00:00
- Light (default), detail
2019-03-22 23:27:21 +00:00
- Disk usage analyzer (block/apparent)
2019-03-24 16:31:15 +00:00
- File picker, (neo)vim plugin
2017-05-15 16:59:40 +00:00
- Navigation
2019-08-20 14:30:48 +00:00
- *Navigate-as-you-type* with dir auto-select
2019-10-24 07:18:12 +00:00
- Contexts (_aka_ tabs/workspaces) with custom colors
2019-10-18 22:31:46 +00:00
- Sessions, bookmarks; pin and visit a dir
2019-11-25 02:20:22 +00:00
- Remote mounts (needs sshfs, rclone)
2019-10-12 04:18:58 +00:00
- Familiar shortcuts (arrows, < kbd > ~</ kbd > , < kbd > -</ kbd > , < kbd > @</ kbd > ), quick reference
2019-09-26 16:21:38 +00:00
- CD on quit (*easy* shell integration)
2018-03-18 10:48:30 +00:00
- Sorting
2019-07-14 17:30:14 +00:00
- Ordered pure numeric names by default (visit _/proc_ )
2019-06-16 13:26:11 +00:00
- Case-insensitive version (_aka_ natural) sort
2019-08-30 15:25:23 +00:00
- By file name, modification/access time, size, extension
2017-05-15 16:59:40 +00:00
- Search
2018-11-11 17:50:16 +00:00
- Instant filtering with *search-as-you-type*
2019-12-14 08:36:00 +00:00
- Regex and substring (default) matches
2019-04-27 12:45:18 +00:00
- Subtree search to open or edit files (using plugin)
2017-05-15 16:59:40 +00:00
- Mimes
2018-11-11 17:50:16 +00:00
- Open with desktop opener or specify a custom app
2019-10-11 20:43:08 +00:00
- Create, list, extract, mount (FUSE based) archives
2019-04-30 03:06:55 +00:00
- Option to open all text files in EDITOR
2017-05-15 16:59:40 +00:00
- Information
2019-04-30 03:06:55 +00:00
- Detailed file information
2019-08-27 18:30:52 +00:00
- Media information (using plugin)
2017-05-15 16:59:40 +00:00
- Convenience
2019-12-31 18:54:13 +00:00
- Run plugins and custom commands with custom keybinds
2019-03-09 03:35:32 +00:00
- FreeDesktop compliant trash (needs trash-cli)
2019-10-24 01:26:15 +00:00
- Cross-dir file/all/range selection
2019-12-03 00:40:32 +00:00
- Batch renamer (feature-limited) for selection or dir
2019-10-14 22:17:57 +00:00
- Copy (as), move (as), delete, archive, link selection
2019-12-11 19:26:39 +00:00
- Notification on cp, mv, rm completion
2019-12-12 14:21:08 +00:00
- Copy file paths to system clipboard on select
2019-11-19 19:58:11 +00:00
- Create (with parents), rename, duplicate (anywhere) files and dirs
2019-12-31 18:54:13 +00:00
- Launch GUI apps, run commands, spawn a shell
2019-11-23 20:43:27 +00:00
- Hovered file set as `$nnn` at prompt and spawned shell
2019-09-26 14:26:43 +00:00
- Lock terminal (needs a locker)
2019-11-29 23:09:38 +00:00
- Privacy-aware (no unconfirmed user data collection)
2019-11-30 14:37:11 +00:00
- Minimal deps, minimal config (with sensible defaults)
2019-09-29 02:32:40 +00:00
- Widely available
2017-05-11 16:55:22 +00:00
- Unicode support
2019-02-23 09:33:22 +00:00
- Follows Linux kernel coding style
2018-11-13 03:51:21 +00:00
- Highly optimized, static analysis integrated code
2017-03-29 05:33:22 +00:00
2019-09-26 00:16:06 +00:00
## Quickstart
1. Install the [utilities you may need ](https://github.com/jarun/nnn#utility-dependencies ) based on your regular workflows.
2. Configure [cd on quit ](https://github.com/jarun/nnn/wiki/Basic-use-cases#configure-cd-on-quit ).
2019-12-19 19:05:58 +00:00
3. Optionally open all text files in `$VISUAL` (else `$EDITOR` , fallback vi): `export NNN_USE_EDITOR=1` .
2019-12-08 19:04:53 +00:00
4. For additional functionality [install plugins ](https://github.com/jarun/nnn/tree/master/plugins#installing-plugins ).
2019-12-13 13:52:19 +00:00
5. To copy selected file paths to system clipboard and show notis on cp, mv, rm completion use option `-x` .
6. For a strictly CLI-only experience, see plugin `nuke` . It's a sample opener you can customize.
2019-09-26 00:16:06 +00:00
2019-12-14 15:59:52 +00:00
Don't memorize keys. Arrows (or < kbd > h< / kbd > < kbd > j< / kbd > < kbd > k< / kbd > < kbd > l< / kbd > ), < kbd > /< / kbd > and < kbd > q< / kbd > suffice. Press < kbd > ?< / kbd > to list shortcuts anytime.
2019-09-26 00:16:06 +00:00
2019-08-09 04:58:14 +00:00
## Installation
2017-03-29 05:33:22 +00:00
2019-02-10 03:15:13 +00:00
#### Library dependencies
2017-08-14 00:13:01 +00:00
2019-12-13 13:52:19 +00:00
A curses library with wide char support (e.g. ncursesw), libreadline (optional) and standard libc.
2016-08-20 16:27:14 +00:00
2019-02-10 03:15:13 +00:00
#### Utility dependencies
2019-06-14 03:22:17 +00:00
| Dependency | Installation | Operation |
| --- | --- | --- |
2020-01-01 22:28:09 +00:00
| xdg-open (Linux), open(1) (macOS), cygstart< br > (Cygwin), open (Haiku) | base | desktop opener |
2019-11-21 15:00:38 +00:00
| file, coreutils (cp, mv, rm), xargs | base | file type, copy, move and remove |
2019-12-29 17:51:18 +00:00
| tar, (un)zip [atool/bsdtar for more formats] | base | create, list, extract bzip2, (g)zip, tar |
2019-10-12 04:18:58 +00:00
| archivemount, fusermount(3) | optional | mount, unmount archives |
2019-11-24 15:52:44 +00:00
| sshfs, [rclone ](https://rclone.org/ ), fusermount(3) | optional | mount, unmount remotes |
2019-11-06 10:56:49 +00:00
| trash-cli | optional | trash files (default action: rm) |
2020-01-01 22:28:09 +00:00
| vlock (Linux), bashlock (macOS), lock(1) (BSD),< br > peaclock (Haiku) | optional | terminal locker (fallback: [cmatrix ](https://github.com/abishekvashok/cmatrix )) |
2019-08-24 05:59:29 +00:00
| advcpmv (Linux) ([integration](https://github.com/jarun/nnn/wiki/Advanced-use-cases#show-cp-mv-progress)) | optional | copy, move progress |
2019-06-14 03:22:17 +00:00
| `$VISUAL` (else `$EDITOR` ), `$PAGER` , `$SHELL` | optional | fallback vi, less, sh |
2019-02-10 03:15:13 +00:00
2017-08-14 00:13:01 +00:00
#### From a package manager
2016-08-20 16:27:14 +00:00
2019-09-27 13:33:19 +00:00
Install `nnn` from your package manager. If the version available is dated try an alternative installation method.
2019-07-31 18:01:37 +00:00
2019-09-29 04:18:51 +00:00
< details > < summary > Packaging status (expand)< / summary >
2019-09-26 13:28:29 +00:00
< p >
< br >
2019-12-21 01:54:01 +00:00
< a href = "https://repology.org/project/nnn/versions" > < img src = "https://repology.org/badge/vertical-allrepos/nnn.svg" alt = "Packaging status" > < / a >
2019-09-26 13:28:29 +00:00
< / p >
2019-12-21 01:54:01 +00:00
Unlisted packagers:
2019-08-20 03:17:48 +00:00
< p >
< br >
● CentOS (< code > yum --enablerepo=epel install nnn< / code > )< br >
● < a href = "https://notabug.org/milislinux/milis/src/master/talimatname/genel/n/nnn/talimat" > Milis Linux< / a > (< code > mps kur nnn< / code > )< br >
● < a href = "https://www.nutyx.org/en/?type=pkg&branch=rolling&arch=x86_64&searchpkg=nnn" > NuTyX< / a > (< code > cards install nnn< / code > )< br >
● < a href = "http://codex.sourcemage.org/test/shell-term-fm/nnn/" > Source Mage< / a > (< code > cast nnn< / code > )< br >
< / p >
< / details >
2019-01-11 09:01:33 +00:00
2017-08-13 14:50:37 +00:00
#### Release packages
2019-09-27 13:33:19 +00:00
Packages for Arch Linux, CentOS, Debian, Fedora and Ubuntu are auto-generated with the [latest stable release ](https://github.com/jarun/nnn/releases/latest ).
2017-08-13 14:50:37 +00:00
2017-08-14 00:13:01 +00:00
#### From source
2019-10-11 21:56:00 +00:00
Download the latest stable release or clone this repository (*risky*), install deps and compile. On Ubuntu 18.04:
2017-08-14 00:13:01 +00:00
2019-10-11 21:56:00 +00:00
$ sudo apt-get install pkg-config libncursesw5-dev libreadline-dev
2019-06-19 16:33:08 +00:00
$ sudo make strip install
2017-08-14 00:13:01 +00:00
2019-12-13 13:52:19 +00:00
To compile _without_ libreadline:
$ sudo apt-get install pkg-config libncursesw5-dev
$ sudo make O_NORL=1 strip install
2017-08-14 00:13:01 +00:00
`PREFIX` is supported, in case you want to install to a different location.
2019-12-22 03:06:37 +00:00
See the [developer guides ](https://github.com/jarun/nnn/wiki/Developer-guides ) for source verification, compilation notes on the Pi, Cygwin and other tips.
2018-12-01 16:15:45 +00:00
2018-11-13 03:51:21 +00:00
#### Shell completion
2017-09-02 06:53:19 +00:00
2019-09-27 13:33:19 +00:00
Completion scripts for Bash, Fish and Zsh are [available ](misc/auto-completion ). Refer to your shell's manual for installation instructions.
2017-09-02 06:53:19 +00:00
2019-10-06 14:22:30 +00:00
## Elsewhere
2017-04-25 16:54:47 +00:00
2019-10-06 14:22:30 +00:00
- [Wikipedia ](https://en.wikipedia.org/wiki/Nnn_(file_manager ))
- [ArchWiki ](https://wiki.archlinux.org/index.php/Nnn )
2017-04-25 16:54:47 +00:00
- [FOSSMint ](https://www.fossmint.com/nnn-linux-terminal-file-browser/ )
2019-11-11 21:31:53 +00:00
- [gHacks Tech News ](https://www.ghacks.net/2019/11/01/nnn-is-an-excellent-command-line-based-file-manager-for-linux-macos-and-bsds/ )
2019-09-29 04:18:51 +00:00
- Hacker News [[1 ](https://news.ycombinator.com/item?id=18520898 )] [[2 ](https://news.ycombinator.com/item?id=19850656 )]
2018-08-18 07:04:25 +00:00
- [It's FOSS ](https://itsfoss.com/nnn-file-browser-linux/ )
2019-09-29 04:18:51 +00:00
- LinuxLinks [[1 ](https://www.linuxlinks.com/nnn-fast-and-flexible-file-manager/ )] [[2 ](https://www.linuxlinks.com/bestconsolefilemanagers/ )]
2019-01-02 06:31:21 +00:00
- [Suckless Rocks ](https://suckless.org/rocks/ )
2018-08-18 07:04:25 +00:00
- [Ubuntu Full Circle Magazine - Issue 135 ](https://fullcirclemagazine.org/issue-135/ )
2017-04-25 16:54:47 +00:00
2019-08-09 04:58:14 +00:00
## Developers
2017-04-15 01:21:10 +00:00
2019-12-31 17:11:25 +00:00
- [Arun Prakash Jana ](https://github.com/jarun ) (Copyright © 2016-2020)
2019-10-18 23:44:18 +00:00
- [0xACE ](https://github.com/0xACE )
2019-12-19 19:05:58 +00:00
- [Anna Arad ](https://github.com/annagrram )
2019-10-18 23:44:18 +00:00
- [KlzXS ](https://github.com/KlzXS )
2019-12-19 19:05:58 +00:00
- [Maxim Baz ](https://github.com/maximbaz )
2019-10-18 23:44:18 +00:00
- and other contributors
2019-01-18 02:08:56 +00:00
2019-11-23 04:59:21 +00:00
`nnn` is actively developed. Visit the to the [ToDo list ](https://github.com/jarun/nnn/issues/386 ) to contribute or see the features in progress.