能从远程获得乐趣的 Linux 命令
终端

> 
> 使用这些工具从远程了解天气、阅读资料等。
> 
> 
> 


![](/data/attachment/album/201901/12/153112se1b7tf780eb1011.png)


我们即将结束为期 24 天的 Linux 命令行玩具日历。希望你有一直在看，如果没有，请回到[开始](https://opensource.com/article/18/12/linux-toy-boxes)，从头看过来。你会发现 Linux 终端有很多游戏、消遣和奇怪之处。


虽然你之前可能已经看过我们日历中的一些玩具，但我们希望每个人都遇见一个新事物。


今天的玩具（实际是玩具集合）有点不同。到目前为止，我主要是想把重点放在那些独立的玩具上，并且完全可在开源许可下使用。但是我从读者那里得到了一些很好的建议，利用开源工具远程访问一些开源或者不开源的东西。今天，我将介绍其中的一些。


第一个是经典之作：使用 Telnet 观看星球大战的 ASCII 演绎版本。你的系统可能已经安装了 Telnet，因此你只需运行：



```
$ telnet towel.blinkenlights.nl
```

我第一次看到它是十年之前，因此我对于它还存在有点惊奇。如果你还没看过，请留出一点时间看一下。你不会后悔的。


![](/data/attachment/album/201901/12/153112yugbh5qterctcu5u.png)


接下来，Opensource.com 的撰稿人 [Manuel Dewald](https://opensource.com/users/ntlx) 提出了一种从终端获取当地天气的方法。它很简单，你只需安装 `curl`（或者，`wget`）。



```
$ curl wttr.in
```

![](/data/attachment/album/201901/12/153116jalcacu184z1r8a8.png)


最后，在假期中虽然你可以从[命令行 Web 浏览器](https://opensource.com/article/16/12/web-browsers-linux-command-line)浏览你喜欢的网站（包括 Opensource.com），但有一些我最喜欢的网站可以通过专用客户端更轻松地浏览。其中两个是 Reddit 和 Hacker News，有人推荐给我一些它们的客户端，你可能也想尝试，它们都使用开源许可。我尝试过 [haxor-news](https://github.com/donnemartin/haxor-news) （Hacker News） 和 [rtv](https://github.com/michael-lazar/rtv) （Reddit），它们都还不错。


你有特别喜欢的命令行小玩具需要我介绍的吗？提交今年的建议有点晚了，但我们仍然希望在新的一年里有一些很酷的命令行玩具。请在下面的评论中告诉我，我会查看的。让我知道你对今天的玩具有何看法。


一定要看看昨天的玩具，[在 Linux 终端收看 Youtube 视频](https://opensource.com/users/ntlx)，明天还要再来！




---


via: <https://opensource.com/article/18/12/linux-toy-remote>


作者：[Jason Baker](https://opensource.com/users/jason-baker) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
We're almost to the end of our 24-day-long Linux command-line toys advent calendar. Hopefully, you've been following along, but if not, start back at [the beginning](https://opensource.com/article/18/12/linux-toy-boxes) and work your way through. You'll find plenty of games, diversions, and oddities for your Linux terminal.

And while you may have seen some toys from our calendar before, we hope there’s at least one new thing for everyone.

Today's toy (or actually, collection of toys) is a little different. So far I've mostly tried to focus on toys that are self-contained, and completely usable under an open source license. But I've gotten some great suggestions from readers which utilize an open source tool to access something remotely that may or may not be open source. Today, I'll round up a few of those.

The first one is a total classic: use Telnet to watch an ASCII-rendition of Star Wars. Chances are that Telnet is already installed on your system, so all you'll need to do is run:

`$ telnet towel.blinkenlights.nl`


I feel like I first saw this one over a decade ago, so it's a bit amazing to me that it's still alive and online. If you've never watched it, set aside some time and go check it out. You won't regret it.

![Linux toy: Star Wars Linux toy: Star Wars](https://opensource.com/sites/default/files/uploads/linux-toy-star-wars.png)

Next, Opensource.com contributor [Manuel Dewald ](https://opensource.com/users/ntlx)suggested a way to fetch your local weather from the terminal. It's easy, and only requires that you have **curl **(or, well,** ****wget**) installed.

`$ curl wttr.in`



![Linux toy: weather Linux toy: weather](https://opensource.com/sites/default/files/uploads/linux-toy-weather.png)

Finally, while you can spend the holidays reading your favorite sites (including Opensource.com) from your favorite [command-line web browser](https://opensource.com/article/16/12/web-browsers-linux-command-line), there are a few of my favorite sites that are more easily browsed with a dedicated client. Two of these include Reddit and Hacker News, for which there are clients that have been recommended to me that you may wish to try, mostly available under open source licenses. I've poked around with [haxor-news](https://github.com/donnemartin/haxor-news) (Hacker News) and [rtv](https://github.com/michael-lazar/rtv) (Reddit), and both seem pretty cool.

Do you have a favorite command-line toy that we should have included? It's a little late to submit a suggestion for this year, but we'd still love to feature some cool command-line toys in the new year. Let me know in the comments below, and I'll check it out. And let me know what you thought of today's amusement.

Be sure to check out yesterday's toy, [Watch YouTube videos at the Linux terminal](https://opensource.com/article/18/12/linux-toy-youtube-dl), and come back tomorrow for another!

## 1 Comment