Ranger File Manager Cheat Sheet

Basic Navigation

CommandDescription
hMove to parent directory
jMove down (next file)
kMove up (previous file)
lOpen file or enter directory
ggGo to top of list
GGo to bottom of list
HGo back in history
LGo forward in history
~Go to home directory
/Search for files
nNext search result
NPrevious search result
fFind (quick search)

File Operations

CommandDescription
<Space>Select current file
vVisual selection mode
uvDeselect all
yyYank (copy) file
ddCut file
ppPaste file
cwRename current file
:renameRename with editor
IRename without extension
ARename at the end
aRename at the end without extension
:bulkrenameBulk rename selected files
<Delete>Delete selected files
dDDelete selected files (no confirmation)
chmodChange file permissions

File Creation & Editing

CommandDescription
:touchCreate a new file
:mkdirCreate a new directory
oSort options
zChange settings
iShow file (preview)
EEdit file in $EDITOR
SOpen shell in current directory
!Execute shell command
@Execute shell command with file names

Tab Management

CommandDescription
<Ctrl>nCreate new tab
<Ctrl>wClose current tab
<Tab>Next tab
<Shift><Tab>Previous tab
<Alt>1-9Go to tab 1-9

Bookmarks

CommandDescription
m + <key>Create bookmark with key
' + <key>Go to bookmark with key
um + <key>Delete bookmark

Views & Display

CommandDescription
zhShow hidden files
zpToggle preview
zPToggle full-screen preview
zfFilter files by pattern
MShow linemode selector
<Ctrl>hToggle hidden files
dcCalculate directory size
zcToggle collapse preview
?Show help / key bindings

Advanced Features

CommandDescription
:flatFlatten directory view
:filterFilter files by pattern
:findFind files by pattern
:locateFind files using locate command
:shellOpen shell in current directory
:terminalOpen terminal in current directory
WOpen dedicated message window
:helpShow help document
:cdChange directory
:scoutExecute ranger’s file selector

Custom Commands

You can define custom commands in your ~/.config/ranger/commands.py file.

Configuration

Your configuration files are located in ~/.config/ranger/:

  • rc.conf: Main configuration file
  • rifle.conf: File opener configuration
  • commands.py: Custom commands
  • scope.sh: File previewer configuration