美文网首页Linux 命令行基础
mac系统下使用ll、la命令,提示:-bash: ll: co

mac系统下使用ll、la命令,提示:-bash: ll: co

作者: LAMYMAY | 来源:发表于2019-12-24 13:01 被阅读0次

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

相关文章

网友评论

    本文标题:mac系统下使用ll、la命令,提示:-bash: ll: co

    本文链接:https://www.haomeiwen.com/subject/czoxoctx.html