diff --git a/sources/tech/20200417 12 Linux Commands to Have Some Fun in the Terminal.md b/sources/tech/20200417 12 Linux Commands to Have Some Fun in the Terminal.md deleted file mode 100644 index 81c05aa211..0000000000 --- a/sources/tech/20200417 12 Linux Commands to Have Some Fun in the Terminal.md +++ /dev/null @@ -1,343 +0,0 @@ -[#]: collector: (lujun9972) -[#]: translator: (Zioyi) -[#]: reviewer: ( ) -[#]: publisher: ( ) -[#]: url: ( ) -[#]: subject: (12 Linux Commands to Have Some Fun in the Terminal) -[#]: via: (https://itsfoss.com/funny-linux-commands/) -[#]: author: (Community https://itsfoss.com/author/itsfoss/) - -12 Linux Commands to Have Some Fun in the Terminal -====== - -_**So, you think Linux terminal is all work and no fun? These funny Linux commands will prove you wrong.**_ - -The Linux terminal is the place to get serious work done. We have plenty of useful [linux command tips and tricks][1] to help you with that. - -But, did you know that you can have a lot of fun using the terminal? Well, if you did not, then you are not alone. Most Linux users see the terminal as an interface that is designed and built for system management and development tasks. - -However, you will be surprised to know that there are tons of [terminal based games][2] and [ASCII games][3] that you can play in the terminal. - -And, in this article, I’m going to explore some interesting, some funny and some ridiculous commands that you can type into the terminal on Linux and have fun! - -### Have some fun in Linux terminal with these commands - -![][4] - -You’ll find a lot of these commands ridiculous or useless but some of them could actually be put to some good use. - -I have added installation instructions for Ubuntu/Debian. If you are using Ubuntu-based distribution, please make sure to [enable universe repository][5] as most of these commands are not in the main repository. - -If you are using Arch, Fedora, SUSE, Solus or any other non-Ubuntu distributions, please use your distribution’s package manager to install these funny Linux commands. - -#### 1\. Run a train in the terminal - -Let’s take a ride in the locomotive and begin our auspicious journey. And I mean it literally! - -The sl command allows you to run a train in your terminal. - -![][6] - -Here’s how to install the command: - -``` -sudo apt install sl -``` - -Once done, you can simply type in the following in the terminal to get started: - -``` -sl -``` - -Impressive, isn’t it? But, hold on. We are not done yet! Apparently, you can fly your locomotive. Just add the option -F, Mr. Potter: - -``` -sl -F -``` - -****This should make the locomotive get wings to fly off from the terminal window! - -#### 2\. Add the Matrix effect to your Linux terminal - -Remember the iconic sci-fi movie [The Matrix][7]? The green text falling down on the terminal became an identity of Matrix. - -You can have this Matrix digital rain on your Linux box as well! You just need to install **cmatrix** and type it in the terminal. - -![][8] - -Installing cmatrix on Debian/Ubuntu Linux: - -``` -sudo apt install cmatrix -``` - -Now, all you have to do is type the following to get the matrix screen on terminal: - -``` -cmatrix -``` - -Press Ctrl+C to stop it, Mr. Anderson. - -**Recommended Read:** - -![][9] - -#### [Watch Star Wars In Linux Terminal via Telnet][10] - -Watch Star Wars in ASCII art Linux terminal. - -#### 3\. Let there be fire - -Keep your fire extinguisher handy because now you are going to start a fire in your terminal! - -![][11] - -To get it installed, here’s what you have to type: - -``` -sudo apt install libaa-bin -``` - -Once done start a fire in your terminal by entering: - -``` -aafire -``` - -Press Ctrl+C to stop it. - -#### 4\. Fortune ~~Cookie~~ Command - -Want to know your fortune but there are no fortune cookies around you? - -Not to worry, you just need to type “fortune” on your terminal and press enter. The terminal will display a random sentence just like you usually get in fortune cookies. - -![][12] - -Install it with: - -``` -sudo apt install fortune -``` - -Once done, simply type in the command below to know your fortune: - -``` -fortune -``` - -Now this is one of the commands here that you could actually use. You can use it as message of the day so that in a multi-user environment, all the users will see a random fortune cookie when they login. - -You may also add it to your bashrc file so that it shows you a random message as soon as you log in to the terminal. - -#### 5\. Pet lover? This is for you - -Oneko is a little fun command that will change your regular cursor into a mouse and creates a curious little cat who will chase your cursor once you move it. It’s not limited to just the terminal. You can keep on working while the cat chases the cursor. - -Now, that’s something fun to do specially if you have kids at home. - -![][13] - -Install Oneko with this command: - -``` -sudo apt install oneko -``` - -Run it with this command: - -``` -oneko -``` - -In case you want a dog instead of a cat, type: - -``` -oneko -dog -``` - -There are a few more types of cats available. You can get that information by using oneko –help. To stop it, use Ctrl+C. - -#### 6\. Little brother is watching you - -Xeyes is a tiny gui program that let the user draws a pair of ever watching eyes! It will follow your mouse cursor constantly. Run the command and see it yourself! - -![][14] - -You can install it using this command: - -``` -sudo apt install xeyes -``` - -And then use it with this: - -``` -xeyes -``` - -Press Ctrl+C to stop it. - -#### Let the terminal speak for you - -To try out this command, make sure you have turned on your speakers. [eSpeak][15] is a fun command that gives your terminal a voice. Yes, you heard that right. - -Install the package first: - -``` -sudo apt install espeak -``` - -Next, you need to simply type in the command along with a text that you want to listen as audio: - -``` -espeak "Type what your computer says" -``` - -Whatever you place in the double quotes, your computer is obligated to say! It’s like [echo command in Linux][16]. But instead of printing, it speaks. - -#### Toilet (but it has nothing to do with a washroom) - -This sounds weird, yes. But, it’s just a command that transforms a text into large ASCII characters. - -![][17] - -Install toilet with this command: - -``` -sudo apt install toilet -``` - -Once done, you just need to type in: - -``` -toilet sample text you want -``` - -I don’t know why this little program is called toilet. - -#### What does the ~~fox~~ cow say? - -Cowsay is a command that displays a cow using ASCII characters in the terminal. And by using this command you can instruct the cow to say anything you want. - -Not to be confused with any audio – it will just display a text (like you usually see in a comic book). - -![Cowsay Cowthink][18] - -Install ****cowsay: - -``` -sudo apt install cowsay -``` - -Once you have it installed, you just need to type in: - -``` -cowsay "your text" -``` - -Whatever you place in the double quotes, your cow is obligated to say! I have seen a few sysadmins using it to display the message of the day. Maybe you can do the same. You may even combine it with fortune command. - -#### Banner Command - -The banner command works just like the toilet command but it is limited to print only 10 characters at most. - -![][19] - -You can install banner command like this: - -``` -sudo apt install sysvbanner -``` - -Then use it in the following way: - -``` -banner "Welcome" -``` - -Replace content in the double quotes and you shall have your desired text displayed. - -#### Yes command - -![][20] - -The “yes” command helps you to loop an automated response until you terminate the command. This command will print the exact same thing indefinitely. If you want to produce huge amounts of junk text fast, then this command will work like a charm. - -You may also use it to provide a yes to a command (if it prompts for it). For example, the apt upgrade command asks for your confirmation, you can use it like this: - -``` -yes | sudo apt upgrade -``` - -You don’t need to install any package for it. Yes command is already available. - -Terminate the yes command loop, simply press **CTRL + C**. - -#### Get a new identity, well, sort of - -Want to generate a random fake identity? I give you the command “rig”. Once you place this in the terminal, it will generate a fake identity. - -![][21] - -Install rig with this command: - -``` -sudo apt install rig -``` - -Then simply type this: - -``` -rig -``` - -It may be used in scripts or web-apps that displays random information but I haven’t done anything of that sort on my own. - -**Wrapping Up** - -I hope you liked this list of fun Linux commands. Which command do you like the most here? Do you know some other such amusing commands? Do share it with us in the comment section. - -![][22] - -### Srimanta Koley - -A passionate writer, a distrohopper and an open source enthusiast, Srimanta is extremely fond of everything related to technology. He loves to read books and has an unhealthy addiction to the 90s! - --------------------------------------------------------------------------------- - -via: https://itsfoss.com/funny-linux-commands/ - -作者:[Community][a] -选题:[lujun9972][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://itsfoss.com/author/itsfoss/ -[b]: https://github.com/lujun9972 -[1]: https://itsfoss.com/linux-command-tricks/ -[2]: https://itsfoss.com/best-command-line-games-linux/ -[3]: https://itsfoss.com/best-ascii-games/ -[4]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/fun-linux-commands.png?ssl=1 -[5]: https://itsfoss.com/ubuntu-repositories/ -[6]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/sl-command.jpg?ssl=1 -[7]: https://en.wikipedia.org/wiki/The_Matrix -[8]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/matrix-screen-command.png?ssl=1 -[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2015/12/Star-Wars-Linux-Terminal-2.png?fit=732%2C462&ssl=1 -[10]: https://itsfoss.com/star-wars-linux/ -[11]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/fire-command.png?ssl=1 -[12]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/fortune-command.jpg?ssl=1 -[13]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/oneko-command.jpg?ssl=1 -[14]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/xeyes-command.jpg?ssl=1 -[15]: https://itsfoss.com/espeak-text-speech-linux/ -[16]: https://linuxhandbook.com/echo-command/ -[17]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/toilet-command.jpg?ssl=1 -[18]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/cowsay-cowthink.jpg?ssl=1 -[19]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/banner-command.jpg?ssl=1 -[20]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/yes-yourtext.jpg?ssl=1 -[21]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/rig-command.jpg?ssl=1 -[22]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/03/srimanta.jpg?ssl=1 diff --git a/translated/tech/20200417 12 Linux Commands to Have Some Fun in the Terminal.md b/translated/tech/20200417 12 Linux Commands to Have Some Fun in the Terminal.md new file mode 100644 index 0000000000..13538cc7cf --- /dev/null +++ b/translated/tech/20200417 12 Linux Commands to Have Some Fun in the Terminal.md @@ -0,0 +1,343 @@ +[#]: collector: (lujun9972) +[#]: translator: (Zioyi) +[#]: reviewer: ( ) +[#]: publisher: ( ) +[#]: url: ( ) +[#]: subject: (12 Linux Commands to Have Some Fun in the Terminal) +[#]: via: (https://itsfoss.com/funny-linux-commands/) +[#]: author: (Community https://itsfoss.com/author/itsfoss/) + +12个有趣的Linux终端命令 +====== + +_**你觉得Linux终端里只有无趣的工作吗?那你一定不知道下面这些有趣的Linux命令吧。**_ + +Linux终端是用来完成复杂的工作的,我们有很多有用的[linux命令奇技淫巧][1]来帮助你。 + +但是,你知道你还可以用终端来做很多有趣的是吗?如果你不知道,没关系,大多数Linux用户也都只把终端视为一个用来管理系统和执行任务的交互接口。 + +然而,如果你知道这里有些你可以在终端玩的[基于终端的游戏][2]和[ASCII码游戏][3],你一定会大吃一惊。 + +在这篇文章中,我将会探索一些有趣的、可笑的、荒谬的命令来让你可以在终端中找点乐子! + +### 用这些命令在Linux终端中找点乐子 + +![][4] + +你可能会觉得这些命令荒谬或没用,但是有一些还是可以被好好利用的。 + +我已经添加了Ubuntu/Debian的安装组件,如果你使用基于Ubuntu的发行版,请确保[启用通用仓库][5]因为大多数命令不在主仓库中。 + +如果你使用Arch、Fedora、SUSE、Solus或者其他非Ubuntu的发行版,请使用你的发行版包管理工具去安装这些有趣的Linux命令。 + +#### 1\. 在终端开一辆火车 + +让我们坐上火车,来一场说走就走的旅行的,没错,就是字面意思! + +sl命令可以让你在终端运行一辆火车。 + +![][6] + +安装方法: + +``` +sudo apt install sl +``` + +完成后,你只要在终端输入下面的命令就可以开始 + +``` +sl +``` + +很精彩,对吧?但等等,我们还没结束!你还可以让你的火车飞起来,只要加上参数-F,Magic: + +``` +sl -F +``` + +**这样会让火车长出翅膀飞出终端窗口!** + +#### 2\. 给你的Linux终端加上矩阵效果 + +还记得科幻电影[黑客帝国][7]吗?掉落在终端的绿字变成一个矩阵符号。 + +你也可以在你的Linux电脑里有这样的矩阵数字雨!你只需要安装**cmatric**然后在终端输入它就行。 + +![][8] + +在Debian/Ubuntu Linux上安装cmatrix: + +``` +sudo apt install cmatrix +``` + +现在,你要做的就是输入下面的命令,在终端就会有矩阵屏幕了: + +``` +cmatrix +``` + +按住Ctrl+C来停止它,黑客先生。 + +**推荐阅读:** + +![][9] + +#### [通过Telnet在Linux终端看星际大战][10] + +在Linux终端看星际大战。 + +#### 3\. 让这里着火 + +拿好灭火器因为接下来你要在你的终端里点火了! + +![][11] + +想安装它,你要输入: + +``` +sudo apt install libaa-bin +``` + +完成后,你输入下面的命令,你的终端就会燃起一团火焰: + +``` +aafire +``` + +按住Ctril+C来停止它。 + +#### 4\. 幸运饼干命令 + +想知道你的运气怎样但身边没有幸运饼干? + +别担心,你只需在终端打出“fortune”然后按下回车。终端将会显示出一个你的幸运语就像你从幸运饼干里得到的一样。 + +![][12] + +安装它: + +``` +sudo apt install fortune +``` + +完成后,只要在命令行打出下面的内容,你就会知道你的运气怎样: + +``` +fortune +``` + +这是一个你可以实际去使用的命令。你可以用它作为每日消息,这样在多用户环境下,每个用户登录后都会得到一个“幸运饼干”。 + +你也可以把它添加到bashrc文件,这样当你登进终端你就会看到了。 + +#### 5\. 宠物爱好者?这是给你准备的 + +Oneko是一个有趣的命令,可以把你的光标变成一只老鼠,然后创造一只猫,一旦你移动光标,就会来追你。这不仅局限于终端。当猫追逐光标时,你可以继续工作。 + +如果你家里有孩子这一定很有趣。 + +![][13] + +用下面的命令安装Oneko + +``` +sudo apt install oneko +``` + +用下面的命令运行它: + +``` +oneko +``` + +如果你不喜欢猫,喜欢狗,输入: + +``` +oneko -dog +``` + +这里有很多种小宠物,你可以用oneko -help获取信息。用Ctrl+C终止它。 + +#### 6\. 有个小兄弟在看着你 + +Xeyes是一个很小的GUI程序,它可以绘制出一双眼睛一直盯着你!它会不断跟随您的鼠标光标,运行命令自己看看! + +![][14] + +你可以用下面命令安装: + +``` +sudo apt install xeyes +``` + +然后这样用它: + +``` +xeyes +``` + +按住Ctrl+C终止它。 + +#### 7\. Let the terminal speak for you +#### 7\. 让终端帮你讲话 + +打开你的扬声器,你来试试这个命令,[eSpeak][15]是一个有趣的命令,它可以让你的终端说话。是的,你没听错。 + +先安装这个包: + +``` +sudo apt install espeak +``` + +接下来,你只需要输入在命令行中输入你想听到的话: + +``` +espeak "Type what your computer says" +``` + +无论你在双引号里面填什么,你的电脑都会复述出来!它就像[在Linux中的echo命令][16],但不是打印出来,而是说出来。 + +#### 8\. 卫生间(但它不能洗衣服) + +这听起来有点奇怪,是的。但是,这只是一个命令,用来将文本转换成大的ASCII字符。 + +![][17] + +用这个命令安装toilet: + +``` +sudo apt install toilet +``` + +完成后,你只需输入: + +``` +toilet sample text you want +``` + +我也不知道为啥这个小程序叫卫生间。 + +#### 9\. 那个牛说什么? + +Cowsay是一个在终端中用ASCII字符展示出一头牛的命令。通过这个命令,你可以控制牛说出你想说的话。 + +别纠结声音,它只展示文本(就是你看漫画书一样)。 + +![Cowsay Cowthink][18] + +安装**cowsay**: + +``` +sudo apt install cowsay +``` + +安装完成后,你只要输入: + +``` +cowsay "your text" +``` + +无论你在双引号里填什么,你的牛都会说!我看到一些系统管理员用它来展示每天的消息。你也可以这样,你甚至可以把它和fortune命令结合。 + +#### 10\. Banner命令 + +banner命令与toilet命令相似,但它限制最多只能打印10个字符。 + +![][19] + +你可以这样安装banner命令: + +``` +sudo apt install sysvbanner +``` + +然后这样运行: + +``` +banner "Welcome" +``` + +替换双引号里的内容,你将会得到你想要的展示内容。 + +#### 11\. Yes命令 + +![][20] + +yes命令帮助你在循环中自动响应直到终止命令。这个命令将会一直打印相同的内容。如果你想快速生成大量垃圾文本,那么此命令将像超级按钮一样工作。 + +你也可以使用它为命令提供“yes”(如果提示)。例如,apt upgrade命令会要求你确认,你可以像这样使用它: + +``` +yes | sudo apt upgrade +``` + +你不需要安装任何包,Yes命令已经存在了。 + +想要终止yes命令循环,只需按住**CTRL+C**。 + +#### 12\. 得到一个新的身份 + +要生成一个随机的假身份吗?我推荐你用rig命令。你在终端运行它,就会生成一个假的身份。 + +![][21] + +用这个命令安装rig: + +``` +sudo apt install rig +``` + +只需像这样输入: + +``` +rig +``` + +它可能被用在脚本或者web应用中展示随机信息,但我自己还没做过什么。 + +**结尾** + +我希望你会喜欢这个有趣的Linux命令列表。你最喜欢哪个命令呢?你还知道其他有趣的命令吗?请在评论部分与我们分享。 + +![][22] + +### Srimanta Koley + +Srimanta是一位热情的作家、发行者、开源爱好者,非常喜欢与技术相关的所有内容。他喜欢读书,特别是90年的书! +-------------------------------------------------------------------------------- + +via: https://itsfoss.com/funny-linux-commands/ + +作者:[Community][a] +选题:[lujun9972][b] +译者:[Zioyi](https://github.com/Zioyi) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://itsfoss.com/author/itsfoss/ +[b]: https://github.com/lujun9972 +[1]: https://itsfoss.com/linux-command-tricks/ +[2]: https://itsfoss.com/best-command-line-games-linux/ +[3]: https://itsfoss.com/best-ascii-games/ +[4]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/fun-linux-commands.png?ssl=1 +[5]: https://itsfoss.com/ubuntu-repositories/ +[6]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/sl-command.jpg?ssl=1 +[7]: https://en.wikipedia.org/wiki/The_Matrix +[8]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/matrix-screen-command.png?ssl=1 +[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2015/12/Star-Wars-Linux-Terminal-2.png?fit=732%2C462&ssl=1 +[10]: https://itsfoss.com/star-wars-linux/ +[11]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/fire-command.png?ssl=1 +[12]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/fortune-command.jpg?ssl=1 +[13]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/oneko-command.jpg?ssl=1 +[14]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/xeyes-command.jpg?ssl=1 +[15]: https://itsfoss.com/espeak-text-speech-linux/ +[16]: https://linuxhandbook.com/echo-command/ +[17]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/04/toilet-command.jpg?ssl=1 +[18]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/cowsay-cowthink.jpg?ssl=1 +[19]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/banner-command.jpg?ssl=1 +[20]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/04/yes-yourtext.jpg?ssl=1 +[21]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/04/rig-command.jpg?ssl=1 +[22]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/03/srimanta.jpg?ssl=1