Open ranger File-Manager in specific Directory

0

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!

Tim Hilt

Posted 2018-09-25T20:53:32.233

Reputation: 187

Answers

0

You can just ranger /home/Louis/whatever

This works just fine without any arguments

neelabalan

Posted 2018-09-25T20:53:32.233

Reputation: 46

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 – 2019-01-05T08:11:46.993

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 – 2019-01-05T10:20:55.333

0

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

J.Adler

Posted 2018-09-25T20:53:32.233

Reputation: 101

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 – 2019-01-05T08:12:49.067