码迷,mamicode.com
首页 > 系统相关 > 详细

mac -bash: ll: command not found

时间:2018-02-04 00:32:12      阅读:292      评论:0      收藏:0      [点我收藏+]

标签:linu   style   book   命令   nbsp   系统   air   dem   man   

在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

 

mac -bash: ll: command not found

标签:linu   style   book   命令   nbsp   系统   air   dem   man   

原文地址:https://www.cnblogs.com/sandyyeh/p/8410944.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!