View Full Version : SLED 12 default shell directory

09-Sep-2016, 11:34
When a user opens a terminal window in SLED12 the default directory is ~/Desktop. How can I change this to be the top level of their home directory?


09-Sep-2016, 14:13
How are they opening the terminal?

You could run the following command, as the user, to cause them to always
change to their home directory when a new shell is opened, though that may
get kind of annoying when just calling bash out of the blue, and may even
cause some problems with less-than-perfect commands:

echo -e '\n\n#Forcing change to home directory\ncd;\n' >> ~/.bashrc

Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...