In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of what the interesting and powerful commands in Linux are, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Linux interesting and powerful command article. Let's take a look at it.
Terminal screensaver
Is it possible that only graphical desktops can have interesting screensavers? Now, you can enjoy ASCII screensavers by installing termsaver, such as matrix, clock, Star Wars and two less secure not-safe-for-work (NSFW) screensavers. There are many more NSFW screensavers.
Termsaver can be downloaded and installed directly from Debian/Ubuntu 's package manager, and if you use another distribution that does not include the package, such as CentOS, you can download it from termsaver.brunobraga.net and follow the installation instructions.
Run termsaver-h to view a series of screensavers:
Randtxt displays word in random places on screenstarwars runs the asciimation Star Wars movieurlfetcher displays url contents with typing animationquotes4all displays recent quotes from quotes4all.netrssfeed displays rssfeed informationmatrix displays a matrix movie alike screensaverclock displays a digital clock on screenrfc randomly displays RFC contentsjokes4all displays recent jokes from jokes4all.net (NSFW) asciiartfarts displays ascii images from asciiartfarts.com (NSFW) programmer displays source code in typing animationsysmon displays a graphical system monitor
Photo 1: star Wars screensaver.
You can use the screensaver by running the command termsaver [screensaver name], such as termsaver matrix, and then press Ctrl+c to stop. You can also get information about a particular screensaver by running the termsaver [screensaver name]-h command. Figure 1 is from the startwars screensaver, which runs the ancient but beloved Asciimation Wars. I don't like NSFW screensavers that get resources online, but the good news is that because termsaver is some Python script file, you can easily use them to connect to any RSS resource you want.
Pv
The pv command is a very interesting gadget but very useful. Its purpose is to monitor the process of data replication, for example, when you run the rsync command or create a tar archive. When you run the pv command with no options, the default parameters are:
-p: process-t: time, to the current total elapsed time-e: estimated completion time, which is often inaccurate because pv usually does not know the size of the data to be moved-r: rate counter, or throughput-b: byte counter
A rsync transfer looks like this:
$rsync-av / home/carla/ / media/carla/backup/ | pvsending incremental file list [...] 103GiB 0:02:48 [615MiB/s] [
Create a tar archive, like the following example:
$tar-czf-/ file/path | (pv > backup.tgz) 885MiB 0:00:30 [28.6MiB/s] [
Pv can monitor progress, so it can also monitor the maximum activity of Web browsers, and surprisingly, it generates so much activity:
$pv-d 309558:/home/carla/.pki/nssdb/key4.db: 0 B 0:00:33 [0Bsychs] [] 78:/home/carla/.config/chromium/Default/Visited Links:256KiB 0:00:33 [0Barcs] []] 85:/home/carla/.con...romium/Default/data_reduction_proxy_leveldb/LOG:298 B 0:00:33 [0Barcs] []
On the Internet, I stumbled upon one of the most interesting ways to use pv: using pv to echo the input:
$echo "typing random stuff to pipe through pv" | pv-qL 8typing random stuff to pipe through pv
A normal echo command prints an entire line of content in an instant. After being piped to pv, the content can be displayed as if it were re-typed. I don't know if it has any practical value, but I like it very much. The-L option controls the speed of echo, that is, how many bytes per second.
Pv is a very old and interesting command, and over the years, it has had many options, including interesting formatting options, multiple output options, and transfer speed modifiers. You can view all the options through man pv.
/ usr/bin/calendar
You can learn a lot by browsing the / usr/bin directory and other command directories and reading the man manual. / usr/bin/calendar on Debian/Ubuntu is a variation of the BSD calendar, but it leaves out the lunar and solar calendars. It retains multiple calendars, including calendar.computer, calendar.discordian, calendar.music and calendar.lotr. On my system, the man manual lists the different calendars that exist in / usr/bin/calendar. The following example shows the next 60 days of the Lord of the Rings calendar:
$calendar-f / usr/share/calendar/calendar.lotr-A 60Apr 17 An unexpected partyApr 23 Crowning of King EllesarMay 19 Arwen leaves Lorian to wed King EllesarJun 11 Sauron attacks Osgilliath
These calendars are plain text files, so you can easily create your own calendars. The easiest way is to copy the format of the existing calendar file. You can view more detailed instructions for creating personal calendar files through the man calendar command.
Once again, it came to an end quickly. You can spend some time browsing your file system and digging for more interesting commands.
This is the end of the article on "what are the interesting and powerful commands in Linux?" Thank you for reading! I believe you all have a certain understanding of the knowledge of "what are the interesting and powerful commands in Linux". If you want to learn more, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.