Linux ls 命令竟然还有这般武艺
ls
命令有多种替代方法,我们今后也将介绍其中的一些替代方法。ls 的一个相关替代为 exa 见 https://www.linuxmi.com/exa-linux-ls.html
今天我们将了解一个用 Golang 编写的新替代方案,它与GNU Coreutils ls的区别在于除了列出文件之外,它会还根据mime-type显示图标。
安装
可以将它安装在不同的架构和操作系统(Windows、macOS、BSD)上,要查看与您对应的版本,请到发布页面查看。
如果是GNU/Linux 64 位,请使用以下命令:
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com
⚡ wget -q https://github.com/Yash-Handa/logo-ls/releases/download/v1.3.7/logo-ls_Linux_x86_64.tar.gz
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com
⚡ tar zxvf logo-ls_Linux_x86_64.tar.gz
logo-ls_Linux_x86_64/HELP.md
logo-ls_Linux_x86_64/LICENSE
logo-ls_Linux_x86_64/logo-ls.1.gz
logo-ls_Linux_x86_64/logo-ls
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com
⚡ cd logo-ls_Linux_x86_64/
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com/logo-ls_Linux_x86_64
⚡ sudo install -v logo-ls /usr/local/bin/
[sudo] linuxmi 的密码:
'logo-ls' -> '/usr/local/bin/logo-ls'
如果您还想安装手册,请运行:
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com/logo-ls_Linux_x86_64
⚡ sudo cp logo-ls.1.gz /usr/share/man/man1
现在只需运行以下命令进行测试:
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com
⚡ logo-ls
输出如下:
如果您希望它成为您的默认值
ls
,只需为其创建一个alias
,例如在BASH中:echo'alias ls="logo-ls"' >> ~/.bashrc
execute $SHELL
ls
有关更多信息,请使用以下命令:
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com
⚡ logo-ls --help
linuxmi@linuxmi /home/linuxmi/www.linuxmi.com
⚡ man 1 logo-ls
有关更多详细信息,请访问GitHub 上的 logo-ls 存储库。
链接:https://www.linuxmi.com/linux-icon-ls.html
(版权归原作者所有,侵删)
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。