Mac下 -bash: ll: command not found

257 阅读1分钟

原因:没有在脚本中添加ll信息 ll - 列出文件夹下所有文件信息,包括文件大小、权限等信息,类似于 ls -l

1、打开脚本bash_profile

open ~/.bash_profile

在bash_profile中添加以下信息:

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

保存并退出;

2、编译脚本

source .bash_profile

3、验证

ll

输出文件夹下所有文件信息