1)配置个人用户的~/.bashrc $vi ~/.bashrc alias ll=ls -lhF --color=auto alias db127=mysql -uroot -p123456 -h 127.0.0.1 -P 3306 2)立即生效(也可以重新登录) $ source ~/.bashrc 3)过程说明 一般会在.bash_profile文件中显式调用.bashrc。登陆linux启
1)配置个人用户的~/.bashrc
$vi ~/.bashrc
alias ll="ls -lhF --color=auto"
alias db127="mysql -uroot -p123456 -h 127.0.0.1 -P 3306"
2)立即生效(也可以重新登录)
$ source ~/.bashrc
3)过程说明
一般会在.bash_profile文件中显式调用.bashrc。登陆linux启动bash时首先会去读取~/.bash_profile文件,这样~/.bashrc也就得到执行了,你的个性化设置也就生效了。
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn