您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

linux 使用别名

2024/5/20 15:18:36发布25次查看
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也就得到执行了,你的个性化设置也就生效了。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product