alias definitation on bash and tcsh
2008/11/13 17:54:13
under bash environment:
alias target= 'cd ....'
to install the alias when login, put the alias desinition in .bashrc or .bash_profile or put the alias in a file,add execution right to it and execute it in .bashrc
under tcsh:
alias target 'command'
to install the alias when login, put the alias desinition in .cshrc or put the alias in a file,no need to add execution right to it and add the file as the source in .cshrc:
source $HOME/alias/.alias
本文介绍了如何在Bash和tcsh两种Shell环境中设置和使用别名。在Bash中,可以通过.bashrc或.bash_profile安装别名;而在tcsh中,则通过.cshrc来实现。文章还详细解释了不同环境下别名定义的具体步骤。

被折叠的 条评论
为什么被折叠?



