V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wjx0912
V2EX  ›  macOS

mac 的 ls 没有 Linux 的好用?

  •  
  •   wjx0912 · 2022-08-24 16:30:05 +08:00 · 1580 次点击
    这是一个创建于 616 天前的主题,其中的信息可能已经有所发展或是发生改变。
    小弟初入 mac ,比如执行:
    ls -l /bin
    ls /bin -l
    这两个 linux 下跑的好好的,但是 mac 第一个可以第二个不行

    貌似 mac 的 ls 乱七八糟的。能不能安装 linux 的 ls 呢?

    感谢大家
    6 条回复    2022-08-24 17:39:43 +08:00
    jorneyr
        1
    jorneyr  
       2022-08-24 16:33:38 +08:00
    安装 exa 代替 ls 吧,整个别名
    wjx0912
        2
    wjx0912  
    OP
       2022-08-24 16:40:21 +08:00
    @jorneyr exa 是最优解决方案吗
    crs0910
        3
    crs0910  
       2022-08-24 17:29:53 +08:00
    BSD 和 GNU 的区别
    crs0910
        4
    crs0910  
       2022-08-24 17:32:29 +08:00   ❤️ 1
    brew install coreutils

    export PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
    crs0910
        5
    crs0910  
       2022-08-24 17:32:55 +08:00
    @crs0910 #4 哈 换行失败
    wjx0912
        6
    wjx0912  
    OP
       2022-08-24 17:39:43 +08:00
    @crs0910 就是在找这个东东呀,太感谢了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   946 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:51 · PVG 02:51 · LAX 11:51 · JFK 14:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.