Useful commands and keybindings to use ranger

Ranger is a text-based file manager that can be very easy to use and powerful if you learn shortcuts and keybindings (you can find the wiki here). This article want to introduce the more used things that a user do with a file manager.

ranger keybindings

Firstly, ranger is vi based.

If you’re asked yourself “Why to use ranger?” just read this article and you’ll understand!

Move around:
up or k ____________ to go up
ctrl-b or pageup ___ to go up a page
ctrl-u or K ________ to go up half page

down or j __________ to go down
ctrl-f or pagedown _ to go down a page
ctrl-d or J ________ to go down half page

left or h __________ to go left
right or l _________ to go right

home _______________ to move to top
end ________________ to move to bottom

H __________________ to history move back
L __________________ to history move forward

ctrl-n or gn _______ to open new tab (in your home)
gc _________________ to close current tab

tab or gt __________ to move to next tab
shift-tab or gT ____ to move to previous tab

cd _________________ to change the working directory to specific directory
gh _________________ to change the working directory to your home
gm _________________ to change the working directory to /media
gM _________________ to change the working directory to /mnt
gu _________________ to change the working directory to /usr


Manage files:
space ______________ to mark a file/directory
v __________________ to mark all files/directories
uv __________________ to unmark all selected files/directories

delete _____________ to delete selected files/directories

yy or f5 ___________ to copy
ya _________________ to add files/directories to current 'copy'
yr _________________ to remove files/directories from current 'copy'

dd or f6 ___________ to cut
da _________________ to add files/directories to current 'cut'
dr _________________ to remove files/directories from current 'cut'

cw _________________ to rename a file/directory
I __________________ to change name of file/directory, from the beginning
A __________________ to change name of file/directory, from the end

/ or f _____________ to search a file/directory
n __________________ to search next file/directory
N __________________ to search previous file/directory


Varies:
q __________________ to quit
s __________________ to launch shell

These’re the most useful shortcuts, but all the keybindings can be diplayed typing 1?.

You can use my configuration file as example, please click here GitHub-Mark-32px.

You can find your configuration file in ~/.config/ranger/rc.conf.

Enjoy!

About Daniele Dalla Torre

I'm a Civil Engineering student but I love to learn everything about technology, from the basics to the new frontiers! Here my gpg public key!

Leave a Reply

Your email address will not be published.

*