mac 安装ll命令
mac -bash: ll: command not found
在linux系统下我们经常使用ll、la命令。但在mac系统时缺没有。
提示:-bash: ll: command not found。
这是因为ll、la不是真的命令,而是一些常用命令和参数搭配的别名。所以我们在Mac OS下配置下就好了。
1、跳到个人目录下面
localhost:~ huangfy20$ cd
localhost:~ huangfy20$ pwd
/Users/huangfy20
2、打开.bash_profile
localhost:~ huangfy20r:~ luna$ vi .bash_profile
3、在最后面添加下面两个别名
alias ll=‘ls -alF’
alias la=‘ls -A’
4、启用新配置
localhost:~ huangfy20r:~ luna$ source .bash_profile