{"id":6062,"date":"2016-07-17T16:08:42","date_gmt":"2016-07-17T08:08:42","guid":{"rendered":"http:\/\/rmohan.com\/?p=6062"},"modified":"2016-07-17T16:08:42","modified_gmt":"2016-07-17T08:08:42","slug":"installing-figlet-in-linux","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6062","title":{"rendered":"Installing FIGlet In Linux"},"content":{"rendered":"<p>Installing FIGlet In Linux<br \/>\nInstall a FIGlet utility, to be able to convert text to ASCII Art from the Linux command line.<\/p>\n<p>In Ubuntu, Debian, Linux Mint etc.<br \/>\n$ sudo apt-get install figlet<\/p>\n<p>In CentOS, RHEL, Fedora etc.<br \/>\n$ yum install figlet<\/p>\n<p>Generate ASCII Text Banners<\/p>\n<p>o use FIGlet with its default settings, simply type :<\/p>\n<p>$ figlet &#8220;Shell Hacks&#8221;<br \/>\n ____  _          _ _   _   _            _<br \/>\n\/ ___|| |__   ___| | | | | | | __ _  ___| | _____<br \/>\n\\___ \\| &#8216;_ \\ \/ _ \\ | | | |_| |\/ _` |\/ __| |\/ \/ __|<br \/>\n ___) | | | |  __\/ | | |  _  | (_| | (__|   <\\__ \\\n|____\/|_| |_|\\___|_|_| |_| |_|\\__,_|\\___|_|\\_\\___\/\nTo change the font, use the -f option, for example :\n\n$ figlet -f digital \"Shell Hacks\"\n+-+-+-+-+-+ +-+-+-+-+-+\n|S|h|e|l|l| |H|a|c|k|s|\n+-+-+-+-+-+ +-+-+-+-+-+\nUse the -c option if you would prefer centered output :\n\n$ figlet -c \"Shell Hacks\"\nList FIGlet Fonts\nPrint a list of available FIGlet fonts :\n$ showfigfonts\n\nYou can also download and use additional FIGlet fonts, for example :\n\n$ wget http:\/\/www.figlet.org\/fonts\/univers.flf\n$ figlet -f univers.flf \"lol\"\n                   \n88             88  \n88             88  \n88             88  \n88  ,adPPYba,  88  \n88 a8\"     \"8a 88  \n88 8b       d8 88  \n88 \"8a,   ,a8\" 88  \n88  `\"YbbdP\"'  88  \nCreate ASCII Art From Text\nIf you would like to display the output of a command using FIGlet, simply pipe the command into FIGlet :\n\n$ date +%r | figlet -f bubble\n  _   _   _   _   _   _   _   _     _   _  \n \/ \\ \/ \\ \/ \\ \/ \\ \/ \\ \/ \\ \/ \\ \/ \\   \/ \\ \/ \\ \n( 0 | 4 | : | 5 | 1 | : | 4 | 9 ) ( P | M )\n \\_\/ \\_\/ \\_\/ \\_\/ \\_\/ \\_\/ \\_\/ \\_\/   \\_\/ \\_\/ \n\n$ echo \"WTF?\" | figlet -f banner\n#     # ####### #######  #####  \n#  #  #    #    #       #     # \n#  #  #    #    #             # \n#  #  #    #    #####      ###  \n#  #  #    #    #          #    \n#  #  #    #    #               \n ## ##     #    #          #  \nIf FIGlet gets its input from a file, use -p option :\n\n$ cat myfile\nShell Hacks\n$ figlet -p < myfile\n ____  _          _ _   _   _            _        \n\/ ___|| |__   ___| | | | | | | __ _  ___| | _____ \n\\___ \\| '_ \\ \/ _ \\ | | | |_| |\/ _` |\/ __| |\/ \/ __|\n ___) | | | |  __\/ | | |  _  | (_| | (__|   <\\__ \\\n|____\/|_| |_|\\___|_|_| |_| |_|\\__,_|\\___|_|\\_\\___\/\nNow have fun, creating your own ASCII text banners from the Linux terminal.\n\nMore information can be found on FIGlet official site.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing FIGlet In Linux Install a FIGlet utility, to be able to convert text to ASCII Art from the Linux command line.<\/p>\n<p>In Ubuntu, Debian, Linux Mint etc. $ sudo apt-get install figlet<\/p>\n<p>In CentOS, RHEL, Fedora etc. $ yum install figlet<\/p>\n<p>Generate ASCII Text Banners<\/p>\n<p>o use FIGlet with its default settings, simply type [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6062"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6062"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6062\/revisions"}],"predecessor-version":[{"id":6063,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6062\/revisions\/6063"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}