mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-22 23:00:57 +08:00
55 lines
3.3 KiB
Markdown
55 lines
3.3 KiB
Markdown
|
[#]: collector: (lujun9972)
|
|||
|
[#]: translator: ( )
|
|||
|
[#]: reviewer: ( )
|
|||
|
[#]: publisher: ( )
|
|||
|
[#]: url: ( )
|
|||
|
[#]: subject: (Patch into The Matrix at the Linux command line)
|
|||
|
[#]: via: (https://opensource.com/article/18/12/linux-toy-cmatrix)
|
|||
|
[#]: author: (Jason Baker https://opensource.com/users/jason-baker)
|
|||
|
|
|||
|
Patch into The Matrix at the Linux command line
|
|||
|
======
|
|||
|
Recreate the classic look and feel of everyone's favorite 1990s sci-fi movie code scroller with cmatrix.
|
|||
|
![](https://opensource.com/sites/default/files/styles/image-full-size/public/uploads/linux-toy-cmatrix.png?itok=YlmbHVPr)
|
|||
|
|
|||
|
You've found your way to today's entry from the Linux command-line toys advent calendar. If this is your first visit to the series, you might be wondering what a command-line toy even is? It's anything that's an entertaining diversion at the terminal, be it a game, a fun utility, or a simple distraction.
|
|||
|
|
|||
|
Some of these are classics, and some are completely new (at least to me), but I hope all of you find something you enjoy in this series.
|
|||
|
|
|||
|
As we come to the close of another year, it's a good time for looking back, and looking forward. What will 2019 hold for you? What does it mean to be 2019?
|
|||
|
|
|||
|
I'm reminded that 2019 will mark the twentieth anniversary of one of my favorite science fiction movies from my teenage years, that at the time had me thinking a lot about what the future would hold: [The Matrix][1]. For a computer nerd kid like me, it was the ultimate story of a computer programmer rising up and becoming an action hero in a virtual universe by tapping into the power of his mind.
|
|||
|
|
|||
|
At the time, there was no movie that seemed more futuristic to me; both in the story itself, and in the mesmerizing special effects. Realizing that it was filmed over twenty years ago doesn't change that in my mind.
|
|||
|
|
|||
|
Bringing it back to our command-line toy for today, let's recreate the downward flowing code of the Matrix at our terminal with **cmatrix**. **cmatrix** was an easy install for me, packaged for Fedora, so installing it took simply:
|
|||
|
|
|||
|
```
|
|||
|
$ dnf install cmatrix
|
|||
|
```
|
|||
|
|
|||
|
Then, just type **cmatrix **at your terminal to run.
|
|||
|
![](https://opensource.com/sites/default/files/uploads/linux-toy-cmatrix-animated.gif)
|
|||
|
You can find the source code for **** **cmatrix** [on GitHub][2] under a GPL license.
|
|||
|
|
|||
|
Do you have a favorite command-line toy that you think I ought to include? The calendar for this series is mostly filled out but I've got a few spots left. Let me know in the comments below, and I'll check it out. If there's space, I'll try to include it. If not, but I get some good submissions, I'll do a round-up of honorable mentions at the end.
|
|||
|
|
|||
|
Check out yesterday's toy, [Winterize your Bash prompt in Linux][3], and check back tomorrow for another!
|
|||
|
|
|||
|
--------------------------------------------------------------------------------
|
|||
|
|
|||
|
via: https://opensource.com/article/18/12/linux-toy-cmatrix
|
|||
|
|
|||
|
作者:[Jason Baker][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://opensource.com/users/jason-baker
|
|||
|
[b]: https://github.com/lujun9972
|
|||
|
[1]: https://en.wikipedia.org/wiki/The_Matrix
|
|||
|
[2]: https://github.com/abishekvashok/cmatrix
|
|||
|
[3]: https://opensource.com/article/18/12/linux-toy-bash-prompt
|