#ZikTIPS
💡 On a Linux system using bash, you can case insensitively compare text by using ,, (lowercase) or ^^ (uppercase) parameter expansion modifiers e.g.

EDITION=CommUNITY
if [[ ${EDITION,,} = community ]]; then
echo "yes"
fi
${EDITION,,} converts value to lowercase
#ZikTIPs #techtips #Linux #opensource
November 26, 2025 at 10:54 AM
💡Calculate the number of days since a given date (e.g. 30 June 2025) on a Linux system:

echo $(( ( $(date +%s) - $(date -d "2025-06-30" +%s) ) / 86400 ))

@opensuse.org @fedora.fosstodon.org.ap.brid.gy @debian.bsky.social
#ZikTIPS #Linuxtips #LinuxTechTips #Linux #FOSS #Opensource
September 4, 2025 at 11:08 AM
💡Record audio from a microphone on a Linux system using gstreamer @fedora.fosstodon.org.ap.brid.gy @opensuse.org

gst-launch-1.0 alsasrc ! audioconvert ! lamemp3enc ! filesink location=recorded.mp3

#ZikTIPs #pipewire #pulseaudio #techtips #Linuxtips #LinuxTechTips #Linux #Opensource
March 4, 2025 at 9:09 PM
💡To create a file with a specific access & modification timestamp in #Linux

touch -t [FILE] e.g. March 10 2025 9AM
touch -t 202503100900 mytalk.txt

To verify: stat -c %x%y mytalk.txt
@fedora.fosstodon.org.ap.brid.gy @opensuse.bsky.social
#ZikTIPs #Linuxtips #LinuxTechTips #Linux #Opensource
February 3, 2025 at 1:48 PM
💡To display the DHCP IPv4 options assigned to a Linux client, use the following command line #ZikTIPs #CLI #Networking #sysadmins #Linux #OpenSource
nmcli -f DHCP4 device show "$INTERFACE"
e.g.
nmcli -f DHCP4 device show eth0
December 6, 2024 at 12:24 PM
💡Use the following command line to list of security advisories on a Fedora and RedHat based Linux systems #ZikTIPs #LinuxTips #LinuxTechTips #Linux #Opensource
@fedora.fosstodon.org.ap.brid.gy

sudo dnf advisory list
May 17, 2025 at 10:09 AM
💡 To display a full list of known users on a Linux system, use the following command @fedora.fosstodon.org.ap.brid.gy @opensuse.bsky.social @ubuntu-ls.bsky.social

lslogins

#ZikTIPS #Sysadmin #CLI #Fedora #OpenSUSE #Linux #opensource #Tips
January 22, 2025 at 1:35 PM
💡Making a presentation? Add a slick QR code using the Linux command line:

1️⃣ Save your info:
printf "Name: Zik Joseph\nBlog: zikusooka.com/n%22 > my_contacts.txt

2️⃣ Generate QR:
qrencode -o zik.png -r my_contacts.txt

Drop zik.png into your slides. Easy!
#ZikTIPS #Linux #FOSS #TechTips #OpenSource
June 13, 2025 at 9:45 AM
💡You can simultaneously query multiple #DNS records using dig in #Linux:

dig OPTIONS @SERVER -f FILE e.g.
dig +nocmd +noquestion +nostats +nocomments @8.8.8.8 -f mydomains.txt

cat mydomains.txt
example.com A
example.net MX
example.org NS

#ZikTIPS #CLI #Opensource
January 27, 2025 at 8:22 PM
💡Use the 'lsof' command to quickly identify the ports that a specific service is listening on within a Linux system @fedoraproject.org.web.brid.gy @opensuse.bsky.social @ubuntu-ls.bsky.social
SERVICE=sshd;  lsof  -i  -P  -n  | grep  $SERVICE  |  awk  '/LISTEN/  {print  $9}'  |  uniq

#ZikTIPs #Linux
November 20, 2024 at 10:46 PM