jeudi 29 janvier 2015

Different ssh login directory from user home


So, I'm working on a remote server via ssh that I log in and out of dozens of times a day, and I'd like to have bash cd to a default directory I've chosen as soon as I login, but I don't actually want to change the user home. Is there any simple way to do that?


To be clear, what I want is to see, say, ~/foo/bar/ when I login, instead of ~/, and have to option to change the default at will without having to worry about dangerous usermod craziness.


It's not important, but it would definitely be convenient.



Aucun commentaire:

Enregistrer un commentaire