I'm using Ranger to navigate around my file system.

Is there a shortcut where I cd into that folder?


I found the answer to this in the man pages:

S Open a shell in the current directory

Yes, probably should have read through that before asking here.

  • 4
    and type exit in terminal to go back to ranger – nilon Jul 1 '17 at 13:54
  • Doesn't work for me — typing s cd ~ still leaves me in /tmp directory. – Hi-Angel Nov 29 '17 at 6:29
  • 1
    @Hi-Angel when you are browsing directories hit S it should leave ranger and go to a new terminal. But if you run exit you go back to ranger. You need to use a capital S small s won't work. – Philip Kirkbride Nov 29 '17 at 12:24

You could also use :cd /path/to/folder if you are already in Ranger.


You can also do it the other way and use ranger-cd to automatically change the directory in bash after closing ranger with this script.

I use it with

alias r=ranger-cd

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.