<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[All commands]]></title>
    <link>http://www.commandlinefu.com/commands/browse/rss</link>
    <description><![CDATA[A repository for the most elegant and useful UNIX commands.  Great commands can be shared, discussed and voted on to provide a comprehensive resource for working from the command-line]]></description>
    <pubDate>Sun, 05 Apr 2026 19:46:28 +0000</pubDate>
    <generator>Zend Framework Zend_Feed</generator>
    <language>en-us</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Extract GitHub repository URLs from BlackArch tools pages]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/43210/extract-github-repository-urls-from-blackarch-tools-pages</link>
      <guid>http://www.commandlinefu.com/commands/view/43210/extract-github-repository-urls-from-blackarch-tools-pages</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ curl -sL blackarch.org/{tools,recon}.html | awk -F'&quot;' '$4 ~ /^https:\/\/github\.com\// { print $4 }'</code>
<div style="">Downloads BlackArch tool pages and prints only GitHub links using pure awk filtering.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/43210/extract-github-repository-urls-from-blackarch-tools-pages">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Thu, 12 Feb 2026 08:38:04 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/43210/extract-github-repository-urls-from-blackarch-tools-pages</comments>
    </item>
    <item>
      <title><![CDATA[Import a wireguard configuration into networkmanager]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/43207/import-a-wireguard-configuration-into-networkmanager</link>
      <guid>http://www.commandlinefu.com/commands/view/43207/import-a-wireguard-configuration-into-networkmanager</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ nmcli connection import type wireguard file wireguard_config.conf</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/43207/import-a-wireguard-configuration-into-networkmanager">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Wed, 11 Feb 2026 20:31:36 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/43207/import-a-wireguard-configuration-into-networkmanager</comments>
    </item>
    <item>
      <title><![CDATA[Print a full-width horizontal line using the current terminal width (custom character supported)]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/43206/print-a-full-width-horizontal-line-using-the-current-terminal-width-custom-character-supported</link>
      <guid>http://www.commandlinefu.com/commands/view/43206/print-a-full-width-horizontal-line-using-the-current-terminal-width-custom-character-supported</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ printf '%*s\n' &quot;${COLUMNS:-80}&quot; '' | tr ' ' &quot;${1-_}&quot;</code>
<div style="">This is good when the other option on this site not includes ´tput´ like on minimal shell</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/43206/print-a-full-width-horizontal-line-using-the-current-terminal-width-custom-character-supported">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Wed, 11 Feb 2026 18:27:03 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/43206/print-a-full-width-horizontal-line-using-the-current-terminal-width-custom-character-supported</comments>
    </item>
    <item>
      <title><![CDATA[Send a file to the first reachable KDE Connect device]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/43149/send-a-file-to-the-first-reachable-kde-connect-device</link>
      <guid>http://www.commandlinefu.com/commands/view/43149/send-a-file-to-the-first-reachable-kde-connect-device</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share kdeconnect-cli-send-file.sh</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/43149/send-a-file-to-the-first-reachable-kde-connect-device">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 03 Feb 2026 03:10:30 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/43149/send-a-file-to-the-first-reachable-kde-connect-device</comments>
    </item>
    <item>
      <title><![CDATA[Play raw entropy noise via ALSA (bypass PulseAudio/PipeWire)]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/43119/play-raw-entropy-noise-via-alsa-bypass-pulseaudiopipewire</link>
      <guid>http://www.commandlinefu.com/commands/view/43119/play-raw-entropy-noise-via-alsa-bypass-pulseaudiopipewire</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ cat /dev/urandom | play -q -t raw -r 8000 -e unsigned-integer -b 8 -c 1 -t alsa default</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/43119/play-raw-entropy-noise-via-alsa-bypass-pulseaudiopipewire">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 27 Jan 2026 13:25:49 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/43119/play-raw-entropy-noise-via-alsa-bypass-pulseaudiopipewire</comments>
    </item>
    <item>
      <title><![CDATA[Trigger a notification on USB device insertion using udev]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/43117/trigger-a-notification-on-usb-device-insertion-using-udev</link>
      <guid>http://www.commandlinefu.com/commands/view/43117/trigger-a-notification-on-usb-device-insertion-using-udev</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ udevadm monitor --udev --subsystem-match=usb | gawk '/add/ { system(&quot;espeak \&quot;USB device attached\&quot;&quot;) }'</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/43117/trigger-a-notification-on-usb-device-insertion-using-udev">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 27 Jan 2026 12:24:27 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/43117/trigger-a-notification-on-usb-device-insertion-using-udev</comments>
    </item>
    <item>
      <title><![CDATA[Minimal Runtime Kernel Module Dependency View]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/43111/minimal-runtime-kernel-module-dependency-view</link>
      <guid>http://www.commandlinefu.com/commands/view/43111/minimal-runtime-kernel-module-dependency-view</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ lsmod | awk 'NR&gt;1 &amp;&amp; $4!=&quot;-&quot; {print $1; split($4,a,&quot;,&quot;); for(i in a) print &quot;  -&gt; used by:&quot;, a[i]; print &quot;&quot;}'</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/43111/minimal-runtime-kernel-module-dependency-view">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 26 Jan 2026 19:00:04 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/43111/minimal-runtime-kernel-module-dependency-view</comments>
    </item>
    <item>
      <title><![CDATA[Go to the Nth line of file]]></title>
      <author>atoponce</author>
      <link>http://www.commandlinefu.com/commands/view/42765/go-to-the-nth-line-of-file</link>
      <guid>http://www.commandlinefu.com/commands/view/42765/go-to-the-nth-line-of-file</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ awk 'NR==13' /etc/services</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/42765/go-to-the-nth-line-of-file">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/atoponce">View all commands by <strong>atoponce</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 25 Nov 2025 18:40:02 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/42765/go-to-the-nth-line-of-file</comments>
    </item>
    <item>
      <title><![CDATA[Quick way to sum every numbers in a file written line by line]]></title>
      <author>atoponce</author>
      <link>http://www.commandlinefu.com/commands/view/42764/quick-way-to-sum-every-numbers-in-a-file-written-line-by-line</link>
      <guid>http://www.commandlinefu.com/commands/view/42764/quick-way-to-sum-every-numbers-in-a-file-written-line-by-line</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ awk '{sum += $0} END {print sum}' file</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/42764/quick-way-to-sum-every-numbers-in-a-file-written-line-by-line">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/atoponce">View all commands by <strong>atoponce</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 25 Nov 2025 18:21:44 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/42764/quick-way-to-sum-every-numbers-in-a-file-written-line-by-line</comments>
    </item>
    <item>
      <title><![CDATA[Show tcp connections sorted by Host / Most connections]]></title>
      <author>atoponce</author>
      <link>http://www.commandlinefu.com/commands/view/42763/show-tcp-connections-sorted-by-host-most-connections</link>
      <guid>http://www.commandlinefu.com/commands/view/42763/show-tcp-connections-sorted-by-host-most-connections</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ netstat -ntu | tail -n +3 | awk '{print $5}' | sed 's/:[0-9]*$//' | sort | uniq -c | sort -rn</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/42763/show-tcp-connections-sorted-by-host-most-connections">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/atoponce">View all commands by <strong>atoponce</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 25 Nov 2025 18:15:39 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/42763/show-tcp-connections-sorted-by-host-most-connections</comments>
    </item>
    <item>
      <title><![CDATA[True random number generator in pure ZSH]]></title>
      <author>atoponce</author>
      <link>http://www.commandlinefu.com/commands/view/42757/true-random-number-generator-in-pure-zsh</link>
      <guid>http://www.commandlinefu.com/commands/view/42757/true-random-number-generator-in-pure-zsh</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ trng() { zmodload zsh/datetime; local flips=&quot;&quot;; while ((${#flips}&lt;256)); do local coin=0; local t=$((EPOCHREALTIME+0.001)); while (($EPOCHREALTIME&lt;$t)); do ((coin^=1)); done; flips+=$coin; done; local h=($(print &quot;$flips&quot;|sha256sum));</code>
<div style="">Do not use this in production! This is a true hardware random number generator using your system as the entropy source. It models flipping a coin by pitting a fast clock (the CPU) against a slow clock (the RTC). The CPU models the coin flipping head over tails during flight and the RTC models the duration of the coin's flight in the air.
A timer is set 1 millisecond into the future and a bit is flipped as fast as possible before the timer expires. 256 bits are collected then hashed with SHA-256 to whiten the data and ensure uniformity.
This makes some assumptions however. It assumes that your system is not compromised. It assumes your system is generating enough interrupts for the kernel scheduler to be unpredictable on what gets CPU priority. It assumes that your installed sha256sum(1) command is correctly implemented.
Just because you can, doesn't mean you should. Use your system's RNG (EG, /dev/urandom) instead.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/42757/true-random-number-generator-in-pure-zsh">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/atoponce">View all commands by <strong>atoponce</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 24 Nov 2025 18:13:40 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/42757/true-random-number-generator-in-pure-zsh</comments>
    </item>
    <item>
      <title><![CDATA[log2 in Bash]]></title>
      <author>atoponce</author>
      <link>http://www.commandlinefu.com/commands/view/42756/log2-in-bash</link>
      <guid>http://www.commandlinefu.com/commands/view/42756/log2-in-bash</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ log2() { local n=0; for ((i=$1-1; i&gt;0; i&gt;&gt;=1)); do ((n+=1)); done; echo $n; }</code>
<div style="">Calculates the ceiling of the log2 of a given argument.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/42756/log2-in-bash">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/atoponce">View all commands by <strong>atoponce</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 24 Nov 2025 17:17:14 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/42756/log2-in-bash</comments>
    </item>
    <item>
      <title><![CDATA[Enhanced Buffer in order to avoir mistakes with redirections that empty your files]]></title>
      <author>cryptology_codes</author>
      <link>http://www.commandlinefu.com/commands/view/42202/enhanced-buffer-in-order-to-avoir-mistakes-with-redirections-that-empty-your-files</link>
      <guid>http://www.commandlinefu.com/commands/view/42202/enhanced-buffer-in-order-to-avoir-mistakes-with-redirections-that-empty-your-files</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ buffer(){ tty -s&amp;&amp;return; d=${1:-/tmp}; tmp=$(mktemp &quot;$d/.b.XXXXXX&quot;)||return; trap 'rm -f &quot;$tmp&quot;' EXIT; cat&gt;&quot;$tmp&quot;||{ rm -f &quot;$tmp&quot;; return 1; }; [ -z &quot;$1&quot; ]&amp;&amp;{ cat &quot;$tmp&quot;; rm -f &quot;$tmp&quot;; return 0; }; mv -f &quot;$tmp&quot; &quot;$1&quot;; }</code>
<div style="">Issues & improvements
    Race conditions: the check for writability then mv is not fully atomic — another process could create/remove/change the target between the test and mv.
    Permissions and ownership: mv will preserve contents but the resulting file may have the temp file's permissions/ownership (mktemp default).
    Signal safety: if interrupted (SIGINT, SIGTERM) the temp file may remain.
    Portability: uses bash-compatible constructs but relies on mktemp and -a (POSIX [ -a ] is obsolete; better to use -e).
    Better error messages and exit status handling.
    Allow optional mode to write to stdout when no filename given.
    Support setting desired file mode (umask or chmod) and preserve atomic replace semantics.
Enhanced version
    Uses safer existence test ([ -e ] not deprecated -a).
    Installs traps to clean up temp file on exit/signals.
    Preserves mode of the existing file (if it exists) or allows a chmod option.
    Attempts a safer atomic replace: write to temp in same directory as target when a filename is supplied (reduces window for cross-filesystem mv failure and preserves atomicity).
    If no filename given, writes temp contents to stdout.
    Returns non-zero on failure and prints concise errors to stderr.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/42202/enhanced-buffer-in-order-to-avoir-mistakes-with-redirections-that-empty-your-files">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/cryptology_codes">View all commands by <strong>cryptology_codes</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Sun, 14 Sep 2025 21:19:55 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/42202/enhanced-buffer-in-order-to-avoir-mistakes-with-redirections-that-empty-your-files</comments>
    </item>
    <item>
      <title><![CDATA[Android VOLUME_DOWN]]></title>
      <author>alikhalil</author>
      <link>http://www.commandlinefu.com/commands/view/41891/android-volume_down</link>
      <guid>http://www.commandlinefu.com/commands/view/41891/android-volume_down</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ adb shell input keyevent KEYCODE_VOLUME_DOWN</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/41891/android-volume_down">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/alikhalil">View all commands by <strong>alikhalil</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Wed, 13 Aug 2025 13:22:00 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/41891/android-volume_down</comments>
    </item>
    <item>
      <title><![CDATA[Extract one file from a remote tar.gz and put it where you want it]]></title>
      <author>renich (http://www.woralelandia.com/)</author>
      <link>http://www.commandlinefu.com/commands/view/41880/extract-one-file-from-a-remote-tar.gz-and-put-it-where-you-want-it</link>
      <guid>http://www.commandlinefu.com/commands/view/41880/extract-one-file-from-a-remote-tar.gz-and-put-it-where-you-want-it</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ tar --strip-components=1 -C ~/bin/ -xzf &lt;( curl -L https://dist.ipfs.tech/kubo/v0.36.0/kubo_v0.36.0_linux-amd64.tar.gz ) kubo/ipfs</code>
<div style="">This fetches ipfs v0.36.0 for GNU/LInux and puts it in ~/bin without a tmp file or anything else. 
This works if you already have ~/bin. 
The `--strip-components=1` flag removes the "kubo" directory in this case. If you have a tar with an even deeper directory structure, say: `some/other/directory/file`, you can just use `--strip-components=3` and it will only extract `file` for you. 
`-C ~/bin` puts the file in the designated path. In this case, `~/bin`.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/41880/extract-one-file-from-a-remote-tar.gz-and-put-it-where-you-want-it">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/renich">View all commands by <strong>renich</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 12 Aug 2025 03:38:07 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/41880/extract-one-file-from-a-remote-tar.gz-and-put-it-where-you-want-it</comments>
    </item>
    <item>
      <title><![CDATA[List memory percentage per user]]></title>
      <author>Raboo (http://www.letit.se)</author>
      <link>http://www.commandlinefu.com/commands/view/41712/list-memory-percentage-per-user</link>
      <guid>http://www.commandlinefu.com/commands/view/41712/list-memory-percentage-per-user</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ ps aux | awk '{arr[$1]+=$4}; END {for (i in arr) {print i,arr[i]}}' | sort -hk2 | tail -10</code>
<div style="">Show top 10 users by memory combined consumption in percentage.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/41712/list-memory-percentage-per-user">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/Raboo">View all commands by <strong>Raboo</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Fri, 01 Aug 2025 07:06:55 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/41712/list-memory-percentage-per-user</comments>
    </item>
    <item>
      <title><![CDATA[Display history of reboots]]></title>
      <author>mpb</author>
      <link>http://www.commandlinefu.com/commands/view/41592/display-history-of-reboots</link>
      <guid>http://www.commandlinefu.com/commands/view/41592/display-history-of-reboots</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ $ journalctl --list-boots    # display tabular history of reboots</code>
<div style="">If you need to see a list of the reboots of your system with date and time stamps then on a Linux with systemd you can use (as non-root) the command:
    journalctl --list-boots 
This could be useful if you are trying to track when a power outage occurred.
An alternative is: 
<code>/bin/sudo grep &quot;^-&quot; /var/log/boot.log</code>
^ This only shows the boot start date/times while the journalctl command shows a "LAST ENTRY" associated with each "BOOT ID".</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/41592/display-history-of-reboots">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/mpb">View all commands by <strong>mpb</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 22 Jul 2025 14:52:34 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/41592/display-history-of-reboots</comments>
    </item>
    <item>
      <title><![CDATA[Tapping screen for TikTok using shell script]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/40710/tapping-screen-for-tiktok-using-shell-script</link>
      <guid>http://www.commandlinefu.com/commands/view/40710/tapping-screen-for-tiktok-using-shell-script</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ while true; do input tap $(wm size | awk -F 'x' '{print $1/2 &quot; &quot; $2/2}'); done</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/40710/tapping-screen-for-tiktok-using-shell-script">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Tue, 27 May 2025 13:32:54 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/40710/tapping-screen-for-tiktok-using-shell-script</comments>
    </item>
    <item>
      <title><![CDATA[Mount SMB v1 share on Linux]]></title>
      <author>swarzynski</author>
      <link>http://www.commandlinefu.com/commands/view/39597/mount-smb-v1-share-on-linux</link>
      <guid>http://www.commandlinefu.com/commands/view/39597/mount-smb-v1-share-on-linux</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ mount -t cifs -o username=administrator,password=xxx,vers=1.0,sec=ntlmv2 //192.168.0.30/nas_share /mnt/win_share</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/39597/mount-smb-v1-share-on-linux">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/swarzynski">View all commands by <strong>swarzynski</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Thu, 20 Mar 2025 08:16:19 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/39597/mount-smb-v1-share-on-linux</comments>
    </item>
    <item>
      <title><![CDATA[Download and Extract mp3 from Youtube Video]]></title>
      <author>keyboardsage</author>
      <link>http://www.commandlinefu.com/commands/view/38091/download-and-extract-mp3-from-youtube-video</link>
      <guid>http://www.commandlinefu.com/commands/view/38091/download-and-extract-mp3-from-youtube-video</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 -o &quot;%(title)s.%(ext)s&quot; &lt;youtube_link_here&gt;</code>
<div style="">This will download a video when given the link and it will extract the audio from the video. The filename will be the same as the video's title. File extension in mp3.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/38091/download-and-extract-mp3-from-youtube-video">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/keyboardsage">View all commands by <strong>keyboardsage</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Fri, 22 Nov 2024 19:54:54 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/38091/download-and-extract-mp3-from-youtube-video</comments>
    </item>
    <item>
      <title><![CDATA[Get a random quote from Breaking Bad]]></title>
      <author>malathion</author>
      <link>http://www.commandlinefu.com/commands/view/36873/get-a-random-quote-from-breaking-bad</link>
      <guid>http://www.commandlinefu.com/commands/view/36873/get-a-random-quote-from-breaking-bad</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ curl -s https://api.breakingbadquotes.xyz/v1/quotes | jq -r '.[] | &quot;\&quot;\(.quote)\&quot; -- \(.author)&quot;'</code>
<div style="">Hit an API with curl returning a random quote, then parse the result with jq.</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/36873/get-a-random-quote-from-breaking-bad">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/malathion">View all commands by <strong>malathion</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 09 Sep 2024 14:58:37 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/36873/get-a-random-quote-from-breaking-bad</comments>
    </item>
    <item>
      <title><![CDATA[Matrix - Just 1 wobbly line rather then a rain! (shorter)]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/36780/matrix-just-1-wobbly-line-rather-then-a-rain-shorter</link>
      <guid>http://www.commandlinefu.com/commands/view/36780/matrix-just-1-wobbly-line-rather-then-a-rain-shorter</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ while true; do printf &quot;\e[32m%*s\e[0m&quot; $(tput cols) $(shuf -e {0..1} -n $(tput cols)); sleep 0.1; done</code>
<div style="">No sample. Try it and see the magic!</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/36780/matrix-just-1-wobbly-line-rather-then-a-rain-shorter">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 02 Sep 2024 00:44:33 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/36780/matrix-just-1-wobbly-line-rather-then-a-rain-shorter</comments>
    </item>
    <item>
      <title><![CDATA[Matrix - Just 1 wobbly line rather then a rain!]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/36779/matrix-just-1-wobbly-line-rather-then-a-rain</link>
      <guid>http://www.commandlinefu.com/commands/view/36779/matrix-just-1-wobbly-line-rather-then-a-rain</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ clear; sleep 5; echo 'while :; do printf &quot;\e[32m%*s\e[0m&quot; $(tput cols) $(shuf -e {0..1} -n $(($(tput lines) * $(tput cols)))); sleep 0.1; done'</code>
<div style="">Remove clear; sleep 5 and echo for not doing sample!</div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/36779/matrix-just-1-wobbly-line-rather-then-a-rain">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 02 Sep 2024 00:40:34 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/36779/matrix-just-1-wobbly-line-rather-then-a-rain</comments>
    </item>
    <item>
      <title><![CDATA[This command will help you to hunt the current mysql query statement in real time. (-R is deprecated, using updated -Y)]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/36696/this-command-will-help-you-to-hunt-the-current-mysql-query-statement-in-real-time.-r-is-deprecated-using-updated-y</link>
      <guid>http://www.commandlinefu.com/commands/view/36696/this-command-will-help-you-to-hunt-the-current-mysql-query-statement-in-real-time.-r-is-deprecated-using-updated-y</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ tshark -s 512 -i eno1 -n -f'tcp dst port 3306' -Y'&lt;mysql.query&gt;' -T fields -e &lt;mysql.query&gt;</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/36696/this-command-will-help-you-to-hunt-the-current-mysql-query-statement-in-real-time.-r-is-deprecated-using-updated-y">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 26 Aug 2024 19:29:05 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/36696/this-command-will-help-you-to-hunt-the-current-mysql-query-statement-in-real-time.-r-is-deprecated-using-updated-y</comments>
    </item>
    <item>
      <title><![CDATA[Read  /etc/passwd with printf in a smarter and shorter way then some deliberately obfuscated shell commands from unethicals.]]></title>
      <author>wuseman1</author>
      <link>http://www.commandlinefu.com/commands/view/36695/read-etcpasswd-with-printf-in-a-smarter-and-shorter-way-then-some-deliberately-obfuscated-shell-commands-from-unethicals.</link>
      <guid>http://www.commandlinefu.com/commands/view/36695/read-etcpasswd-with-printf-in-a-smarter-and-shorter-way-then-some-deliberately-obfuscated-shell-commands-from-unethicals.</guid>
      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ eval &quot;$(E3LFbgu='CAT /ETC/PASSWD';printf %s &quot;${E3LFbgu~~}&quot;)&quot;</code>
<div style=""></div>
<ul style="list-style:none; padding: 0; margin: 0">
    <li><a href="http://www.commandlinefu.com/commands/view/36695/read-etcpasswd-with-printf-in-a-smarter-and-shorter-way-then-some-deliberately-obfuscated-shell-commands-from-unethicals.">View this command to comment, vote or add to favourites</a></li>
    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
</ul>
<p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
<p>Diff your entire server config at <a href="http://www.scriptrock.com?utm_campaign=clfu&utm_medium=clfu%20api%20rss&utm_source=clfu">ScriptRock.com</a></p>
]]></description>
      <pubDate>Mon, 26 Aug 2024 19:20:48 +0000</pubDate>
      <comments>http://www.commandlinefu.com/commands/view/36695/read-etcpasswd-with-printf-in-a-smarter-and-shorter-way-then-some-deliberately-obfuscated-shell-commands-from-unethicals.</comments>
    </item>
  </channel>
</rss>
