在Mac上,为什么别名la'ls -la'不起作用?


0

我跑的时候 alias la 'ls -la' 我收到错误: ls: alias: no such file or directory

我怎么做别名 lals -la

Answers:


8

您的mac可能使用bash作为shell,因此您需要键入 alias la='ls -la' 代替 alias la 'ls -la'

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.