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.

If this article helped, with someone on your team.

TecMint Weekly Newsletter
Get the Learn Linux 7 Days Crash Course free when you join 34,000+ Linux professionals reading every Thursday.
Check your email for a magic link to get started.
Something went wrong. Please try again.
TecMint has been free for 14 years. Help keep it that way.
Google AI Overviews and tools like ChatGPT have cut into search traffic for independent tech sites like TecMint. Running this site costs over $2,000 every month for hosting, infrastructure, and paying authors to keep the content accurate and tested.

If this article helped you solve a problem, consider buying a coffee. It helps keep TecMint free, supports the authors, and keeps the project going.
☕ Buy Me a Coffee
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.

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.

Free Course
Get a free Linux course before you go.
Subscribe to TecMint Weekly and get the Learn Linux 7 Days Crash Course free. Read by 34,000+ Linux professionals every Thursday.
Something went wrong. Please try again.
Check your email for a magic link to get started.