Linux ls 命令竟然还有这般武艺
ls
命令有多种替代方法,我们今后也将介绍其中的一些替代方法。ls 的一个相关替代为 exa 见 https://www.linuxmi.com/exa-linux-ls.html
安装
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
链接:https://www.linuxmi.com/linux-icon-ls.html
(版权归原作者所有,侵删)
评论