欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Linux用戶alias文件配置方法

  發(fā)布時(shí)間:2017-03-20 22:05:09   作者:王晗   我要評(píng)論
這篇文章主要介紹了Linux用戶alias文件配置方法,需要的朋友可以參考下

修改 ~/.bashrc 文件,以配置用戶自己定義的alias 

$> vi ~/.bashrc

 顯示

# .bash_profile                          

# Get the aliases and functions
if [ -f ~/.bashrc ]; then      
        . ~/.bashrc            
fi                             

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

在文件最后,添加自定義的alias語句

echo "My alias has started successfully!"
echo "Type 'alias' to see more about this!"

# my
alias la='ls -al --color=auto'
# my-end

這次更改需要在下次登錄時(shí)生效。

若要立即生效,輸入:

 

$> source ~/.bashrc

相關(guān)文章

最新評(píng)論