mac系统下使用ll、la命令,提示:-bash: ll: command not found
启动终端Terminal
进入当前用户的home目录:输入cd ~
如果没有.bash_profile
创建.bash_profile : 输入touch .bash_profile
编辑.bash_profile文件:输入open -e .bash_profile
输入你需要添加的内容:
alias ll='ls -alF'
alias la='ls -A'
保存,退出
更新配置: source ~/.bash_profile