Add the “ll” Command to macOS Terminal 在 macOS 终端添加 “ll” 命令

“Although the `ll` and `ls` commands are available in Linux, macOS does not include the `ll` command by default. The following method can be used to replicate the functionality of the `ll` command in macOS, similar to its use in Linux.”
虽然在 Linux 中可以使用 `ll` 和 `ls` 命令,但 macOS 默认并不包含 `ll` 命令。通过以下方法,可以在 macOS 中实现与 Linux 相同的 `ll` 命令功能。

Add the "ll" Command to macOS Terminal 在 macOS 终端添加 "ll" 命令

1.==== Edit the zshrc Config File ====

1.==== 编辑 zshrc 配置文件 ====

Add the "ll" Command to macOS Terminal 在 macOS 终端添加 "ll" 命令

$ vim ~/.zshrc

==== Add Below at the End of the Script ====

==== 在脚本末尾添加以下内容 ====

alias ll=’ls -lG’

==== Added Above at the End of the Script ====

==== 上述内容已添加在脚本末尾 ====

2.==== Source the zshrc Config File ====

2.==== 应用 zshrc 配置文件的更改 ====

$ source ~/.zshrc

原创文章,作者:Xaiat超级会员,如若转载,请注明出处:https://www.xaiat.com/add-the-ll-command-to-macos-terminal-%e5%9c%a8-macos-%e7%bb%88%e7%ab%af%e6%b7%bb%e5%8a%a0-ll-%e5%91%bd%e4%bb%a4/

(0)
Xaiat的头像Xaiat超级会员管理员
上一篇 2024年1月14日 01:45
下一篇 2024年1月14日 09:28

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Xaiat 人工智能艾特 让人人更懂AI