mac -bash: ll: command not found

在linux系统下我们经常使用ll、la命令。但在mac系统时缺没有。

提示:-bash: ll: command not found。

这是因为ll、la不是真的命令,而是一些常用命令和参数搭配的别名。所以我们在Mac OS下配置下就好了。

 

1、跳到个人目录下面

lunadeMacBook-Air:~ luna$ cd 

lunadeMacBook-Air:~ luna$ pwd

/Users/luna

2、打开.bash_profile

lunadeMacBook-Air:~ luna$ vi .bash_profile

3、在最后面添加下面两个别名

alias ll='ls -alF'

alias la='ls -A'

4、启用新配置

lunadeMacBook-Air:~ luna$ source .bash_profile

 

posted @ 2018-02-03 22:18  江南叶少  阅读(4888)  评论(0编辑  收藏  举报