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.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

6 Comments

Leave a Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.