当前位置:网站首页>环境变量配置文件
环境变量配置文件
2022-07-22 10:51:00 【八点十面】
简介
1、source命令
#source 配置文件
2、环境变量配置文件简介
环境变量配置文件中主要是定义对系统的操作环境生效的系统默认环境变量,比如PATH、HISTSIZE、PS1、HOSTNAME等默认环境变量
主要的环境变量文件:
/etc/profile
/etc/profile.d/*.sh
~/.bash_profile
~/.bashrc
/etc/bashrc
作用
/etc/profile ----- ~/.bash_profile ---- ~/.bashrc ---- /etc/bashrc ----- 命令提示符
- -
- -
---- /etc/profile.d/*.sh --------------------------------------
-
-
-
/etc/profile.d/lang.sh -------- /etc/sysc config/i18n
/etc/profile的作用:
USER变量:
LOGNAME变量:
MAIL变量:
PATH变量:
HOSTNAME变量:
HISTSIZE变量:
umask:
调用/etc/profile.dl/*.sh文件
~/.bash_profile的作用
调用了~/.bashrc文件
在PATH变量后面加入了“:$HOME/bin”这个目录
其他配置文件和登录信息
1、注销时生效的环境变量配置文件
~/.bash_logout
2、其他配置文件
~/bash_history
3、Shell登录信息
本地终端欢迎信息:/etc/issue
远程终端欢迎信息:/etc/issue.net
边栏推荐
猜你喜欢
【FPGA】:MicroBlaze的使用
Using various weighting methods to place binary weighted capacitor array in SAR ADC
【FPGA】状态机
ADB自动化测试框架
Automatic current mirror layout (acml) tool
Performance perception of transistor arrays in analog circuits common centroid layout and wiring align
Airtest 进行WebUI自动化测试(selenium)
Multithread 01 -- create thread and thread state
Likeshop100%开源无加密-B2B2C多商户商城系统!!
Session和Cookie的关系与区别
随机推荐
Spark学习之SparkSQL
VIM learning journey
How many holes are there in string split operation
Redis 系列15--Redis 缓存清理
Using various weighting methods to place binary weighted capacitor array in SAR ADC
Session和Cookie的关系与区别
多线程04--线程的可见性
Django中使用Mysql数据库
Redis 系列13--Redis 哨兵
有源和无源设备的共质心布局:回顾和未来之路
Multithreading 08 -- blocking queue
MySQL usage FAQs
项目上线,旧数据需要修改,写SQL太麻烦,看Excel配合简单SQL的强大功能
scanf和printf格式问题
Rapid construction of selenium testing framework (UI automated testing)
Steps and common methods of data analysis
Postgre database
ADB自动化测试框架
文件
[FPGA]: IP Core - - DDR3