<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040773" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040773</link>
    <description></description>
    <language>en</language>
          <item>
    <title>teammatt3 wrote:

But you</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228966</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;teammatt3 wrote:&lt;/strong&gt; But you bring up the portability of dot files. Every shell script I have could be put into .bashrc as an alias, right? That seems like a better idea because I could just bring over my bashrc file and not my whole bin directory.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Exactly.  If it&#039;s something you&#039;re interesting in porting to multiple systems, certainly try setting it up as an alias.&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Mar 2008 18:39:29 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1228966 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Just found out this one, &quot;cd</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228961</link>
    <description> &lt;p&gt;Just found out this one, &quot;cd -&quot;. If you start in /root and change dirs over to /home/matt, cd - will take you to /root. Typing it again will take you back to /home/matt. It&#039;s like a back/forward button. I haven&#039;t really used it, but it might be useful.&lt;/p&gt;
&lt;p&gt;I don&#039;t use aliases very much, I write shell scripts (I always forget the syntax for aliases). But you bring up the portability of dot files. Every shell script I have could be put into .bashrc as an alias, right? That seems like a better idea because I could just bring over my bashrc file and not my whole bin directory.&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Mar 2008 15:22:38 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1228961 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>JeevesBond wrote:

Hehe, I</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228952</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;JeevesBond wrote:&lt;/strong&gt; Hehe, I read this as: &#039;I carry out highly repetitious, &lt;strong&gt;cynical&lt;/strong&gt; tasks.&#039;&lt;/p&gt;
&lt;p&gt;Like incrementally posting more and more depressed comments on the end of the world is nigh forums.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href=&quot;http://reddit.com/user/schtarb/&quot;&gt;I do that too&lt;/a&gt;. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;JeevesBond wrote:&lt;/strong&gt; Or repeatedly bashing ones head against the keyboard.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I see what you did there.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;JeevesBond wrote:&lt;/strong&gt; More on topic (about aliases), I discovered these the other day myself. They allow really long commands to be shortened to single words&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Definitely one of the most useful features.  My .bashrc is filled with aliases to the point that I&#039;m sometimes uncomfortable in foreign shells without my customisations.  Thankfully dotfiles are easily portable!&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Mar 2008 12:04:33 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1228952 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>In the other 40% of the time</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228943</link>
    <description> &lt;blockquote&gt;&lt;p&gt;In the other 40% of the time I carry out highly repetitious, cyclical tasks.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Hehe, I read this as: &#039;I carry out highly repetitious, &lt;strong&gt;cynical&lt;/strong&gt; tasks.&#039;&lt;/p&gt;
&lt;p&gt;Like incrementally posting more and more depressed comments on the end of the world is nigh forums. Or repeatedly bashing ones head against the keyboard. That&#039;s when hating the world really becomes useful. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;But seriously, I had totally forgotten about those search commands, I&#039;d actually started to think I was just dreaming of their existence! More on topic (about aliases), I discovered these the other day myself. They allow really long commands to be shortened to single words, for example:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;alias checkouthead=&amp;#039;cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout drupal&amp;#039;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Gets rid of all the tedious typing to checkout Drupal HEAD, reducing it to: &lt;code&gt;checkouthead&lt;/code&gt;. These can be switched on/added in &lt;code&gt;~/.bashrc&lt;/code&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Mar 2008 21:45:50 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228943 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>That&#039;s pretty much all I</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228938</link>
    <description> &lt;p&gt;That&#039;s pretty much all I need for the majority of my time in the command line, too.  Say, 60%.&lt;/p&gt;
&lt;p&gt;In the other 40% of the time I carry out highly repetitious, cyclical tasks.  Like incrementally building, testing, and rebuilding a program.  Or repeatedly shutting down, reconfiguring, and starting up a server.  That&#039;s when the fancy shortcuts really become useful.&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Mar 2008 15:50:36 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1228938 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I just like being able to</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228936</link>
    <description> &lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/surprise.png&quot; title=&quot;Shocked&quot; alt=&quot;Shocked&quot; class=&quot;smiley-content&quot; /&gt; I just like being able to tab to complete the directory path and arrow up to access recent commands!&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Mar 2008 15:00:31 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1228936 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Input history.  C-r to</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228931</link>
    <description> &lt;p&gt;Input history.  &lt;code&gt;C-r&lt;/code&gt; to search backwards incrementally and &lt;code&gt;C-s&lt;/code&gt; to search forwards.  In most long sessions in the command line, I&#039;m working on an iterative task, say repeatedly starting and stopping a server, or building a program, etc.  The commands are too transient to warrant aliasing or scripting because I probably won&#039;t want in future sessions.  But I don&#039;t want to keep tapping the up-key for each command -- or worse, re-type it.&lt;/p&gt;
&lt;p&gt;Of course, bash does remember inputs even in a future session, which can be handy.  My rule is that if I find myself resorting to the input history for a command in more than two successive sessions, I want it in a script or alias.&lt;/p&gt;
&lt;p&gt;The other big feature along the same lines is history expansions.  &lt;code&gt;!!&lt;/code&gt; refers to the previous command, &lt;code&gt;!-n&lt;/code&gt; refers to the nth command back, &lt;code&gt;!$&lt;/code&gt; refers to the last argument of the previous command, and so on.  Makes it easy to string together a command like so:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$ ./configure --some-long-options=inconvenient --we-would-hate-retyping=this&lt;br /&gt;&amp;nbsp; [much output]&lt;br /&gt;$ make some-target&lt;br /&gt;$ make another-target&lt;br /&gt;&amp;nbsp; [error due to incompatible library]&lt;br /&gt;$ aptitude install new-library&lt;br /&gt;$ !./conf? &amp;amp;&amp;amp; !?some? &amp;amp;&amp;amp; !?another?&lt;br /&gt;&amp;nbsp; [expands to ./configure... &amp;amp;&amp;amp; make some-target &amp;amp;&amp;amp; make another-target]&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;More on these in the &lt;a href=&quot;http://www.catonmat.net/blog/the-definitive-guide-to-bash-command-line-history/&quot;&gt;Definitive Guide to Bash Command Line History&lt;/a&gt;.&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Mar 2008 11:52:28 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1228931 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>...and rm *.* doesn&#039;t remove</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228922</link>
    <description> &lt;p&gt;...and rm *.* doesn&#039;t remove all files on the filesystem.  There are a lot of files with no extension, and hence no &#039;.&#039;. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Mar 2008 01:30:38 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1228922 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>cd \
What&#039;s this, a</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228917</link>
    <description> &lt;blockquote&gt;&lt;p&gt;&lt;code&gt;cd \\&lt;/code&gt;&#039;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;What&#039;s this, a backslash? Directory separators aren&#039;t &lt;em&gt;backslashes&lt;/em&gt;! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Mar 2008 21:54:30 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1228917 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>cd \
rm *.*</title>
    <link>https://www.webmaster-forums.net/server-management/your-favorite-command-line-tricks#comment-1228895</link>
    <description> &lt;p&gt;cd \\&lt;br /&gt;
rm *.*    &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/bomb.png&quot; title=&quot;Bomb&quot; alt=&quot;Bomb&quot; class=&quot;smiley-content&quot; /&gt; &lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/devilish.png&quot; title=&quot;Evil&quot; alt=&quot;Evil&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Mar 2008 17:26:33 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1228895 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
