-
Bash 的配置文件
有时候,在定义了别名 alilas cls=clear , 或者定义了 umask=033 等等,在logout 用户后再登录,会失效,因为这些本地变量,仅对当前shell生效。而要保留配置,使其永久生效,就需要将这些定义的写入配置文件中保存。下面介绍下bash的配置文件: Bash的配置文件可以分为: profile类: /etc/profile /etc/profile/*.sh ~/.bash_profile 功用: &nbs…
有时候,在定义了别名 alilas cls=clear , 或者定义了 umask=033 等等,在logout 用户后再登录,会失效,因为这些本地变量,仅对当前shell生效。而要保留配置,使其永久生效,就需要将这些定义的写入配置文件中保存。下面介绍下bash的配置文件: Bash的配置文件可以分为: profile类: /etc/profile /etc/profile/*.sh ~/.bash_profile 功用: &nbs…