Recently, I reinstalled ubuntu 16.04LTS on my desktop as a Linux server.
After a new user created, ssh into the server each time, but .bashrc (dot bashrc) not loaded after new user created? Please try to modify the profile as bellow.
After a new user created, ssh into the server each time, but .bashrc (dot bashrc) not loaded after new user created? Please try to modify the profile as bellow.
Append some commands into ~/.profile
result of test-cases.sh example
~$ source .profile
load /home/ben/.bashrc by ~/.profile
.bashrc has been executed once
load /home/ben/.bashrc by ~/.profile
.bashrc has been executed once
沒有留言:
張貼留言