shell : On linux, the interpreter between user and kanel, that can understand the user commands and settings and pass them on to the computer.
bash : Bourne Again Shell, a comon shall program. It is also responsible for letting the users configure a set of user preferences or setting.
It has 5 setting files below.
The steps to execute is
/etc/profile -> /etc/bashrc -> /.bash_profile -> /.bashrc
# Global setting file basically under the etc
/etc/profile
/etc/bashrc
# Individual setting file basically under the .(hidden)
~/.bash_profile
~/.bashrc
~/.bash_logout
- /etc/profile
Overall environment setting file, affect to other user.
- /etc/bashrc
Bourne Again Shell Run Command
Overall environment system setting file.
- ~/.bash_profile
Individual environment setting file to control when bash executes. It executes when user logs in. It restricted only to the individual user, not affect to other user.
- ~/.bashrc
Individual environment system setting file. It executes whenever bash implements. It restricted only to the individual user, not affect to other user.
$ cat .bashrc
>>>
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
...
- ~/.bash_logout
Individual environment system setting file before user logs out. It restricted only to the individual user, not affect to other user.
'Linux > terminal' 카테고리의 다른 글
Install pyenv-virtualenv on mac (0) | 2022.03.31 |
---|---|
How to add new server (0) | 2022.03.31 |
How to connect to the server from the client, set to alias. (0) | 2022.03.15 |
$, grep (0) | 2022.01.03 |
move folder, rmdir, rm -r, rm -rf ., touch, find, cat, -p (0) | 2021.01.26 |