sort -V ipv4addrs.txt # In GNU sort, you can use -V (version sort) to also sort IPv4 addresses numerically according to each octet. For IPv6, try using ipv6calc --addr2fulluncompaddr first to normalize the addresses and pass to a plain sort.

sudo iptables -nL f2b-sshd | awk '/REJECT/{print $4}' | xargs -n1 geoiplookup # Show the countries currently represented in your fail2ban ssh firewall jail table.

sudo tcpdump -nn "tcp[tcpflags] == tcp-syn and dst host" # Show attempts to establish a TCP connection (successful or not) to the IP

IFS=$'\n' users=( $( cut -d: -f1 /etc/passwd ) ) # Create an array of the users on the system by using the output of cutting the /etc/passwd file into columns and temporarily setting the IFS value separator variable to a newline.

BTW, I created this image using Image Magick.
I'll post the commands to the next CLImagic Supplement.

Show thread

@temporal I did that because I couldn't find the names of any of the creators of PL/I, just IBM. Then it clicked what I could do for it once I realized I should include Visual Basic in the mix.

"In case you've never heard of Java, its an object oriented
programming language, similar to the latest .NET development languages like C#. However, it's been around far longer and is widely consider the original true developer language of choice." -- _planetminecraft

ascii -x || man ascii # View the ASCII character table in hex values. You probably either have the ascii program or you have the man page.

echo ${COLUMNS}x${LINES} # Print out the character width and height of your terminal so that you generally know what will fit. This is a bashism, but works in some other shells too.

look disc # look for words that start with 'disc' so you can play in a what words start with 'disc' office game.

ESC=$'\e';tr -cd 0-9 </dev/urandom |fold -w$COLUMNS |while read line; do sed -r "s/(.{$((RANDOM%COLUMNS))})(.)(.*)/$ESC[32m\1$ESC[0m$ESC[32;1m
\2$ESC[0m$ESC[32m\3$ESC[0m/" <<<"$line"; done|pv -q -L$((COLUMNS*15)) # Matrix-like output. You can support me at # If you ever wanted to play Doom and use your terminal at the same time. Well, here you go, using .

convert -size 1000x600 -define gradient:radii=1000,500 radial-gradient:-#010101 -font Impact -pointsize 72 -fill white -gravity center -interline-spacing 50 -annotate 0,0 "Now with more arguments!" now-with-more-arguments.png # Make an impact with ImageMagick.

find images -newer index.html -type f -name '*.jpg' # Find jpg files in the directory images that are newer than the change time of the file named 'index.html'. To try to find new images that need to be included in a document.

echo -n pentacosiomedimni | wc -m # Check the length of a word in terms of it's character count. Although this word doesn't contain unicode characters, using the -m option would give you the expected answer if it did. # The CLImagic Supplemental #016 is out with in depth explanations of posts made here in early September. Support climagic on Patreon at the $2/month level and you'll receive access.

Finish the following command

xfconf-query --channel xfce4-keyboard-shortcuts --list -v | egrep "(up|down|left|right)_workspace" # List XFCE's shortcuts that will move you between workspaces. On my system, there were duplicate custom ones, which may be a bug. I was having trouble with hotkeys being lost.

Show more

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!