红联Linux门户
Linux帮助

关于linux系统中alias的配置

发布时间:2007-11-20 11:05:19来源:红联作者:lznljyjc
当用户进入Shell之后,系统按照以下步骤一次读取Shell配置。

1) reads /etc/profile
2) 如果~/.bash_profile存在, source .bash_profile;
如果~/.bashrc存在,source .bashrc;
如果~/.bash_login存在, source .bash_login;
如果~/.profile存在, source .profile。

因此需要加入诸如alias vi='vim'这样的配置时,可尝试采用以上的几种方法。

PS:vim的自动补齐变量名字功能可用CTRL+N。
文章评论

共有 1 条评论

  1. rgmfnmqj 于 2007-11-20 11:14:18发表:

    (o):tx 5:ty( 5:ty( 5:ty( 5:ty( 5:ty(