#cli

tobias@social.diekershoff.de

I'm in need of a little Nerd-Pr0n... what little useful thing comes into your mind as tool of at the Linux command line? Not a super-nerdy command to sophisticated resolve a problem, but a tool for actual problems that would also be useful for n00bs to take their fear about using the CLI?

So curling wttr.in is a nice trick - but yesterday I discovered v2 of the service (probably around for a million years but new to me).

Screenshot der Terminalausgabe von curl wttr.in/Berlin, einem Wetterbericht für die Kommandozeile
curl v2.wttr.in/Berlinyt-dlp and wget to fetch files from the Intenets without having to open a browser were on the list yesterday as well, but I'm eager to (re)discover some other nice tools.

#Linux #CLI

gunnar@diasp.org

Linux user makes tea

How can we have stopwatch magic in the terminal for making a tea with 3 min. infusion time? Or put it in other words: Let's use the terminal as stopwatch instead of some browser extension or whatnot.

Ingredients:
- water
- tea
- figlet
- espeak
- lolcat

Let's start with a simple stopwatch feature by using sleep. For a notification after 3 minutes:

sleep 180s; echo "Time is up!"

We could also use the tool timeout.

timeout 180s cat -; echo "Time is up!"

Let's have bigger characters for the notification (using figlet):

sleep 180s; figlet "Time is up!"

Ok. Let's also have some colors using lolcat.

sleep 180s; figlet "Time is up!" | lolcat

And some animations for the notification please:

sleep 180s; figlet "Time is up!" | lolcat -a -s 1000

Good. But what if the terminal is in the background? We also need voice notification.

sleep 180s; espeak "Time is up!"; figlet "Time is up!" | lolcat -a -s 1000

Hmm, it sounds still bad but let's have a female voice:

sleep 180s; espeak  -ven-us+f5 -s140 "Time is up!"; figlet "Time is up!" | lolcat -a -s 1000

Putting the frequently required time on an alias can be helpful. Or showing a countdown timer with some extra commands. Beautiful features of the CLI-world...

Addendum:
Let's check the weather in Gnu (remember: Gnu is not Unix, so you can replace Gnu with your location):

curl -4 wttr.in/gnu && curl -4 v2.wttr.in/gnu

Some more CLI asesomeness:

https://github.com/chubin/awesome-console-services

#cli #wttrin #wttr.in #tea #timer #linux #bsd #figlet #lolcat #gnulinux #stopwatch #timeout #espeak #terminal

federatica_bot@federatica.space

Приёмы и хитрости в терминале GNU/Linux

Учи GNU/Linux тут: https://go.yodo.im/linux-devops-b15753

Промокод на 20%: BTRIANGLE221502

Мой Telegram: https://t.me/black_triangle_tg

"Спасти мир" и поддержать канал можно тутЬ:

YouTube Sponsor: https://www.youtube.com/channel/UCZ26MoNJKaGXFQWKuGVzmAg/join

DonatePay: https://new.donatepay.ru/@triangle

Анонимно криптовалютами: https://notabug.org/Black_Triangle/safe_world

=====

https://t.me/aliexpress_hacker - хакерское с AliExpress

https://t.me/komp_ali - компьютерное барахло с Ali

https://t.me/hi_anon - личный блог

https://t.me/open_source_friend - интересный софт

https://www.youtube.com/channel/UCYf_gVlTuMFodRQDsxUdAYg

#linux #gnu #cli

Приёмы и хитрости в терминале GNU/Linux

#lang_ru #ru #чёрныйтреугольник #blacktriangle #чёрный_треугольник

danie10@squeet.me

The Watch Command in Linux can refresh a CLI command repeatedly for you

Bild/Foto
Sometimes, while working on the Linux command line, you might want to execute a command repeatedly so as to track any change in output. Luckily, there is a command-line utility that lets you do this.

With the Linux watch command, you can track the changes in the output from time to time (and adjust the interval). It is beneficial for reflecting the real-time view of events that are happening on an operating system.

See https://linuxiac.com/linux-watch-command/

#technology #linux #opensource #tips #cli
#Blog, ##cli, ##linux, ##opensource, ##technology, ##tips

danie10@squeet.me

How to manage Linux Bash history

Bild/Foto
BASH (Bourne Again SHell) is the default shell in practically all Linux-based operating systems. All the commands we write in the terminal are interpreted by the shell, and become part of its history. In this tutorial, we see where the shell history is saved, and how to manage it using the “history” built-in command and some environment variables.

The tutorial covers where and how the history is saved, how to modify history behaviour via environmental variables, etc. So it is not the normal “how to use history” guides, but it is worth just mentioning, if you want to repeat a command by its number, you can quickly use !13 for the line numbered 13.

See https://linuxconfig.org/how-to-manage-bash-history

#technology #linux #opensource #bash #cli
#Blog, ##cli, ##linux, ##opensource, ##technology