为了账号安全,请及时绑定邮箱和手机立即绑定

关于/etc/profile中HISTSIZE未定义直接export

在/etc/profile文件中,有"export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL"一行,在这些变量中,PATH,USER,LOGNAME,MAIL,HOSTNAME,HISTCONTROL都在前面进行声明(有变量值),但是HISTSIZE变量在之前没有出现过,在这里直接通过export将其变成环境变量,

在bash中试验发现export bb(bb从来没有定义过)会出现错误,有人知道是什么原因吗?

附上/etc/profile内容

http://img1.sycdn.imooc.com//5aa36dca0001dc1219201080.jpg

lsb_release -a:

LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch

Distributor ID: CentOS

Description: CentOS Linux release 7.4.1708 (Core) 

Release: 7.4.1708

Codename: Core

正在回答

2 回答

HISTSIZE 是系统变量

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

关于/etc/profile中HISTSIZE未定义直接export

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信