{"id":13260,"date":"2019-04-01T10:02:15","date_gmt":"2019-04-01T10:02:15","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13260"},"modified":"2019-04-01T10:02:15","modified_gmt":"2019-04-01T10:02:15","slug":"add-rainbow-colors-to-linux-command-output-in-slow-motion","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/add-rainbow-colors-to-linux-command-output-in-slow-motion\/","title":{"rendered":"Add Rainbow Colors to Linux Command Output in Slow Motion"},"content":{"rendered":"<p>In this article, we will review a cool and simple way of giving a command screen output a rainbow colors and slowing down its output speed as well for one reason or the other.<\/p>\n<p>The\u00a0<a href=\"https:\/\/www.tecmint.com\/lolcat-command-to-output-rainbow-of-colors-in-linux-terminal\/\" target=\"_blank\" rel=\"noopener\">lolcat program<\/a>\u00a0is used for the above purpose. It basically functions by concatenating files, or standard input, to standard output in a similar way as the\u00a0<a href=\"https:\/\/www.tecmint.com\/13-basic-cat-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">cat command<\/a>, overrides the default screen output color of a particular command and adds rainbow coloring to it.<\/p>\n<h3>How to Install Lolcat Program in Linux<\/h3>\n<p><strong>Lolcat<\/strong>\u00a0program is available on almost all modern Linux distributions from its default repository, but the available version bit older. Alternatively you can install latest version of\u00a0<strong>lolcat<\/strong>\u00a0from git repository using this following guide.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/lolcat-command-to-output-rainbow-of-colors-in-linux-terminal\/\" target=\"_blank\" rel=\"noopener\">Install Lolcat to Output Rainbow Of Colors in Linux Terminal<\/a><\/li>\n<\/ol>\n<p>Once lolcat installed, the basic syntax for running\u00a0<strong>lolcat<\/strong>\u00a0is:<\/p>\n<pre>$ lolcat [options] [files] ...\r\n<\/pre>\n<p>It comes with several options that control its behavior, below are a few of the most considerable flags we will emphasis for the scope of this guide:<\/p>\n<ol>\n<li><code>-a<\/code>\u00a0\u2013 passes every input line through an animation effect.<\/li>\n<li><code>-d<\/code>\u00a0\u2013 specifies the duration (number of steps before displaying next line) of the animation effect, the default value is 12.<\/li>\n<li><code>-s<\/code>\u00a0\u2013 it specifies the speed (frame rate- number of steps per second) of the animation effect, default value is 20.<\/li>\n<li><code>-f<\/code>\u00a0\u2013 enables forcing of coloring in case standard output is not a tty.<\/li>\n<\/ol>\n<p>You can find more options in the\u00a0<strong>lolcat<\/strong>\u00a0man page:<\/p>\n<pre>$ man lolcat \r\n<\/pre>\n<h3>How to Use Lolcat in Linux<\/h3>\n<p>To use\u00a0<strong>lolcat<\/strong>, simply pipe the output of any relevant command to it and watch the magic.<\/p>\n<p>For example:<\/p>\n<pre>$ ls -l | lolcat -as 25\r\n<\/pre>\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/12\/Colorful-Linux-Terminal-Output.gif\"><img decoding=\"async\" class=\"size-full wp-image-23824\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/12\/Colorful-Linux-Terminal-Output.gif\" sizes=\"(max-width: 922px) 100vw, 922px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/12\/Colorful-Linux-Terminal-Output.gif 922w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/12\/Colorful-Linux-Terminal-Output-768x304.gif 768w\" alt=\"colorful Linux Terminal Output\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p>Besides you can alter the default speed, in the following command, we will use a relatively slow speed of\u00a0<strong>10<\/strong>steps per second:<\/p>\n<pre>$ ls -l | lolcat -as 10\r\n<\/pre>\n<p>You can use any command with\u00a0<strong>lolcat<\/strong>\u00a0display output in colorful fashion on Linux terminal, few commands say ps, date and cal as:<\/p>\n<pre>$ ps | lolcat\r\n$ date | lolcat\r\n$ cal | lolcat\r\n<\/pre>\n<p>In this article, we have looked at how to significantly reduce the speed of a command screen output and give it a rainbow coloring effect.<\/p>\n<p>As usual, you can address to us any questions or comments concerning this article via the feedback section below. Lastly, you can mention to us any useful Linux commands you have discovered there.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/add-colors-to-command-output-terminal-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will review a cool and simple way of giving a command screen output a rainbow colors and slowing down its output speed as well for one reason or the other. The\u00a0lolcat program\u00a0is used for the above purpose. It basically functions by concatenating files, or standard input, to standard output in a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/add-rainbow-colors-to-linux-command-output-in-slow-motion\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Add Rainbow Colors to Linux Command Output in Slow Motion&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13260","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13260"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13260\/revisions"}],"predecessor-version":[{"id":13261,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13260\/revisions\/13261"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}