首先,cd到home下:
cd ~
再编辑.bash_profile文件
vim .bash_profile
添加如下内容
alias ll='ls -l'
#alias l='ls -alhF'
#alias la='ls -AFh'
#alias ll='ls -lhAF'
执行source .bash_profile命令,使内容生效
source .bash_profile
首先,cd到home下:
cd ~
再编辑.bash_profile文件
vim .bash_profile
添加如下内容
alias ll='ls -l'
#alias l='ls -alhF'
#alias la='ls -AFh'
#alias ll='ls -lhAF'
执行source .bash_profile命令,使内容生效
source .bash_profile