- If you are running a Unix-based or Unix-like operating system, bash is most likely installed as the default terminal .
- Although there are many different shells , bash is the most common and perhaps the most mainstream.
- If you don't understand what that means, bash is a thing that can interpret your input into a terminal program and run commands based on your input.
- It supports the use of scripts to customize functions to a certain extent, and it will be used
.bashrc
at this time . - In order to load your configuration, bash loads
.bashrc
the contents of the file every time it starts . - Every user's home directory has this shell script. It is used to store and load your terminal configuration and environment variables .
- If you have never edited it before
.bashrc
, you may find it is empty. it does not matter! If it is not, you can add your configuration on any line at will. - Any changes you make to bashrc will take effect the next time you start the terminal. If you want to take effect immediately, run the following command: source .bashrc
- adduser xm
- id
- adduser xm sudo ( sudoer )