Linux Command sharing! (Dry goods), linux Command sharing dry goods
Terminal Screensaver
Is there an interesting Screen Saver only for graphic desktops? Now, you can install termsaver to enjoy ASCII screensaver, such as matrix (LCTT: hacker screensaver in the movie matrix), clock, Star Wars, and two unsecure not-safe-for-work (NSFW) screensaver. There are many NSFW screensaver instances.
Termsaver can be downloaded and installed directly from the package manager of Debian/Ubuntu. If you use another release version that does not contain the package, such as CentOS, you can download it from termsaver.brunobraga.net, then follow the installation instructions.
Run termsaver-h to view a series of ScreenSaver:
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 rss feed 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
You can use screen saver by running the termsaver [Screen Saver name] command, such as termsaver matrix, and then press Ctrl + c to stop. You can also run the termsaver [Screen Saver name]-h command to obtain information about a specific screen saver. Image 1 is from startwars screensaver, which runs the ancient but popular Asciimation Wars.
I don't like NSFW screensaver running resources online, but the good news is that termsaver is a Python script file, you can easily use them to connect to any RSS resource you want.
Pv
The pv command is a very interesting tool, but it is very practical. It is used to monitor data replication, for example, when you run the rsync command or create a tar archive. When you run the pv command without any options, the default parameter is:
-P: Process-t: time, to the current total running 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
An rsync transmission looks like this:
$ rsync -av /home/carla/ /media/carla/backup/ | pvsending incremental file list[...]103GiB 0:02:48 [ 615MiB/s] [ < =>
Create a tar archive, as shown in the following example:
$ tar -czf - /file/path| (pv > backup.tgz)885MiB 0:00:30 [28.6MiB/s] [ < =>
Pv can monitor the process, so it can also monitor the maximum activity of Web browsers. Surprisingly, it produces so many activities:
$ pv -d 309558:/home/carla/.pki/nssdb/key4.db: 0 B 0:00:33[ 0 B/s] [< => ]78:/home/carla/.config/chromium/Default/Visited Links:256KiB 0:00:33 [ 0 B/s] [< => ]]85:/home/carla/.con...romium/Default/data_reduction_proxy_leveldb/LOG:298 B 0:00:33 [ 0 B/s] [< => ]
On the Internet, I accidentally found that the most interesting way to use pv is to use pv to display the input content back and forth:
$ echo "typing random stuff to pipe through pv" | pv -qL 8typing random stuff to pipe through pv
The normal echo command instantly prints a whole line of content. After being passed through the MPs queue to pv, the content can be displayed as if it were re-input. I don't know whether it has practical value, but I like it very much. -L option controls the echo speed, that is, the number of bytes per second.
Pv is a very old and interesting command. For so many years, it has many options, including interesting formatting options, multiple output options, and transmission speed modifier. You can use man pv to view all options.
/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 variant of BSD calendar, but it misses the moon calendar and the Sun calendar. It retains multiple calendars, including calendar. computer, calendar. discordian, calendar. music, and calendar. lotr. On my system, the man Manual lists different calendars in/usr/bin/calendar. The following example shows the calendar of the Lord of the Rings for the next 60 days:
$ 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 calendar. The simplest way is to copy the existing calendar file format. You can use the man calendar command to view more detailed instructions on creating a personal calendar file.