Skip to content

Instantly share code, notes, and snippets.

View bodypheo's full-sized avatar
🎯
Focusing

Juan M. Jiménez bodypheo

🎯
Focusing
View GitHub Profile
@bodypheo
bodypheo / fail2ban-allstatus.sh
Created May 20, 2020 07:30 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
  • sudo vim /home/vinnyfs89/.local/share/applications/telegramdesktop.desktop

You will see something like this:

[Desktop Entry]                                                                                                                                                         
 Version=1.0                                                                                                                                                             
 Name=Telegram Desktop                                                                                                                                                   
 Comment=Official desktop application for the Telegram messaging service                                                                                                 
 TryExec=/opt/telegram/telegram