I use ranger as my file-manager and was looking for an option that i can pass to ranger, that let‘s me open ranger in a given directory, something like ranger —specfic-directory=„/home/tim/literature/„ or something alike. Neither ranger —help, nor the manpage offered an answer, at least none that i understood. I can‘t imagine that such an option doesn‘t exist!


You can just ranger /home/Louis/whatever

This works just fine without any arguments

  • Oh that's actually a nice and easy option! I previously went with what @J.Adler suggested, but will use your answer from now on! Thank you! – Tim Hilt Jan 5 '19 at 8:11
  • Thank you. But what @J.Adler suggested works also in cases where you need to open a separate window of the terminal with the ranger opening in specific directory. For frequent uses calling without arguments would be easy. – neelabalan Jan 5 '19 at 10:20

You can execute ranger --cmd='cd ~/Desktop'

  • I didn't look at this post for a while and later figured out myself that you are right! It's even written in the man-page! Thanks for your answer! – Tim Hilt Jan 5 '19 at 8:12

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.