Managing Files with ranger

Learn how to manage files with the ranger command.

We'll cover the following...

Setting up ranger

The ranger command is a terminal-based graphical file manager. While this course is all about working on the command line, ranger makes it easier to work with files in batches, and it also makes previewing files easy. To use it, we first need to install it. On Ubuntu, we use apt:

sudo apt install ranger

On macOS, we use brew:

brew install ranger

After that, we start ranger:

ranger

Use the terminal below to practice this command.

Terminal 1
Terminal
Loading...

Interface

We’re greeted with a three-pane interface.

Initially, you’ll see a two-pane interface here. Try exploring directories to see the three-pane interface.

The middle pane shows the current directory’s files and directories. The left pane shows the contents of the parent directory, with the ...