发现mac终端没有ll命令,于是创建自定义命令。
进入用户家目录
cd ~
编辑下面这个文件
vi .bash_profile
添加自定义的命令
alias ll='ls -l'
source一下就可以使用啦
source ~/.bash_profile
Mac创建自定义命令
最新推荐文章于 2023-03-22 15:29:39 发布
发现mac终端没有ll命令,于是创建自定义命令。
进入用户家目录
cd ~
编辑下面这个文件
vi .bash_profile
添加自定义的命令
alias ll='ls -l'
source一下就可以使用啦
source ~/.bash_profile