版權聲明:本文為部落客原創文章,轉載請注明出處。 https://blog.csdn.net/twilight_karl/article/details/78357953
source
source 配置檔案
或
. 配置檔案
使配置檔案生效
常見配置檔案:
- /etc/profile
- /etc/profile.d/*.sh
- ~/.bash_profile
- ~/.bashrc
- /etc/bashrc
檔案的作用及關系如下:
其他配置檔案
- ~/.bash_logout 退出登陸時自動執行,
- ~/.bash_history 儲存曆史指令,目前登陸的曆史指令儲存在記憶體中,退出後儲存到檔案中。
- /etc/issue 本地終端登陸之前,顯示的資訊
- /etc/issue.net 遠端終端的登陸時,顯示的資訊
- /etc/motd 在登陸之後顯示資訊,不管本地還是遠端
常見轉義符:
PS: 對于
/etc/issue.net
,轉義符不起作用,隻能顯示普通文本.。由/etc/ssh/sshd_config 控制。Banner有參數時
Banner /etc/issue.net
才能顯示