home.social

#ziktips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ziktips, aggregated by home.social.

  1. 💡 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

  2. 💡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

  3. 💡 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

  4. 💡 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.

    #ZikTIPs #Linuxtips #LinuxTechTips #Linux #Opensource