Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Linux Command Line

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the Linux command line example analysis, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

1. Google

Let's start with a giant: Bing! Okay, it's just a joke. Actually, it's Google. Frankly, you don't need to use command-line tools to do Google searches at all. All you need is a simple command:

$xdg-open https://www.google.com/search?q="[query]"

It opens a web browser and goes to the appropriate search page. However, if you want to view search results from a terminal window instead of opening a web browser, then I recommend using cli-google. It's a super antique (last updated in 2009), but I like it. This is a simple and straightforward application that will faithfully do what it is supposed to do.

After installing cli-google, you can start searching with it, and its output is so colorful. You can also adjust the number of search results and the language you want, just type in the terminal:

$google

You can see all the options.

2. YouTube

There are so many things to put on the list about Google. I'll try to be brief and to the point, but I won't let it go. For many people, YouTube is their way to quickly find relevant content videos. To do this in the terminal, I love mps-youtube. This software allows you to search the terminal, download videos, create playlists, and view comments about videos. After installing mps-youtube, you can start it with the following command:

$mpsyt

Then, enter h to view the options. To see concise usage, you can do something like this:

/ [query]

Search for everything you want to know, and then enter the video number to listen to it, or enter:

I [video-number]

To see the relevant information, you can also enter:

D [video-number]

To download it. If you don't think it's fun to listen, here's something even more fun:

Set player mplayerset show_video True

Now, you can use mplayer to play the video in another window.

3. Wikipedia

Like Google, for Wikipedia, I like an old script that does a good job: cliWiki. After the installation, run it quickly and have a look:

$cliwiki

Then you can enter what you want to search for. If there is a direct match, the relevant page will be displayed in the terminal. Ha, the output is really long. I suggest you use the less command to see it. Of course, this is not the way to be effective, but your mother just wants to view the text related to keywords, and that's what you want.

4. Pirate Bay

Now, let's talk about dirty things. There are a lot of unexpected (maybe you don't think) tools online that can help you find seeds on the Pirate Bay under the command line. Among them, pirate-get is my *. It contains a large number of options, which you can find by using the following command:

$pirate-get-h

But keep it simple:

$pirate-get--color-c [category] [query]

The above command returns the results in a specific search category related to the content of the query, and the output results are also colored! Inside, the program will prompt you to enter the number of the result you want, and then you can download the seed from the flux. Simple and easy, limited to non-copyrighted materials!

5. Twitter

Twitter is a good search engine that caters to the trend. We have introduced its use in the article how to access Twitter from the command line, but I personally prefer TTYtter. The tool is so powerful that it should have its own place instead of just for simple search. But here, I just want to use it as a search engine. Once installed and configured, you can log in and search using the following command:

/ search [query]

The interface is a little rough visually, but you'll soon get used to it. Note that it can only be marked with ordinary text or hash.

Thank you for reading this article carefully. I hope the article "sample Analysis of the Linux Command Line" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report