Ranger is a lightweight and powerful file manager that works in a terminal window. It comes with the Vi key bindings. It offers a smooth way to move into directories, view files and content, or open an editor to make changes to files.
Ranger has a minimalist interface that shows the directory hierarchy and allows you to explore the file system, search for specific files, switch directories, etc. It consists of a three-column layout. The left column lists the content of parent directory, middle column lists the contents of the current directory. The right column shows the preview of the selected file or folder. Its is available in the package repositories of nearly all main Linux distributions.
In this article, we will learn how to install Ranger Terminal File Manager on Linux. Before moving towards installation, let’s take a look at some features of Ranger.
We will use Ubuntu 18.04 LTS for describing the procedure mentioned in this article.
Before proceeding towards installing Ranger, we will first install make, git, and vim. Make and git will be required for installation, while vim is required for Ranger to open as a text editor.
Press Ctrl+Alt+T to launch the Terminal and then run the following command to update the repositories and install pre-requisites.
$ sudo apt-get update -y
$ sudo apt-get install make git vim -y
All the pre-requisites have completed and now we are prepared for installing Ranger file terminal.
For installing Ranger, we will download the latest Ranger repository from the Github. To do so, run the following command in Terminal:
$ git clone https://github.com/hut/ranger.git
After downloading the Ranger repository, navigate to the downloaded folder using the following command.
$ cd ranger
Then run the following command to install Ranger.
sudo make install
Wait for a while until the installation is completed.
After installation, we will do some configuration. To do so, launch Ranger for a moment and then exit it. By doing so, it will enable the Ranger to create the directory structure for its configuration files:
$ ranger
After the configuration directory has been created by the Ranger, you can now copy its configuration files by running the following commands in terminal:
$ ranger --copy-config=all
The output will look similar to this:
To modify the Ranger configuration files later, you can find them at ~/.config/ranger. To navigate to the configuration files folder, use the following command:
cd ~/.config/ranger
Now launch the Ranger using the Terminal or from the start menu. you will see the interface similar to below. In the following screenshot, you can see that the interface is divided into three columns. Middle column displays the current working directory, the left column displays the current directory's parent directory and the right column displays the preview of the file that we are currently interacting.
Along with the columns, you can see some information on the top and bottom of the window. On top, you can see the name and hostname of your system just like your terminal along with the current working directory. In the bottom, you can see the file or directory permission, ownership, size, date and time information along with the total size of the file and free disk space.
To change directories, you can use the arrow keys: Press Right to go into the currently selected directory, or Left to go into the parent directory. Similarly to select items in the middle panel, use the Up and Down arrow keys. There are number of commands you can use to perform different operations on the files but here are some of the most common commands.
For navigation
Working with files
In this article, we have learned how to install Ranger terminal file manager on Linux. We have also covered some key shortcuts and combos but that is not enough. There is a lot more to explore in it. Ranger is designed to provide Vim like look and feel. So if you are a regular Vim user, you will find it extremely easier to learn and use it, otherwise spent some time using the combos and you will find yourself working with Ranger at a blistering pace.
Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…
ISPConfig is an open-source control panel that allows users to manage multiple servers from a…
As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…
Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…
Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…
phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…