Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://feeds2.feedburner.com/Command-line-fu

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  3.  <channel>
  4.    <title><![CDATA[All commands]]></title>
  5.    <link>http://www.commandlinefu.com/commands/browse/rss</link>
  6.    <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>
  7.    <pubDate>Mon, 15 Sep 2025 16:24:05 +0000</pubDate>
  8.    <generator>Zend Framework Zend_Feed</generator>
  9.    <language>en-us</language>
  10.    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  11.    <item>
  12.      <title><![CDATA[Enhanced Buffer in order to avoir mistakes with redirections that empty your files]]></title>
  13.      <author>cryptology_codes</author>
  14.      <link>http://www.commandlinefu.com/commands/view/42202/enhanced-buffer-in-order-to-avoir-mistakes-with-redirections-that-empty-your-files</link>
  15.      <guid>http://www.commandlinefu.com/commands/view/42202/enhanced-buffer-in-order-to-avoir-mistakes-with-redirections-that-empty-your-files</guid>
  16.      <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>
  17. <div style="">Issues & improvements
  18.    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.
  19.    Permissions and ownership: mv will preserve contents but the resulting file may have the temp file's permissions/ownership (mktemp default).
  20.    Signal safety: if interrupted (SIGINT, SIGTERM) the temp file may remain.
  21.    Portability: uses bash-compatible constructs but relies on mktemp and -a (POSIX [ -a ] is obsolete; better to use -e).
  22.    Better error messages and exit status handling.
  23.    Allow optional mode to write to stdout when no filename given.
  24.    Support setting desired file mode (umask or chmod) and preserve atomic replace semantics.
  25. Enhanced version
  26.    Uses safer existence test ([ -e ] not deprecated -a).
  27.    Installs traps to clean up temp file on exit/signals.
  28.    Preserves mode of the existing file (if it exists) or allows a chmod option.
  29.    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).
  30.    If no filename given, writes temp contents to stdout.
  31.    Returns non-zero on failure and prints concise errors to stderr.</div>
  32. <ul style="list-style:none; padding: 0; margin: 0">
  33.    <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>
  34.    <li><a href="/commands/by/cryptology_codes">View all commands by <strong>cryptology_codes</strong></a></li>
  35. </ul>
  36. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  37. <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>
  38. ]]></description>
  39.      <pubDate>Sun, 14 Sep 2025 21:19:55 +0000</pubDate>
  40.      <comments>http://www.commandlinefu.com/commands/view/42202/enhanced-buffer-in-order-to-avoir-mistakes-with-redirections-that-empty-your-files</comments>
  41.    </item>
  42.    <item>
  43.      <title><![CDATA[Android VOLUME_DOWN]]></title>
  44.      <author>alikhalil</author>
  45.      <link>http://www.commandlinefu.com/commands/view/41891/android-volume_down</link>
  46.      <guid>http://www.commandlinefu.com/commands/view/41891/android-volume_down</guid>
  47.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ adb shell input keyevent KEYCODE_VOLUME_DOWN</code>
  48. <div style=""></div>
  49. <ul style="list-style:none; padding: 0; margin: 0">
  50.    <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>
  51.    <li><a href="/commands/by/alikhalil">View all commands by <strong>alikhalil</strong></a></li>
  52. </ul>
  53. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  54. <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>
  55. ]]></description>
  56.      <pubDate>Wed, 13 Aug 2025 13:22:00 +0000</pubDate>
  57.      <comments>http://www.commandlinefu.com/commands/view/41891/android-volume_down</comments>
  58.    </item>
  59.    <item>
  60.      <title><![CDATA[Extract one file from a remote tar.gz and put it where you want it]]></title>
  61.      <author>renich (http://www.woralelandia.com/)</author>
  62.      <link>http://www.commandlinefu.com/commands/view/41880/extract-one-file-from-a-remote-tar.gz-and-put-it-where-you-want-it</link>
  63.      <guid>http://www.commandlinefu.com/commands/view/41880/extract-one-file-from-a-remote-tar.gz-and-put-it-where-you-want-it</guid>
  64.      <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>
  65. <div style="">This fetches ipfs v0.36.0 for GNU/LInux and puts it in ~/bin without a tmp file or anything else.
  66. This works if you already have ~/bin.
  67. 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.
  68. `-C ~/bin` puts the file in the designated path. In this case, `~/bin`.</div>
  69. <ul style="list-style:none; padding: 0; margin: 0">
  70.    <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>
  71.    <li><a href="/commands/by/renich">View all commands by <strong>renich</strong></a></li>
  72. </ul>
  73. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  74. <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>
  75. ]]></description>
  76.      <pubDate>Tue, 12 Aug 2025 03:38:07 +0000</pubDate>
  77.      <comments>http://www.commandlinefu.com/commands/view/41880/extract-one-file-from-a-remote-tar.gz-and-put-it-where-you-want-it</comments>
  78.    </item>
  79.    <item>
  80.      <title><![CDATA[List memory percentage per user]]></title>
  81.      <author>Raboo (http://www.letit.se)</author>
  82.      <link>http://www.commandlinefu.com/commands/view/41712/list-memory-percentage-per-user</link>
  83.      <guid>http://www.commandlinefu.com/commands/view/41712/list-memory-percentage-per-user</guid>
  84.      <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>
  85. <div style="">Show top 10 users by memory combined consumption in percentage.</div>
  86. <ul style="list-style:none; padding: 0; margin: 0">
  87.    <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>
  88.    <li><a href="/commands/by/Raboo">View all commands by <strong>Raboo</strong></a></li>
  89. </ul>
  90. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  91. <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>
  92. ]]></description>
  93.      <pubDate>Fri, 01 Aug 2025 07:06:55 +0000</pubDate>
  94.      <comments>http://www.commandlinefu.com/commands/view/41712/list-memory-percentage-per-user</comments>
  95.    </item>
  96.    <item>
  97.      <title><![CDATA[Display history of reboots]]></title>
  98.      <author>mpb</author>
  99.      <link>http://www.commandlinefu.com/commands/view/41592/display-history-of-reboots</link>
  100.      <guid>http://www.commandlinefu.com/commands/view/41592/display-history-of-reboots</guid>
  101.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ $ journalctl --list-boots    # display tabular history of reboots</code>
  102. <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:
  103.    journalctl --list-boots
  104. This could be useful if you are trying to track when a power outage occurred.
  105. An alternative is:
  106. <code>/bin/sudo grep &quot;^-&quot; /var/log/boot.log</code>
  107. ^ This only shows the boot start date/times while the journalctl command shows a "LAST ENTRY" associated with each "BOOT ID".</div>
  108. <ul style="list-style:none; padding: 0; margin: 0">
  109.    <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>
  110.    <li><a href="/commands/by/mpb">View all commands by <strong>mpb</strong></a></li>
  111. </ul>
  112. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  113. <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>
  114. ]]></description>
  115.      <pubDate>Tue, 22 Jul 2025 14:52:34 +0000</pubDate>
  116.      <comments>http://www.commandlinefu.com/commands/view/41592/display-history-of-reboots</comments>
  117.    </item>
  118.    <item>
  119.      <title><![CDATA[Tapping screen for TikTok using shell script]]></title>
  120.      <author>wuseman1</author>
  121.      <link>http://www.commandlinefu.com/commands/view/40710/tapping-screen-for-tiktok-using-shell-script</link>
  122.      <guid>http://www.commandlinefu.com/commands/view/40710/tapping-screen-for-tiktok-using-shell-script</guid>
  123.      <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>
  124. <div style=""></div>
  125. <ul style="list-style:none; padding: 0; margin: 0">
  126.    <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>
  127.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  128. </ul>
  129. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  130. <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>
  131. ]]></description>
  132.      <pubDate>Tue, 27 May 2025 13:32:54 +0000</pubDate>
  133.      <comments>http://www.commandlinefu.com/commands/view/40710/tapping-screen-for-tiktok-using-shell-script</comments>
  134.    </item>
  135.    <item>
  136.      <title><![CDATA[Mount SMB v1 share on Linux]]></title>
  137.      <author>swarzynski</author>
  138.      <link>http://www.commandlinefu.com/commands/view/39597/mount-smb-v1-share-on-linux</link>
  139.      <guid>http://www.commandlinefu.com/commands/view/39597/mount-smb-v1-share-on-linux</guid>
  140.      <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>
  141. <div style=""></div>
  142. <ul style="list-style:none; padding: 0; margin: 0">
  143.    <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>
  144.    <li><a href="/commands/by/swarzynski">View all commands by <strong>swarzynski</strong></a></li>
  145. </ul>
  146. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  147. <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>
  148. ]]></description>
  149.      <pubDate>Thu, 20 Mar 2025 08:16:19 +0000</pubDate>
  150.      <comments>http://www.commandlinefu.com/commands/view/39597/mount-smb-v1-share-on-linux</comments>
  151.    </item>
  152.    <item>
  153.      <title><![CDATA[Download and Extract mp3 from Youtube Video]]></title>
  154.      <author>keyboardsage</author>
  155.      <link>http://www.commandlinefu.com/commands/view/38091/download-and-extract-mp3-from-youtube-video</link>
  156.      <guid>http://www.commandlinefu.com/commands/view/38091/download-and-extract-mp3-from-youtube-video</guid>
  157.      <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>
  158. <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>
  159. <ul style="list-style:none; padding: 0; margin: 0">
  160.    <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>
  161.    <li><a href="/commands/by/keyboardsage">View all commands by <strong>keyboardsage</strong></a></li>
  162. </ul>
  163. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  164. <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>
  165. ]]></description>
  166.      <pubDate>Fri, 22 Nov 2024 19:54:54 +0000</pubDate>
  167.      <comments>http://www.commandlinefu.com/commands/view/38091/download-and-extract-mp3-from-youtube-video</comments>
  168.    </item>
  169.    <item>
  170.      <title><![CDATA[Get a random quote from Breaking Bad]]></title>
  171.      <author>malathion</author>
  172.      <link>http://www.commandlinefu.com/commands/view/36873/get-a-random-quote-from-breaking-bad</link>
  173.      <guid>http://www.commandlinefu.com/commands/view/36873/get-a-random-quote-from-breaking-bad</guid>
  174.      <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>
  175. <div style="">Hit an API with curl returning a random quote, then parse the result with jq.</div>
  176. <ul style="list-style:none; padding: 0; margin: 0">
  177.    <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>
  178.    <li><a href="/commands/by/malathion">View all commands by <strong>malathion</strong></a></li>
  179. </ul>
  180. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  181. <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>
  182. ]]></description>
  183.      <pubDate>Mon, 09 Sep 2024 14:58:37 +0000</pubDate>
  184.      <comments>http://www.commandlinefu.com/commands/view/36873/get-a-random-quote-from-breaking-bad</comments>
  185.    </item>
  186.    <item>
  187.      <title><![CDATA[Matrix - Just 1 wobbly line rather then a rain! (shorter)]]></title>
  188.      <author>wuseman1</author>
  189.      <link>http://www.commandlinefu.com/commands/view/36780/matrix-just-1-wobbly-line-rather-then-a-rain-shorter</link>
  190.      <guid>http://www.commandlinefu.com/commands/view/36780/matrix-just-1-wobbly-line-rather-then-a-rain-shorter</guid>
  191.      <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>
  192. <div style="">No sample. Try it and see the magic!</div>
  193. <ul style="list-style:none; padding: 0; margin: 0">
  194.    <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>
  195.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  196. </ul>
  197. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  198. <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>
  199. ]]></description>
  200.      <pubDate>Mon, 02 Sep 2024 00:44:33 +0000</pubDate>
  201.      <comments>http://www.commandlinefu.com/commands/view/36780/matrix-just-1-wobbly-line-rather-then-a-rain-shorter</comments>
  202.    </item>
  203.    <item>
  204.      <title><![CDATA[Matrix - Just 1 wobbly line rather then a rain!]]></title>
  205.      <author>wuseman1</author>
  206.      <link>http://www.commandlinefu.com/commands/view/36779/matrix-just-1-wobbly-line-rather-then-a-rain</link>
  207.      <guid>http://www.commandlinefu.com/commands/view/36779/matrix-just-1-wobbly-line-rather-then-a-rain</guid>
  208.      <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>
  209. <div style="">Remove clear; sleep 5 and echo for not doing sample!</div>
  210. <ul style="list-style:none; padding: 0; margin: 0">
  211.    <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>
  212.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  213. </ul>
  214. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  215. <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>
  216. ]]></description>
  217.      <pubDate>Mon, 02 Sep 2024 00:40:34 +0000</pubDate>
  218.      <comments>http://www.commandlinefu.com/commands/view/36779/matrix-just-1-wobbly-line-rather-then-a-rain</comments>
  219.    </item>
  220.    <item>
  221.      <title><![CDATA[This command will help you to hunt the current mysql query statement in real time. (-R is deprecated, using updated -Y)]]></title>
  222.      <author>wuseman1</author>
  223.      <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>
  224.      <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>
  225.      <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>
  226. <div style=""></div>
  227. <ul style="list-style:none; padding: 0; margin: 0">
  228.    <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>
  229.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  230. </ul>
  231. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  232. <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>
  233. ]]></description>
  234.      <pubDate>Mon, 26 Aug 2024 19:29:05 +0000</pubDate>
  235.      <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>
  236.    </item>
  237.    <item>
  238.      <title><![CDATA[Read  /etc/passwd with printf in a smarter and shorter way then some deliberately obfuscated shell commands from unethicals.]]></title>
  239.      <author>wuseman1</author>
  240.      <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>
  241.      <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>
  242.      <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>
  243. <div style=""></div>
  244. <ul style="list-style:none; padding: 0; margin: 0">
  245.    <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>
  246.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  247. </ul>
  248. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  249. <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>
  250. ]]></description>
  251.      <pubDate>Mon, 26 Aug 2024 19:20:48 +0000</pubDate>
  252.      <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>
  253.    </item>
  254.    <item>
  255.      <title><![CDATA[Portscan entire internet (ipv4)]]></title>
  256.      <author>wuseman1</author>
  257.      <link>http://www.commandlinefu.com/commands/view/36692/portscan-entire-internet-ipv4</link>
  258.      <guid>http://www.commandlinefu.com/commands/view/36692/portscan-entire-internet-ipv4</guid>
  259.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ (masscan 0.0.0.0/0 -p80 --banner --exclude 255.255.255.255 --max-rate 100000|tee internet_ips_to_block_ranges.txt 2&gt;&amp;1 /dev/null);  1&amp;&gt; /dev/null</code>
  260. <div style=""></div>
  261. <ul style="list-style:none; padding: 0; margin: 0">
  262.    <li><a href="http://www.commandlinefu.com/commands/view/36692/portscan-entire-internet-ipv4">View this command to comment, vote or add to favourites</a></li>
  263.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  264. </ul>
  265. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  266. <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>
  267. ]]></description>
  268.      <pubDate>Mon, 26 Aug 2024 19:14:02 +0000</pubDate>
  269.      <comments>http://www.commandlinefu.com/commands/view/36692/portscan-entire-internet-ipv4</comments>
  270.    </item>
  271.    <item>
  272.      <title><![CDATA[In emergency situations, in order not to panic, shut down the following port on the network with the following rather then shutting down the PC.]]></title>
  273.      <author>wuseman1</author>
  274.      <link>http://www.commandlinefu.com/commands/view/36691/in-emergency-situations-in-order-not-to-panic-shut-down-the-following-port-on-the-network-with-the-following-rather-then-shutting-down-the-pc.</link>
  275.      <guid>http://www.commandlinefu.com/commands/view/36691/in-emergency-situations-in-order-not-to-panic-shut-down-the-following-port-on-the-network-with-the-following-rather-then-shutting-down-the-pc.</guid>
  276.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ fuser -k 445/tcp</code>
  277. <div style=""></div>
  278. <ul style="list-style:none; padding: 0; margin: 0">
  279.    <li><a href="http://www.commandlinefu.com/commands/view/36691/in-emergency-situations-in-order-not-to-panic-shut-down-the-following-port-on-the-network-with-the-following-rather-then-shutting-down-the-pc.">View this command to comment, vote or add to favourites</a></li>
  280.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  281. </ul>
  282. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  283. <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>
  284. ]]></description>
  285.      <pubDate>Mon, 26 Aug 2024 19:11:03 +0000</pubDate>
  286.      <comments>http://www.commandlinefu.com/commands/view/36691/in-emergency-situations-in-order-not-to-panic-shut-down-the-following-port-on-the-network-with-the-following-rather-then-shutting-down-the-pc.</comments>
  287.    </item>
  288.    <item>
  289.      <title><![CDATA[Generate a correct mac addr.]]></title>
  290.      <author>wuseman1</author>
  291.      <link>http://www.commandlinefu.com/commands/view/36690/generate-a-correct-mac-addr.</link>
  292.      <guid>http://www.commandlinefu.com/commands/view/36690/generate-a-correct-mac-addr.</guid>
  293.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ od -An -N6 -tx1 /dev/urandom |sed -e 's/^  *//' -e 's/  */:/g' -e 's/:$//' -e 's/^\(.\)[13579bdf]/\10/'</code>
  294. <div style="">1) The last sed expression ensures the unicast/multicast bit is set to zero
  295. 2) The greedy space replacements are for portability across UNIX seds</div>
  296. <ul style="list-style:none; padding: 0; margin: 0">
  297.    <li><a href="http://www.commandlinefu.com/commands/view/36690/generate-a-correct-mac-addr.">View this command to comment, vote or add to favourites</a></li>
  298.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  299. </ul>
  300. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  301. <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>
  302. ]]></description>
  303.      <pubDate>Mon, 26 Aug 2024 19:10:02 +0000</pubDate>
  304.      <comments>http://www.commandlinefu.com/commands/view/36690/generate-a-correct-mac-addr.</comments>
  305.    </item>
  306.    <item>
  307.      <title><![CDATA[Launch hidden commands.]]></title>
  308.      <author>wuseman1</author>
  309.      <link>http://www.commandlinefu.com/commands/view/36689/launch-hidden-commands.</link>
  310.      <guid>http://www.commandlinefu.com/commands/view/36689/launch-hidden-commands.</guid>
  311.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ /bin/bash -c &quot;exec ls&quot;</code>
  312. <div style=""></div>
  313. <ul style="list-style:none; padding: 0; margin: 0">
  314.    <li><a href="http://www.commandlinefu.com/commands/view/36689/launch-hidden-commands.">View this command to comment, vote or add to favourites</a></li>
  315.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  316. </ul>
  317. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  318. <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>
  319. ]]></description>
  320.      <pubDate>Mon, 26 Aug 2024 19:08:24 +0000</pubDate>
  321.      <comments>http://www.commandlinefu.com/commands/view/36689/launch-hidden-commands.</comments>
  322.    </item>
  323.    <item>
  324.      <title><![CDATA[Do we use: 'Wayland' OR 'x11' (systemd version)]]></title>
  325.      <author>wuseman1</author>
  326.      <link>http://www.commandlinefu.com/commands/view/36688/do-we-use-wayland-or-x11-systemd-version</link>
  327.      <guid>http://www.commandlinefu.com/commands/view/36688/do-we-use-wayland-or-x11-systemd-version</guid>
  328.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ loginctl show-session $XDG_SESSION_ID -p Type</code>
  329. <div style=""></div>
  330. <ul style="list-style:none; padding: 0; margin: 0">
  331.    <li><a href="http://www.commandlinefu.com/commands/view/36688/do-we-use-wayland-or-x11-systemd-version">View this command to comment, vote or add to favourites</a></li>
  332.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  333. </ul>
  334. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  335. <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>
  336. ]]></description>
  337.      <pubDate>Mon, 26 Aug 2024 19:07:02 +0000</pubDate>
  338.      <comments>http://www.commandlinefu.com/commands/view/36688/do-we-use-wayland-or-x11-systemd-version</comments>
  339.    </item>
  340.    <item>
  341.      <title><![CDATA[Do we use: 'Wayland' OR 'x11']]></title>
  342.      <author>wuseman1</author>
  343.      <link>http://www.commandlinefu.com/commands/view/36687/do-we-use-wayland-or-x11</link>
  344.      <guid>http://www.commandlinefu.com/commands/view/36687/do-we-use-wayland-or-x11</guid>
  345.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ printf 'Session is: %s\n' &quot;${DISPLAY:+X11}${WAYLAND_DISPLAY:+WAYLAND}&quot;</code>
  346. <div style=""></div>
  347. <ul style="list-style:none; padding: 0; margin: 0">
  348.    <li><a href="http://www.commandlinefu.com/commands/view/36687/do-we-use-wayland-or-x11">View this command to comment, vote or add to favourites</a></li>
  349.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  350. </ul>
  351. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  352. <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>
  353. ]]></description>
  354.      <pubDate>Mon, 26 Aug 2024 19:06:32 +0000</pubDate>
  355.      <comments>http://www.commandlinefu.com/commands/view/36687/do-we-use-wayland-or-x11</comments>
  356.    </item>
  357.    <item>
  358.      <title><![CDATA[View emerge log by date in humand friendly time]]></title>
  359.      <author>wuseman1</author>
  360.      <link>http://www.commandlinefu.com/commands/view/36686/view-emerge-log-by-date-in-humand-friendly-time</link>
  361.      <guid>http://www.commandlinefu.com/commands/view/36686/view-emerge-log-by-date-in-humand-friendly-time</guid>
  362.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ awk -F: '{print strftime(&quot;%Y-%m-%d -&gt; %X --&gt; &quot;, $1),$2}' /var/log/emerge.log</code>
  363. <div style=""></div>
  364. <ul style="list-style:none; padding: 0; margin: 0">
  365.    <li><a href="http://www.commandlinefu.com/commands/view/36686/view-emerge-log-by-date-in-humand-friendly-time">View this command to comment, vote or add to favourites</a></li>
  366.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  367. </ul>
  368. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  369. <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>
  370. ]]></description>
  371.      <pubDate>Mon, 26 Aug 2024 19:03:05 +0000</pubDate>
  372.      <comments>http://www.commandlinefu.com/commands/view/36686/view-emerge-log-by-date-in-humand-friendly-time</comments>
  373.    </item>
  374.    <item>
  375.      <title><![CDATA[Find the right intel-ucode firmware for Intel GPU]]></title>
  376.      <author>wuseman1</author>
  377.      <link>http://www.commandlinefu.com/commands/view/36685/find-the-right-intel-ucode-firmware-for-intel-gpu</link>
  378.      <guid>http://www.commandlinefu.com/commands/view/36685/find-the-right-intel-ucode-firmware-for-intel-gpu</guid>
  379.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ iucode_tool -S -l /lib/firmware/intel-ucode/*</code>
  380. <div style=""></div>
  381. <ul style="list-style:none; padding: 0; margin: 0">
  382.    <li><a href="http://www.commandlinefu.com/commands/view/36685/find-the-right-intel-ucode-firmware-for-intel-gpu">View this command to comment, vote or add to favourites</a></li>
  383.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  384. </ul>
  385. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  386. <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>
  387. ]]></description>
  388.      <pubDate>Mon, 26 Aug 2024 19:01:55 +0000</pubDate>
  389.      <comments>http://www.commandlinefu.com/commands/view/36685/find-the-right-intel-ucode-firmware-for-intel-gpu</comments>
  390.    </item>
  391.    <item>
  392.      <title><![CDATA[Disable Show More Options on Windows 11]]></title>
  393.      <author>wuseman1</author>
  394.      <link>http://www.commandlinefu.com/commands/view/36684/disable-show-more-options-on-windows-11</link>
  395.      <guid>http://www.commandlinefu.com/commands/view/36684/disable-show-more-options-on-windows-11</guid>
  396.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ reg add &quot;HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32&quot; /f /ve</code>
  397. <div style="">Enable it again: reg delete "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f</div>
  398. <ul style="list-style:none; padding: 0; margin: 0">
  399.    <li><a href="http://www.commandlinefu.com/commands/view/36684/disable-show-more-options-on-windows-11">View this command to comment, vote or add to favourites</a></li>
  400.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  401. </ul>
  402. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  403. <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>
  404. ]]></description>
  405.      <pubDate>Mon, 26 Aug 2024 18:56:51 +0000</pubDate>
  406.      <comments>http://www.commandlinefu.com/commands/view/36684/disable-show-more-options-on-windows-11</comments>
  407.    </item>
  408.    <item>
  409.      <title><![CDATA[Generate a QR code in the terminal]]></title>
  410.      <author>wuseman1</author>
  411.      <link>http://www.commandlinefu.com/commands/view/36681/generate-a-qr-code-in-the-terminal</link>
  412.      <guid>http://www.commandlinefu.com/commands/view/36681/generate-a-qr-code-in-the-terminal</guid>
  413.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ printf 'https://www.gentoo.org/' | curl -F-=\&lt;- qrenco.de</code>
  414. <div style=""></div>
  415. <ul style="list-style:none; padding: 0; margin: 0">
  416.    <li><a href="http://www.commandlinefu.com/commands/view/36681/generate-a-qr-code-in-the-terminal">View this command to comment, vote or add to favourites</a></li>
  417.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  418. </ul>
  419. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  420. <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>
  421. ]]></description>
  422.      <pubDate>Mon, 26 Aug 2024 18:41:24 +0000</pubDate>
  423.      <comments>http://www.commandlinefu.com/commands/view/36681/generate-a-qr-code-in-the-terminal</comments>
  424.    </item>
  425.    <item>
  426.      <title><![CDATA[Shuffle a reversed string without new lines (Simple way to create a progress bar)]]></title>
  427.      <author>wuseman1</author>
  428.      <link>http://www.commandlinefu.com/commands/view/36680/shuffle-a-reversed-string-without-new-lines-simple-way-to-create-a-progress-bar</link>
  429.      <guid>http://www.commandlinefu.com/commands/view/36680/shuffle-a-reversed-string-without-new-lines-simple-way-to-create-a-progress-bar</guid>
  430.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ while true; do     slumpad_eversed=$(echo &quot;$eversed_part&quot; | grep -o . | shuf | tr -d '\n');     tput cr &amp;&amp; tput el &amp;&amp; echo -n &quot;$r_part$slumpad_eversed&quot; ;     sleep 1  ; done</code>
  431. <div style=""></div>
  432. <ul style="list-style:none; padding: 0; margin: 0">
  433.    <li><a href="http://www.commandlinefu.com/commands/view/36680/shuffle-a-reversed-string-without-new-lines-simple-way-to-create-a-progress-bar">View this command to comment, vote or add to favourites</a></li>
  434.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  435. </ul>
  436. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  437. <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>
  438. ]]></description>
  439.      <pubDate>Mon, 26 Aug 2024 18:37:43 +0000</pubDate>
  440.      <comments>http://www.commandlinefu.com/commands/view/36680/shuffle-a-reversed-string-without-new-lines-simple-way-to-create-a-progress-bar</comments>
  441.    </item>
  442.    <item>
  443.      <title><![CDATA[Shuffle two letters randomly]]></title>
  444.      <author>wuseman1</author>
  445.      <link>http://www.commandlinefu.com/commands/view/36678/shuffle-two-letters-randomly</link>
  446.      <guid>http://www.commandlinefu.com/commands/view/36678/shuffle-two-letters-randomly</guid>
  447.      <description><![CDATA[<code style="padding:5px; font-family:monospace; font-size:12pt">$ while true; do     shuffled_letter1=$(printf &quot;%s\n&quot; &quot;${letters[@]}&quot; | shuf -n 1);     shuffled_letter2=$(printf &quot;%s\n&quot; &quot;${letters[@]}&quot; | shuf -n 1);      printf &quot;%s%s\r&quot; &quot;$shuffled_letter1&quot; &quot;$shuffled_letter2&quot;;     sleep 0.1; done</code>
  448. <div style="">Use variable:  letters=("a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z")</div>
  449. <ul style="list-style:none; padding: 0; margin: 0">
  450.    <li><a href="http://www.commandlinefu.com/commands/view/36678/shuffle-two-letters-randomly">View this command to comment, vote or add to favourites</a></li>
  451.    <li><a href="/commands/by/wuseman1">View all commands by <strong>wuseman1</strong></a></li>
  452. </ul>
  453. <p><a href="http://www.commandlinefu.com"><img src="http://www.commandlinefu.com/images/small-logo.jpg" alt="commandlinefu.com"/></a></p>
  454. <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>
  455. ]]></description>
  456.      <pubDate>Mon, 26 Aug 2024 18:36:29 +0000</pubDate>
  457.      <comments>http://www.commandlinefu.com/commands/view/36678/shuffle-two-letters-randomly</comments>
  458.    </item>
  459.  </channel>
  460. </rss>
  461.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda