<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: What is Your Favourite Command Line Trick?	</title>
	<atom:link href="https://www.geeksmint.com/favourite-linux-command-line-trick/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.geeksmint.com/favourite-linux-command-line-trick/</link>
	<description>GeeksMint: Computers, How-to&#039;s, Internet, Tips and Tricks</description>
	<lastBuildDate>Fri, 12 Oct 2018 18:16:34 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: FeRD		</title>
		<link>https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3197</link>

		<dc:creator><![CDATA[FeRD]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 18:16:34 +0000</pubDate>
		<guid isPermaLink="false">https://www.geeksmint.com/?p=8911#comment-3197</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3154&quot;&gt;Ev&lt;/a&gt;.

&lt;blockquote&gt;I have a config.fish file with so many aliases I sometimes have to open the file to see what the actual command I have aliased.&lt;/blockquote&gt; After facing that problem for too long, my zsh setup now includes a &lt;code&gt;$HOME/.zsh_functions/whmap&lt;/code&gt; function. It searches all available commands (including aliases, functions, etc.) for the string pattern I pass as an argument:
&lt;pre&gt;&lt;code&gt;
$ whmap encode
dirac_encoder is /usr/bin/dirac_encoder
gtk-encode-symbolic-svg is /usr/bin/gtk-encode-symbolic-svg
h264encode is /usr/bin/h264encode
mencoder is /usr/bin/mencoder
mimeencode is /usr/bin/mimeencode
mimencode is /usr/bin/mimencode
mmencode is /usr/bin/mmencode
theora_encode is /usr/bin/theora_encode
uuencode is /usr/bin/uuencode

$ whmap whmap
whmap () {
	noglob builtin whence -mavf *$1*
}
&lt;/code&gt;&lt;/pre&gt; (The nonsensical name is a relic of a much earlier version of the function, when it performed a path-only search via &lt;code&gt;noglob builtin whence -map *$1*&lt;/code&gt;. I later extended it to also search function names and builtins.)

So as long as I can remember at least part of an alias or function&#039;s name, I can usually find it. 

Doesn&#039;t help if I &lt;i&gt;can&#039;t&lt;/i&gt; remember the name, of course. But I don&#039;t use a lot of those &quot;shortcut&quot;-type aliases — like, two-letter equivalents for a certain command, or whatever — specifically because of that problem. I figure, a mnemonic isn&#039;t really helpful unless it&#039;s so obvious and unforgettable that there&#039;s no question what it would be. (Like the &lt;code&gt;alias ll=&#039;ls -l&#039;&lt;/code&gt; that&#039;s part of coreutils&#039; &lt;code&gt;/etc/profile.d/colorls.sh&lt;/code&gt; ­— though I don&#039;t even use that one, myself, because typing &lt;code&gt;ls -l&lt;/code&gt; is just not that time-consuming.)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3154">Ev</a>.</p>
<blockquote><p>I have a config.fish file with so many aliases I sometimes have to open the file to see what the actual command I have aliased.</p></blockquote>
<p> After facing that problem for too long, my zsh setup now includes a <code>$HOME/.zsh_functions/whmap</code> function. It searches all available commands (including aliases, functions, etc.) for the string pattern I pass as an argument:</p>
<pre><code>
$ whmap encode
dirac_encoder is /usr/bin/dirac_encoder
gtk-encode-symbolic-svg is /usr/bin/gtk-encode-symbolic-svg
h264encode is /usr/bin/h264encode
mencoder is /usr/bin/mencoder
mimeencode is /usr/bin/mimeencode
mimencode is /usr/bin/mimencode
mmencode is /usr/bin/mmencode
theora_encode is /usr/bin/theora_encode
uuencode is /usr/bin/uuencode

$ whmap whmap
whmap () {
	noglob builtin whence -mavf *$1*
}
</code></pre>
<p> (The nonsensical name is a relic of a much earlier version of the function, when it performed a path-only search via <code>noglob builtin whence -map *$1*</code>. I later extended it to also search function names and builtins.)</p>
<p>So as long as I can remember at least part of an alias or function&#8217;s name, I can usually find it. </p>
<p>Doesn&#8217;t help if I <i>can&#8217;t</i> remember the name, of course. But I don&#8217;t use a lot of those &#8220;shortcut&#8221;-type aliases — like, two-letter equivalents for a certain command, or whatever — specifically because of that problem. I figure, a mnemonic isn&#8217;t really helpful unless it&#8217;s so obvious and unforgettable that there&#8217;s no question what it would be. (Like the <code>alias ll='ls -l'</code> that&#8217;s part of coreutils&#8217; <code>/etc/profile.d/colorls.sh</code> ­— though I don&#8217;t even use that one, myself, because typing <code>ls -l</code> is just not that time-consuming.)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ev		</title>
		<link>https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3154</link>

		<dc:creator><![CDATA[Ev]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 03:51:45 +0000</pubDate>
		<guid isPermaLink="false">https://www.geeksmint.com/?p=8911#comment-3154</guid>

					<description><![CDATA[I use FISH for my shell instead of bash or zsh. Of course I can easily activate bash with the command of the same name. I have a config.fish file with so many aliases I sometimes have to open the file to see what the actual command I have aliased. Here&#039;s a few examples I can think of off the top of my head since I&#039;m not at home and posting this with my phone 

no=&#039;nano&#039; 
sno=&#039;sudo nano&#039;   
cdapts=&#039;cd /etc/apt/sources.list.d/&#039;
d20=&#039;rolldice 1d20&#039;
luxup=&#039;lumeus +5%&#039;
luxdn=&#039;lumeus -5%&#039;
upd=&#039;sudo apt update&#039; 
upg=&#039;sudo apt upgrade&#039; 
evfish=&#039;pluma ~/.config/fish/config.fish&#039; (which I use to easily open my fish config file to add, remove or modify my aliases).

Some aliases invoke multiple commands. 
gc=&#039;cd /downloads/git/ ; git clone&#039; 

I even have aliases which call back other aliases. 
up=&#039;upd ; upg&#039;

I have copied some commands into my .bashrc just in case. 

If anybody actually reads this and want the full list of fish aliases, I&#039;ll make available as a gist file on github.]]></description>
			<content:encoded><![CDATA[<p>I use FISH for my shell instead of bash or zsh. Of course I can easily activate bash with the command of the same name. I have a config.fish file with so many aliases I sometimes have to open the file to see what the actual command I have aliased. Here&#8217;s a few examples I can think of off the top of my head since I&#8217;m not at home and posting this with my phone </p>
<p>no=&#8217;nano&#8217;<br />
sno=&#8217;sudo nano&#8217;<br />
cdapts=&#8217;cd /etc/apt/sources.list.d/&#8217;<br />
d20=&#8217;rolldice 1d20&#8242;<br />
luxup=&#8217;lumeus +5%&#8217;<br />
luxdn=&#8217;lumeus -5%&#8217;<br />
upd=&#8217;sudo apt update&#8217;<br />
upg=&#8217;sudo apt upgrade&#8217;<br />
evfish=&#8217;pluma ~/.config/fish/config.fish&#8217; (which I use to easily open my fish config file to add, remove or modify my aliases).</p>
<p>Some aliases invoke multiple commands.<br />
gc=&#8217;cd /downloads/git/ ; git clone&#8217; </p>
<p>I even have aliases which call back other aliases.<br />
up=&#8217;upd ; upg&#8217;</p>
<p>I have copied some commands into my .bashrc just in case. </p>
<p>If anybody actually reads this and want the full list of fish aliases, I&#8217;ll make available as a gist file on github.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Divine		</title>
		<link>https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3217</link>

		<dc:creator><![CDATA[Divine]]></dc:creator>
		<pubDate>Tue, 09 Oct 2018 00:16:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.geeksmint.com/?p=8911#comment-3217</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3209&quot;&gt;birdbrain&lt;/a&gt;.

Thank you.

On another note, Disqus needs to bring support for at least, Markdown and preformatted text.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3209">birdbrain</a>.</p>
<p>Thank you.</p>
<p>On another note, Disqus needs to bring support for at least, Markdown and preformatted text.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Divine		</title>
		<link>https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3205</link>

		<dc:creator><![CDATA[Divine]]></dc:creator>
		<pubDate>Tue, 09 Oct 2018 00:15:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.geeksmint.com/?p=8911#comment-3205</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3144&quot;&gt;Richmond Loring&lt;/a&gt;.

For a designated number of minutes, yes.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3144">Richmond Loring</a>.</p>
<p>For a designated number of minutes, yes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Richmond Loring		</title>
		<link>https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3144</link>

		<dc:creator><![CDATA[Richmond Loring]]></dc:creator>
		<pubDate>Mon, 08 Oct 2018 22:07:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.geeksmint.com/?p=8911#comment-3144</guid>

					<description><![CDATA[sudo bash just keep that root she&#039;ll open.]]></description>
			<content:encoded><![CDATA[<p>sudo bash just keep that root she&#8217;ll open.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Isaiah DaProphet		</title>
		<link>https://www.geeksmint.com/favourite-linux-command-line-trick/#comment-3207</link>

		<dc:creator><![CDATA[Isaiah DaProphet]]></dc:creator>
		<pubDate>Mon, 08 Oct 2018 20:20:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.geeksmint.com/?p=8911#comment-3207</guid>

					<description><![CDATA[Sudo !! Is definitely the most used command in my bash history. 
I wrote something centuries ago on my blog it&#039;s a list of kick ass commands 
https://blog.urfix.com/25-ssh-commands-tricks/]]></description>
			<content:encoded><![CDATA[<p>Sudo !! Is definitely the most used command in my bash history.<br />
I wrote something centuries ago on my blog it&#8217;s a list of kick ass commands<br />
<a target="_blank" href="https://blog.urfix.com/25-ssh-commands-tricks/" rel="nofollow ugc">https://blog.urfix.com/25-ssh-commands-tricks/</a></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
