Ranger

Ranger is a tui file manager written in python

Installation

sudo apt install ranger

Keybindings

  • j/k - Move down/up
  • h/l - Move left/right (parent/child directories)
  • H/L - Move back/forward in history
  • gg/G - Go to top/bottom
  • <number>G - Go to line number

File Operations

  • <Enter> - Open file/directory
  • r - Open with application
  • yy - Copy (yank) file
  • dd - Cut file
  • pp - Paste file
  • po - Paste and overwrite
  • pl - Paste as symlink
  • dD - Delete file (with confirmation)

Directory Operations

  • cw - Rename file/directory
  • I - Rename (prepend to name)
  • A - Rename (append to name)
  • :mkdir <name> - Create directory
  • :touch <name> - Create file
  • zh - Toggle hidden files
  • zp - Toggle preview
  • / - Search forward
  • ? - Search backward
  • n/N - Next/previous search result

Tabs and Bookmarks

  • gn/<C-n> - New tab
  • gt/<C-t> - Next tab
  • gT - Previous tab
  • gc/<C-w> - Close tab
  • m<letter> - Set bookmark
  • '<letter> - Go to bookmark

Quick Actions

  • <Space> - Select file
  • v - Invert selection
  • uv - Remove all selections
  • S - Open shell in current directory
  • Q - Quit ranger

Table of Contents