#ziktips — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #ziktips, aggregated by home.social.
-
💡 TIP: Control and quickly adjust your audio output volume directly from the Linux command line using "wpctl" (WirePlumber Control CLI). You do not need to look up the default sink ID. Just use the built-in @DEFAULT_AUDIO_SINK@ alias:
wpctl set-volume @DEFAULT_AUDIO_SINK@ 40%
Verify:
wpctl get-volume @DEFAULT_AUDIO_SINK@
Volume: 0.40NB. On PipeWire-based Linux systems like @fedora @opensuse etc
#ZikTIPS #Linux #LinuxTips #PipeWire #WirePlumber #CommandLine #CLI #OpenSource #FOSS #SysAdmin
-
💡 TIP: Control and quickly adjust your audio output volume directly from the Linux command line using "wpctl" (WirePlumber Control CLI). You do not need to look up the default sink ID. Just use the built-in @DEFAULT_AUDIO_SINK@ alias:
wpctl set-volume @DEFAULT_AUDIO_SINK@ 40%
Verify:
wpctl get-volume @DEFAULT_AUDIO_SINK@
Volume: 0.40NB. On PipeWire-based Linux systems like @fedora @opensuse etc
#ZikTIPS #Linux #LinuxTips #PipeWire #WirePlumber #CommandLine #CLI #OpenSource #FOSS #SysAdmin
-
💡 TIP: On a Linux system using bash, you can compare text strings without worrying about upper or lowercase by using the ,, (lowercase) or ^^ (uppercase) parameter expansion modifiers e.g.
EDITION=CommUNITY
if [[ ${EDITION,,} = community ]]; then
echo "Community"
fi${EDITION,,} converts the value to lowercase.
@opensuse @fedora @debian
#ZikTIPs #bash #scripting #linuxtips #techtips #feditips #Linux #opensource -
💡 TIP: On a Linux system using bash, you can compare text strings without worrying about upper or lowercase by using the ,, (lowercase) or ^^ (uppercase) parameter expansion modifiers e.g.
EDITION=CommUNITY
if [[ ${EDITION,,} = community ]]; then
echo "Community"
fi${EDITION,,} converts the value to lowercase.
@opensuse @fedora @debian
#ZikTIPs #bash #scripting #linuxtips #techtips #feditips #Linux #opensource -
TIP: 💡Check the remaining battery level for your connected bluetooth device on a typical Linux system using the following command:
bluetoothctl info AA:BB:CC:DD:00:11 | awk '/Battery Percentage:/ {print $4}' | tr -d '()'
* Replace "AA:BB:CC:DD:00:11" with the MAC address of your bluetooth device
@openSUSE @fedora @debian #ZikTIPS #Bluetooth #Audio #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource
-
TIP: 💡Check the remaining battery level for your connected bluetooth device on a typical Linux system using the following command:
bluetoothctl info AA:BB:CC:DD:00:11 | awk '/Battery Percentage:/ {print $4}' | tr -d '()'
* Replace "AA:BB:CC:DD:00:11" with the MAC address of your bluetooth device
@openSUSE @fedora @debian #ZikTIPS #Bluetooth #Audio #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource
-
💡 On a typical Linux system, you can find bluetooth devices that are paired, connected, and trusted using the following command line:
bluetoothctl devices [ Paired | Connected | Trusted ]
For example: List currently paired bluetooth devices:
$ bluetoothctl devices Paired
Device 00:42:XX:YY:ZZ:YY XXBK85
Device 00:FD:AA:XX:YY:X8 D-26@opensuse @fedora @debian #ZikTIPS #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource
-
💡 On a typical Linux system, you can find bluetooth devices that are paired, connected, and trusted using the following command line:
bluetoothctl devices [ Paired | Connected | Trusted ]
For example: List currently paired bluetooth devices:
$ bluetoothctl devices Paired
Device 00:42:XX:YY:ZZ:YY XXBK85
Device 00:FD:AA:XX:YY:X8 D-26@opensuse @fedora @debian #ZikTIPS #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource
-
For anyone interested in using Kea DHCP server on buildroot, I have submitted a new package patch that is currently awaiting upstream review. You can check it out here:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
@iscdotorg
#ZikTIPS #buildroot #dhcp #networking #linux #opensource -
For anyone interested in using Kea DHCP server on buildroot, I have submitted a new package patch that is currently awaiting upstream review. You can check it out here:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
@iscdotorg
#ZikTIPS #buildroot #dhcp #networking #linux #opensource -
💡 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 @fedora @debian #ZikTIPs #Linuxtips #LinuxTechTips #Linux #FOSS #Opensource
-
💡 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 @fedora @debian #ZikTIPs #Linuxtips #LinuxTechTips #Linux #FOSS #Opensource
-
💡Did you know you can just run the mount command with -m flag to create a non-existent mount point instead of first creating it.
e.g. mount -m /dev/sdc1 /myflash
-
💡Did you know you can just run the mount command with -m flag to create a non-existent mount point instead of first creating it.
e.g. mount -m /dev/sdc1 /myflash
-
💡 It's conference 🎤 season! Impress your audience with a slick QR code using these easy commands on Linux
✅ Add your content to a text file:
printf " Name: Zik Joseph\n Blog: https://zikusooka.com \n" > my_contacts.txt✅ Convert text file (and contents) into QR code image:
qrencode -o zik.png -r my_contacts.txtThats all! Add zik.png to your slides. Easy, classy.
#ZikTIPS #TechTips #LinuxTips #Conference #Linux #FOSS #OpenSource
-
💡 It's conference 🎤 season! Impress your audience with a slick QR code using these easy commands on Linux
✅ Add your content to a text file:
printf " Name: Zik Joseph\n Blog: https://zikusooka.com \n" > my_contacts.txt✅ Convert text file (and contents) into QR code image:
qrencode -o zik.png -r my_contacts.txtThats all! Add zik.png to your slides. Easy, classy.
#ZikTIPS #TechTips #LinuxTips #Conference #Linux #FOSS #OpenSource
-
If you’re like me and enjoy watching streams or listening to multiple audio sources, check out my newly updated @pipewire based script! It makes muting or unmuting sound from different sources really easy.
Find it here:
https://github.com/zikusooka/toggle-pw-volumes
Context: https://joseph.zikusooka.com/?p=2637 -
If you’re like me and enjoy watching streams or listening to multiple audio sources, check out my newly updated @pipewire based script! It makes muting or unmuting sound from different sources really easy.
Find it here:
https://github.com/zikusooka/toggle-pw-volumes
Context: https://joseph.zikusooka.com/?p=2637 -
💡Use iperf3 to measure the network throughput between two Linux nodes effortlessly as follows: @fedora @opensuse
On server: iperf3 -s
On client: iperf3 -c <SERVER_IP>
#ZikTIPS #Linuxtips $Networking #LinuxTechTips #Linux #Opensource
-
💡Use iperf3 to measure the network throughput between two Linux nodes effortlessly as follows: @fedora @opensuse
On server: iperf3 -s
On client: iperf3 -c <SERVER_IP>
#ZikTIPS #Linuxtips $Networking #LinuxTechTips #Linux #Opensource
-
💡 Record audio from a microphone on a Linux system using gstreamer @gstreamer @fedora @opensuse @archlinux
gst-launch-1.0 alsasrc ! audioconvert ! lamemp3enc ! filesink location=recorded.mp3
#ZikTIPs #pipewire #pulseaudio #techtips #Linuxtips #LinuxTechTips #Linux #Opensource
-
💡 Record audio from a microphone on a Linux system using gstreamer @gstreamer @fedora @opensuse @archlinux
gst-launch-1.0 alsasrc ! audioconvert ! lamemp3enc ! filesink location=recorded.mp3
#ZikTIPs #pipewire #pulseaudio #techtips #Linuxtips #LinuxTechTips #Linux #Opensource
-
💡On a Linux system, use the "nohup" utility to execute one-time commands or scripts that can run later, even after you log out of your terminal session @opensuse
@fedora @debianExample: To schedule a one-time script to run 15 minutes after you disconnect from the terminal:
nohup bash -c "(sleep 900 && ./myscript.sh)" &
#ZikTIPS #linuxtips #techtips #sysadmin #Fedora #OpenSUSE #Linux #Opensource
-
💡On a Linux system, use the "nohup" utility to execute one-time commands or scripts that can run later, even after you log out of your terminal session @opensuse
@fedora @debianExample: To schedule a one-time script to run 15 minutes after you disconnect from the terminal:
nohup bash -c "(sleep 900 && ./myscript.sh)" &
#ZikTIPS #linuxtips #techtips #sysadmin #Fedora #OpenSUSE #Linux #Opensource
-
💡 Use the following Linux command to create a file with a specific access and modification timestamp @fedora @opensuse @archlinux
touch -t [FILE]
e.g. For a file named mytalk.txt March 10, 2025 at 9AM:
touch -t 202503100900 mytalk.txt
To verify:
stat -c "%x%y" mytalk.txt. -
💡 Use the following Linux command to create a file with a specific access and modification timestamp @fedora @opensuse @archlinux
touch -t [FILE]
e.g. For a file named mytalk.txt March 10, 2025 at 9AM:
touch -t 202503100900 mytalk.txt
To verify:
stat -c "%x%y" mytalk.txt. -
💡 You can simultaneously query multiple domain name records using the dig command in Linux as follows:
dig OPTIONS @server -f BATCH_FILE
Example:
dig +nocmd +noquestion +nostats +nocomments @8.8.8.8 -f mydomains.txtcat mydomains.txt
example.com A
example.net MX
example.org NSTIP: dig is part of the dns/bind utilities package depending on your distribution
-
💡 You can simultaneously query multiple domain name records using the dig command in Linux as follows:
dig OPTIONS @server -f BATCH_FILE
Example:
dig +nocmd +noquestion +nostats +nocomments @8.8.8.8 -f mydomains.txtcat mydomains.txt
example.com A
example.net MX
example.org NSTIP: dig is part of the dns/bind utilities package depending on your distribution
-
🎉 Excited to share HASS Core Installer, a tool that simplifies installing and upgrading Home Assistant Core in a Python 3 virtual environment! @homeassistant @jambulatv @jambula
🚀 Works online & offline, complementing existing methods for diverse setups.
🥦 Check it out on GitHub:
https://github.com/zikusooka/hass-core-installer -
🎉 Excited to share HASS Core Installer, a tool that simplifies installing and upgrading Home Assistant Core in a Python 3 virtual environment! @homeassistant @jambulatv @jambula
🚀 Works online & offline, complementing existing methods for diverse setups.
🥦 Check it out on GitHub:
https://github.com/zikusooka/hass-core-installer -
💡To display the DHCP IPv4 options assigned to a Linux client, use the following command line @opensuse @fedora @NetworkManager #ZikTIPs #CLI #Networking #Linux #OpenSource
nmcli -f DHCP4 device show "$INTERFACE"
e.g. nmcli -f DHCP4 device show eth0
-
💡To display the DHCP IPv4 options assigned to a Linux client, use the following command line @opensuse @fedora @NetworkManager #ZikTIPs #CLI #Networking #Linux #OpenSource
nmcli -f DHCP4 device show "$INTERFACE"
e.g. nmcli -f DHCP4 device show eth0
-
💡Get the inode number of a file using this simple command line on Linux @opensuse @fedora @archlinux
ls -i [FILENAME] e.g.
ls -i /etc/fstab
-
💡Get the inode number of a file using this simple command line on Linux @opensuse @fedora @archlinux
ls -i [FILENAME] e.g.
ls -i /etc/fstab
-
💡Display the active WiFi connection using the following command in Linux #ZikTIPs #CLI #WiFi #Linux #Opensource
@NetworkManager @opensuse @fedora @debiannmcli connection show --active
NOTE: Works on distributions that use #networkmanager
-
💡Display the active WiFi connection using the following command in Linux #ZikTIPs #CLI #WiFi #Linux #Opensource
@NetworkManager @opensuse @fedora @debiannmcli connection show --active
NOTE: Works on distributions that use #networkmanager
-
💡 Search for webcams on a Linux system using the following command line @fedora @opensuse #ZikTIPS #Linux #CLI #Multimedia #Video #Audio #Opensource
v4l2-ctl --list-devices
-
💡 Search for webcams on a Linux system using the following command line @fedora @opensuse #ZikTIPS #Linux #CLI #Multimedia #Video #Audio #Opensource
v4l2-ctl --list-devices
-
💡️ Display the actual target path of a symbolic link in Linux
#ZikTIPs #CLI #Linux #Opensourcereadlink -f [LINK]
-
💡️ Display the actual target path of a symbolic link in Linux
#ZikTIPs #CLI #Linux #Opensourcereadlink -f [LINK]