Ranger – A Nice Console File Manager with VI Key Bindings

Ranger is a simple, efficient text-based file manager with smooth integration into the Unix/Linux shell with VI key bindings. It comes with a minimalistic and nice curses interface that displays the directory hierarchy allowing you to quickly switch directories and browse the file system.

Importantly, ranger uses rifle, a file launcher that automatically determines which program to use for what file type.

Ranger Features

  1. Common file operations such as copy, delete, create, chmod, etc…
  2. UTF-8 Support.
  3. Multi-column display.
  4. VIM-like console and hotkeys.
  5. Preview of the selected file/directory.
  6. Renaming multiple files at once.
  7. Change the directory of your shell after exiting ranger.
  8. Tabs, Bookmarks, Mouse support.
  9. True Color Image previews using w3m web browser.
  10. Video thumbnails previews.
Ranger - A Console File Manager for Linux
Ranger – A Console File Manager for Linux

How to Install Ranger Console File Manager in Linux

Ranger is available to install from the default repositories using the package manager of your operating system as shown.

$ sudo apt install ranger		#Debian/Ubuntu
$ sudo yum install ranger		#RHEL/CentOS
$ sudo dnf install ranger		#Fedora 22+

Alternatively, you can also use PIP command to install ranger as shown.

$ sudo pip install ranger-fm 

After installing ranger, you can start it from the terminal using following command.

$ ranger

After starting ranger, you can use the Arrow Keys or h j k l to navigate, Enter to open a file or q to quit.

The first column shows the parent directory, the second is the main column and the third column shows a preview of the current file/directory.

Ranger Console File Manager
Ranger Console File Manager
Ranger - File Preview
Ranger – File Preview

As mentioned earlier, it supports the mouse. You can therefore use your mouse to select directories or files on the console, and click Enter to open them. If you select a file, rifle will automatically try to find out which program to use for what file type. Choose the program you want from the provided list (you will do this once).

Ranger can automatically copy default user-specific configuration files, history, bookmarks and tags to ~/.config/ranger and stores system wide configuration files to /etc/ranger/config/.

For more information, consult the ranger man page.

$ man ranger 

Ranger Githug repository: https://github.com/ranger/ranger.

Ranger is a small and efficient console-based file manager with VI key bindings. Try it out and share your thoughts with us via the feedback form below.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

6 thoughts on “Ranger – A Nice Console File Manager with VI Key Bindings”

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.