Ranger File Manager Keyboard Shortcuts

A photograph of a laptop on a dining table.

Ranger is a simple yet powerful terminal file manager for Linux. It works by using the ncurses library and a custom file launcher script to create a beautiful and seamless interface that you can use to access any file on your machine.

Ranger File Manager Keyboard Shortcuts Download

Download this Cheatsheet

Enter your email below to receive this PDF cheatsheet in your Inbox.

One of the notable features of Ranger is that it allows you to navigate and manipulate files using only your keyboard. To achieve this, Ranger adopts the familiar Vi shortcut layout. This makes the program easier to get a hold of if you are already familiar with Vi and Vim for text editing.

This cheatsheet will show you some of the most common keybindings for the Ranger File Manager. It will also highlight some of the program’s little-known tools and options that you can use to go through your data efficiently.

ShortcutFunction
Buffer Movement
JGo one entry down on the current directory.
KGo one entry up on the current directory.
Shift + JMove the selection cursor halfway down the directory listing.
Shift + KMove the selection cursor halfway up the directory listing.
GGGo to the top of the current directory listing.
Shift + GGo to the bottom of the current directory listing.
Shift + HGo back to the last open directory in the current session.
Shift + LGo forward to the most recent open directory in the current session.
File and Directory Manipulation
LOpen the currently selected directory.
HLeave the currently open directory.
EnterOpen the currently selected file.
ROpen the manual file prompt for the currently selected file.
Z, then HDisplay all the hidden files in the current directory.
OPrint all the available sorting options for the current directory.
Y, then YPlace a copy of the currently selected file into the system clipboard.
Y, then PCopy the path of the currently selected file instead of the actual binary.
Y, then DCopy the name of the current directory.
Y, then NCopy the name of the currently selected file.
Y, then Period (.)Copy the file extension of the currently selected file.
P, then PPaste the file in the system clipboard to the current directory.
D, then DCut the currently selected file to the system clipboard.
Equals (=)Change the permission bits of the currently selected file.
ARename the currently selected file.
D, then Shift + DDelete the selected file in the current directory.
File and Directory Searching
Forward Slash (/)Open the search prompt for Ranger.
NGo to the next instance of the current search query.
Shift + NGo back to the previous instance of the current search query.
File and Directory Marking
M + ACreate a new marker on the selected file and save it to the “A” register.
Single Quote Mark (‘) + AJump to the location marked on the “A” register.
U + M, then ARemove the marker on the “A” register.
Directory Movement
G, then HGo to the home directory of the current user.
G, then EGo to the “/etc” directory.
G, then UGo to the “/usr” directory.
G, then DGo to the “/dev” directory.
G, then OGo to the “/opt” directory.
G, then VGo to the “/var” directory.
G, then Shift + MGo to the “/mnt” directory.
G, then PGo to the “/tmp” directory.
G, then Forward Slash (/)Go to the root directory.
Interface Manipulation
G, then NCreate a new tab on the current directory.
TabSwitch to the right of the currently open tab.
Shift + TabSwitch to the left of the currently open tab.
ZOpen the Settings pane for Ranger.
Z, then MEnable mouse cursor support for the current session.
RRefresh the contents of the current directory.
SNest a new terminal window inside the current session.
Ctrl + LRedraw the terminal interface.
Shift + Backtick (`)Toggle the multi-pane view for the current session.
Ctrl + CCancel the currently running process inside Ranger.
QExit the current Ranger session.
Filtering
Period (.) + DShow all the folders in the current directory.
Period (.) + FShow all the files in the current directory.
Period (.) + LShow all the symbolic links in the current directory.
Period (.) + Double Quote Mark (“)Show all the duplicate files and folders in the current directory.
Period (.) + Single Quote MarkShow all the unique files and folders in the current directory.
Period (.) + Bar (|)Enable the “OR” logic for the currently active filters.
Period (.) + Ampersand (&)Enable the “AND” logic for the currently active filters.
Period (.) + Exclamation Mark (!)Enable the “NOT” logic for the currently active filters.
Period (.) + Period (.)Print all the active filters in the current session.
Period (.) + CRemove all the active filters in the current session.
Task View
WOpen Ranger’s task view pane.
Down ArrowMove the selection cursor one row down.
Up ArrowMove the selection cursor one row up.
EndMove the selection cursor to the bottom of the pane.
HomeMove the selection cursor to the top of the pane.
QClose the task view pane.
Help System
Shift + Forward Slash (/)Print Ranger’s in-client help system.
Shift + Forward Slash (/), then MPrint the manual page for Ranger.
Shift + Forward Slash (/), then CPrint the documentation for available Ranger commands.
Shift + Forward Slash (/), then SPrint a list of the current settings for Ranger.

Image credit: Unsplash (Background) and Wikimedia Commons (Logo). All alterations and screenshots by Ramces Red.

Ramces Red Avatar

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Read next

In 2016, archaeologists dated two rings of snapped stalagmites in France’s Bruniquel Cave to 176,500 years ago, evidence that Neanderthals had walked 336 metres into darkness with fire and built architecture deep underground long before modern humans reached Europe
Otto von Bismarck was 74 when Germany adopted the world’s first national old-age social insurance program in 1889, setting the pension age at 70 after years of fighting socialists with bans, laws, and a promise few workers would live long enough to use
When cosmonaut Valeri Polyakov stepped out of his Soyuz capsule in March 1995 after 437 consecutive days aboard Mir, doctors recorded him at several centimetres above his pre-flight height, and his spine had become so unaccustomed to gravity that the recovery team carried him to a chair rather than risk the compression of letting him walk.
When Harvard astronomer Cecilia Payne submitted her 1925 doctoral thesis arguing that the Sun was made almost entirely of hydrogen, the field’s senior figure Henry Norris Russell talked her into adding a line calling the result ‘almost certainly not real,’ and then published the same conclusion himself four years later to widespread acclaim.
When Edme Mariotte stared at marks on a wall in the 1660s, one mark vanished inside a six-degree hole where the optic nerve leaves the eye and the brain has been filling in wallpaper, sky, and faces ever since
When seismic waves from the Chicxulub impact reached what is now North Dakota roughly ten minutes after the asteroid struck, they appear to have triggered a ten-metre standing wave in an inland river that flung fish onto the bank and buried them under glass beads still falling from the sky.
When survivors near Lake Nyos woke on the morning of 22 August 1986, the cattle were dead in the fields, the birds had fallen out of the trees, and 1,746 of their neighbours were lying where they had stood the night before, with no fire, no flood, and no wound to explain it.
In 1959, a Soviet research team in Novosibirsk began breeding silver foxes for nothing but tameness, and within forty generations the animals had floppy ears, curled tails, piebald coats, and a bark, traits no one had selected for but which appeared on their own once fear was removed.