You might be aware of command ‘ls‘ the list command and use it frequently to view the contents of a folder but because of miss-typing sometimes you would result in ‘sl‘, how about getting a little fun in terminal and not “command not found“.
Install sl
root@tecmint:~# apt-get install sl (In Debian like OS)
root@tecmint:~# yum -y install sl (In Red Hat like OS)
trouble shoot
trouble one
$ sudo yum install sl
.
.
.
No package sl available.
Error: Nothing to do
shoot one
$ git clone https://github.com/mtoyoda/sl.git ~/sl
$ cd ~/sl
$ gcc -O -o sl sl.c -lncurses
$ mv sl /usr/local/bin
$ sudo chown root.root /usr/local/bin/sl
$ echo "sl -laF" > ~/.zlogin
trouble two
[root@localhost sl]# make
gcc -O -o sl sl.c -lncurses
sl.c::: 致命错误:curses.h:没有那个文件或目录
#include <curses.h>
shoot two
[root@localhost sl]# yum search curse
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors..com
* extras: mirrors..com
* updates: mirrors..com
============================== N/S matched: curse ==============================
ncurses.x86_64 : Ncurses support utilities
ncurses-devel.i686 : Development files for the ncurses library
ncurses-devel.x86_64 : Development files for the ncurses library
ncurses-libs.i686 : Ncurses libraries
ncurses-libs.x86_64 : Ncurses libraries
ncurses-static.i686 : Static libraries for the ncurses library
ncurses-static.x86_64 : Static libraries for the ncurses library
ocaml-curses.x86_64 : OCaml bindings for ncurses
ocaml-curses-devel.x86_64 : Development files for ocaml-curses
NetworkManager-tui.x86_64 : NetworkManager curses-based UI
ncurses-base.noarch : Descriptions of common terminals
ncurses-term.noarch : Terminal descriptions
[root@localhost sl]# yum search curse
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors..com
* extras: mirrors..com
* updates: mirrors..com
============================== N/S matched: curse ==============================
ncurses.x86_64 : Ncurses support utilities
ncurses-devel.i686 : Development files for the ncurses library
ncurses-devel.x86_64 : Development files for the ncurses library
ncurses-libs.i686 : Ncurses libraries
ncurses-libs.x86_64 : Ncurses libraries
ncurses-static.i686 : Static libraries for the ncurses library
ncurses-static.x86_64 : Static libraries for the ncurses library
ocaml-curses.x86_64 : OCaml bindings for ncurses
ocaml-curses-devel.x86_64 : Development files for ocaml-curses
NetworkManager-tui.x86_64 : NetworkManager curses-based UI
ncurses-base.noarch : Descriptions of common terminals
ncurses-term.noarch : Terminal descriptions
now cd into the project folder
make
done!
( ) (@@) ( ) (@) () @@ O @ O @ O
(@@@)
( )
(@@@@) ( )
==== ________ ___________
_D _| |_______/ \__I_I_____===__|_________|
|(_)--- | H\________/ | | =|___ ___| _________________
/ | | H | | | | ||_| |_|| _| \_____A
| | | H |__--------------------| [___] | =| |
| ________|___H__/__|_____/[][]~\_______| | -| |
|/ | |-----------I_____I [][] [] D |=======|____|________________________|_
__/ =| o |=-O=====O=====O=====O \ ____Y___________|__|__________________________|_
|/-=|___|= || || || |_____/~\___/ |_D__D__D_| |_D__D__D_|
\_/ \__/ \__/ \__/ \__/ \_/ \_/ \_/ \_/ \_/