Master Linux File Navigation with Ranger: A Quick Start Guide
This guide introduces the terminal‑based file manager Ranger, covering installation, its four‑column interface, navigation shortcuts, built‑in commands like chmod and edit, and how it offers a powerful alternative to traditional cd‑based file browsing on Linux.
Ranger is a terminal‑based file‑system navigator for Linux that lets you move through directories, view file contents and edit files without leaving the tool.
Install it with the standard package manager, e.g. sudo apt install ranger, and start it by typing ranger. The program opens in a terminal window and uses the arrow keys for navigation.
Multi‑column display
Ranger shows four columns. The leftmost column lists the parent directory of the current location; the second column shows the first page of entries in the current directory; the third column displays the entries related to the selected item in the second column; the rightmost column previews the selected file’s contents.
shs@dragonfly /home/shs/backups <== current selection
bugfarm backups 0 empty
dory bin 59
eel Buttons 15
nemo Desktop 0
shark Documents 0
shs Downloads 1The top line indicates the current path (e.g., /home/shs/backups). Selecting a directory and pressing Enter moves into it, updating the columns accordingly.
Navigation shortcuts
Right arrow – descend into a directory or view a file.
Left arrow – go up one level. q – quit ranger. ? – show a help line at the bottom. c – display a list of available commands.
Common commands
Within ranger you can execute shell‑like commands prefixed with a colon. For example, :chmod 700 changes the selected file’s permissions to rwx------, and :edit opens the file in nano for editing.
Conclusion
Once you become accustomed to ranger’s multi‑level view and keyboard navigation, you can browse and manipulate files on a Linux system more efficiently than using the traditional cd command line workflow.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
