{"id":2630,"date":"2018-11-05T16:37:01","date_gmt":"2018-11-05T16:37:01","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=2630"},"modified":"2018-11-07T14:35:45","modified_gmt":"2018-11-07T14:35:45","slug":"17-fun-linux-commands-to-run-in-the-terminal","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/05\/17-fun-linux-commands-to-run-in-the-terminal\/","title":{"rendered":"17 Fun Linux Commands to Run in the Terminal"},"content":{"rendered":"<p>The terminal is a very powerful tool, and it\u2019s probably the most interesting part in Unix. Among the plethora of useful commands and scripts you can use, some seem less practical, if not completely useless. Here are some Bash commands that are fun, and some of them are useful as well.<\/p>\n<p>Let\u2019s check them out.<\/p>\n<h2>1. Cal<\/h2>\n<p>Few people know this, but any Unix system comes with a built-in calendar. To access it, you can simply type:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-cal.png\" alt=\"linux-fun-commands-cal\" \/><\/p>\n<p>This will display the current month. However, you can select the precise year, and even the month, that you want as an argument. And to be fully useless, the option -j displays Julian days (the number of days from January 1). To sum up:<\/p>\n<h2>2. sl<\/h2>\n<p>This one stands for \u201cSteam Locomotive\u201d and is often typed in error (as it is the opposite of ls). Judging how boring visuals are on the terminal, it is cool to periodically see a locomotive on your terminal, especially when you did not mean for it.<\/p>\n<p>First, install sl with this command typed in your terminal:<\/p>\n<p>Then type the command:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-sl-bash-command.png\" alt=\"linux-sl-bash-command\" \/><\/p>\n<h2>3. yes<\/h2>\n<p>A very peculiar command with only one ability: repeating a string until its process is killed. This command displays a string for an infinity until the command is killed. Just type:<\/p>\n<p>For example, yes I did it.<\/p>\n<p>Don\u2019t forget to press Ctrl + C to stop it, or it will run forever.<\/p>\n<p>While it may seems useless, the yes command is very handy when you are running scripts that wait for prompts that you need to automate. For example:<\/p>\n<p>will give a \u201cy\u201d when a prompt asks for a \u201cy\/n\u201d answer.<\/p>\n<h2>4. rev<\/h2>\n<p>This command is for reversing any input (as its name suggests). When I say reverse, it means that if the input is \u201cLinux,\u201d the output will be \u201cxuniL\u201d It\u2019s pretty strange, I know.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-rev.png\" alt=\"linux-fun-commands-rev\" \/><\/p>\n<p>Enter an interactive mode and can quit by using the shortcut Ctrl + C. But rev can also work to reverse an entire file with:<\/p>\n<h2>5. aafire<\/h2>\n<p>Ever wondered what fire would look like on the black interface of the terminal? This can be achieved with the aafire command.<\/p>\n<p>The first step is to install aafire with the following code on your terminal:<\/p>\n<p>sudo apt install libaa-bin<\/p>\n<p>Once it has been installed, on your terminal type:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-aafire-bash-command.png\" alt=\"linux-aafire-bash-command\" \/><\/p>\n<h2>6. espeak<\/h2>\n<p>If you are tired of hearing the everyday voices around you, this command could be your escape. You can listen to your computer talk by installing espeak using this command:<\/p>\n<p>After, run espeak using the command:<\/p>\n<p>espeak &#8220;Type what your computer says&#8221;<\/p>\n<p>Note that whatever you type within the double quotation marks is what your computer will say.<\/p>\n<h2>7. figlet<\/h2>\n<p>Figlet is a command for those who love to write in ASCII art. It greatly simplifies this task as it automatically transforms any given string. It comes with a bunch of fonts by default at \u201c\/usr\/share\/figlet\/fonts\/,\u201d and you can of course add your own.<\/p>\n<p>figlet [-f path to the font] [string]<\/p>\n<p>For example:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-figlet-bash-command.png\" alt=\"linux-figlet-bash-command\" \/><\/p>\n<h2>8. Banner<\/h2>\n<p>Similar to figlet, display the text in a big banner format. Install it with the command:<\/p>\n<p>and use the syntax:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-banner.png\" alt=\"linux-fun-commands-banner\" \/><\/p>\n<h2>9. cowsay<\/h2>\n<p>This script basically displays a cow character using ascii symbols the arguments passed to it. First, install cowsay with this script:<\/p>\n<p>Then type in the terminal:<\/p>\n<p>Note: replace \u201cyourtext\u201d with whatever text you need to be displayed by the cow.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-cowsay.png\" alt=\"linux-fun-commands-cowsay\" \/><\/p>\n<p>If you prefer a colorful pony to a cow, you can install the ponysay package and its respective command:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-ponysay.png\" alt=\"linux-fun-commands-ponysay\" \/><\/p>\n<h2>10. Cowthink<\/h2>\n<p>This command is similar to cowsay, with the only difference being the output is displayed as a thought. To use this command, just type:<\/p>\n<p>cowthink &lt;whatever you need to be thought&gt;<\/p>\n<p>For example:<\/p>\n<p>cowthink Hmm, I didn&#8217;t know that<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-cowthink-bash-command.png\" alt=\"linux-cowthink-bash-command\" \/><\/p>\n<h2>11. fortune<\/h2>\n<p>fortune displays a random sentence in the same spirit as fortune cookies. It is not always installed by default, so you may want to add it. In Ubuntu:<\/p>\n<p>It comes with a very handy option: -s for short, which will limit it to fortunes composed of one sentence or less.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-fortune.png\" alt=\"linux-fun-commands-fortune\" \/><\/p>\n<h2>12. Oneko<\/h2>\n<p>This command adds some spice to your terminal by adding a cat to your screen which will chase after your (mouse) cursor. Install it by running this script:<\/p>\n<p>Type oneko to display the cat.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-oneko.png\" alt=\"linux-fun-commands-oneko\" \/><\/p>\n<h2>13. Dog<\/h2>\n<p>There is a cat command, and \u201cdog\u201d is an alternative to \u201ccat.\u201d (See the humor?) It uses the same syntax to display a text stream into the console. You will probably have to install it, as it is not a command offered by default, but when you do, take a look at the manual page.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2012\/05\/10_more_funny_commands-dog.jpg\" alt=\"linux fun commands-dog\" \/><\/p>\n<h2>14. cmatrix<\/h2>\n<p>If you have seen the Hollywood movie Matrix, then you will relate easily to this command. Install cmatrix using the script:<\/p>\n<p>Run it by typing cmatrix in your terminal.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-cmatrix.png\" alt=\"linux-fun-commands-cmatrix\" \/><\/p>\n<h2>15. time cat<\/h2>\n<p>This is actually two commands time and cat used together. You can use this as a built-in timer. It will run in the background until you stop it and will then report the time elapsed between the start and the end of its process. To launch it, just type:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-time-cat.png\" alt=\"linux-fun-commands-time-cat\" \/><\/p>\n<h2>16. factor<\/h2>\n<p>It\u2019s time to do some Math. Let\u2019s do an easy one with the command factor which can break down a given number into prime factors:<\/p>\n<p>factor [number to decompose]<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-factor.png\" alt=\"linux-fun-commands-factor\" \/><\/p>\n<h2>17. w<\/h2>\n<p>You can say whatever you want about \u201cw,\u201d but it is to my knowledge the shortest command you can find by default on your machine. Therefore, it deserves to be in our list just for that. \u201cw\u201d allows you to see information about current users, like their name, login time, etc.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/linux-fun-commands-w.png\" alt=\"linux-fun-commands-w\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>We, of course, know how important commands are, especially in a Linux terminal, but once in a while it is nice to take a break and just amuse yourself with these fun commands.<\/p>\n<p>Is this article useful?<\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=262440\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The terminal is a very powerful tool, and it\u2019s probably the most interesting part in Unix. Among the plethora of useful commands and scripts you can use, some seem less practical, if not completely useless. Here are some Bash commands that are fun, and some of them are useful as well. Let\u2019s check them out. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/05\/17-fun-linux-commands-to-run-in-the-terminal\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;17 Fun Linux Commands to Run in the Terminal&#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-2630","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\/2630","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=2630"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2630\/revisions"}],"predecessor-version":[{"id":2857,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2630\/revisions\/2857"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=2630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=2630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=2630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}