Managing Files with ranger
Explore how to set up and use ranger, a graphical file manager in the terminal. Understand its three-pane interface and practice navigating directories, creating files and folders, editing files, copying and moving files, marking multiple files, bulk renaming, and deleting. This lesson helps you efficiently manage files from the command line while integrating with editors for easy file modifications.
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.
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 current directory highlighted. The right pane shows the contents of the item selected in the ...