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

由 Jefsky 发布于 2024-01-04

在mac下无法使用ll,la,l等命令,其实是因为没有配置好ls命令的别名

打开环境变量配置文件.bash_profile

open ~/.bash_profile

添加以下内容到配置文件

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

command+s进行保存。

编译配置文件.bash_profile:

source .bash_profile