Linux allows non-root users to use root user's settings

   Just create a .bashrc file in the home directory of the non-root user, and then write in it

if [ -f /etc/bashrc ]; then
        . /etc/bashrc
be

    That's it, when a normal user logs in or opens a bash shell, the .bashrc file in the user's home directory will be automatically executed.

   

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326766429&siteId=291194637