解决Mac下命令行ll指令command not found的问题

在linux下习惯使用ll、la、l等ls别名的童鞋到mac os提示command not found。

首先,我们用如下命令打开环境变量配置文件.bash_profile:

open ~/.bash_profile

其次,添加以下内容到配置文件:

alias ll='ls -alF
alias la='ls -A
alias l='ls -CF

command+s进行保存。

最后,编译配置文件.bash_profile:

source .bash_profile

你可能感兴趣的:(解决Mac下命令行ll指令command not found的问题)