<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lindesk &#187; tips</title>
	<atom:link href="http://lindesk.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://lindesk.com</link>
	<description>Linux - on the Desktop</description>
	<lastBuildDate>Tue, 19 Jan 2010 05:54:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Customizing the Terminal: 6 Command Line Tips and Tricks</title>
		<link>http://lindesk.com/2009/04/customizing-the-terminal-6-command-line-tips-and-tricks/</link>
		<comments>http://lindesk.com/2009/04/customizing-the-terminal-6-command-line-tips-and-tricks/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 15:36:16 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://lindesk.com/?p=188</guid>
		<description><![CDATA[A few tips and tricks on the terminal to make you more efficient when using it. If you know of any other tips, add it in the comments section.]]></description>
			<content:encoded><![CDATA[<p><img src="http://lindesk.com/wp-content/uploads/2008/02/terminal.png" alt="Terminal" title="Terminal" width="128" height="128" class="alignnone size-full wp-image-96 intro" align="right" /></p>
<p class="intro">A few tips and tricks on the terminal to make you more efficient when using it. If you know of any other tips, add it in the comments section.</p>
<h2>1. ls Without ls</h2>
<p>When you are trying to cd into a deep folder, you might not know the correct folder name some levels deep. You might have to do something like&#8230;</p>
<pre><code class="cli">$ cd ~/Scripts/Perl
$ ls
bin	SedGUI       ToSee	Cronjobs  Maintenance
$ cd Maintenance</code></pre>
<p>There is an easier way &#8211; go to the wanted folder</p>
<pre><code class="cli">$ cd ~/Scripts/Perl</code></pre>
<p>Now, without pressing enter, double tap the TAB key. You will get a list of files. And the command prompt waiting to be filled&#8230;</p>
<pre><code class="cli">$ cd ~/Scripts/Perl/[TAB TAB]
bin	SedGUI       ToSee	Cronjobs  Maintenance
$ cd ~/Scripts/Perl/_</code></pre>
<p>You can also <strong>use double-TAB to auto-complete commands</strong>.</p>
<h2>2. Searching the history with Ctrl+R</h2>
<p>If you have to use a command you have already used before, press CTRL+R and then type a few characters of the command. The latest command with those characters will be shown &#8211; if that is the command you want to execute, press enter and it will be executed. If not, just press CTRL+R again and it will show the next command.</p>
<p>You have no idea how useful this tip is if you haven&#8217;t been using it. I use this all the time.</p>
<p>For more details, read <a href="http://www.lunix.com.au/2008/07/06/searching-bash_history-the-easy-way-with-tagging-and-ctrl-r/">this article</a>.</p>
<h2>3. Open Terminal using a Shortcut</h2>
<p>If you are a GUI user, chances are you prefer using a Terminal emulator(like <code>gnome-terminal</code> or <code>konsole</code>) instead of going into the Terminal mode by pressing CTRL+ALT+F1. If so, assign a shortcut to those emulator apps. I prefer using the shortcut &#8216;Ctrl+Alt+A&#8217; to do this.</p>
<h3>Gnome</h3>
<p>If you are in gnome, there is a very easy way to do this&#8230;</p>
<ul>
<li>Go to System &gt; Preferences &gt; Keyboard Shortcuts</li>
<li>Find &#8216;Run a Terminal&#8217; &#8211; assign the shortcut &#8216;Ctrl+Alt+A&#8217;</li>
</ul>
<h3>KDE</h3>
<ul>
<li>Right Click on the K-Menu &gt; Menu Editor</li>
<li>Find your terminal application in the list(usually System &gt; Terminal Applications &gt; Terminal)</li>
<li>Select the &#8216;Current Shortcut Key&#8217; option and set it to &#8216;Ctrl+Alt+A&#8217;</li>
</ul>
<p>You can also do this by opening the <a href="http://lindesk.com/2007/09/global-hotkeys-for-xmms-using-khotkeys/">KHotKeys</a> application.</p>
<h2>4. Bash Keyboard Shortcuts</h2>
<p>Learn the <a href="http://onlyubuntu.blogspot.com/2007/03/bash-shell-keyboard-shortcuts-for-linux.html">bash keyboard shortcuts</a> &#8211; these are the ones I use the most&#8230;</p>
<dl>
<dt>CTRL+R</dt>
<dd>Search the history. We already talked about this.</dd>
<dt>CTRL+L</dt>
<dd>Clears the screen. Use this instead of the <code>clear</code> command.</dd>
<dt>CTRL+D</dt>
<dd>Use this instead of the <code>exit</code> command.</dd>
<dt>CTRL+C</dt>
<dd>Kill whatever is running</dd>
<dt>CTRL+Z</dt>
<dd>Puts whatever is running into a suspended background process. Use <code>fg</code> to restore it.</dd>
</dl>
<h2>5. Find Command using <code>apropos</code></h2>
<p>Find the command you want using the <code>apropos</code> command. Just type in a description of the command as the first argument. For example, lets say you want to find the command to list the directory contents. Use the command&#8230;</p>
<pre><code class="cli">$ apropos "directory contents"
dir                  (1)  - list directory contents
ls                   (1)  - list directory contents
ls                   (1p)  - list directory contents
ntfsls               (8)  - list directory contents on an NTFS filesystem
vdir                 (1)  - list directory contents</code></pre>
<p>The only problem is that I can never spell &#8216;apropos&#8217; &#8211; so I keep this in my <code>.bashrc</code> file&#8230;</p>
<pre><code class="bash">alias apox='apropos'</code></pre>
<h2>6. Learn New Commands</h2>
<p>There are a few sites that publish cool commands on a daily/semi-daily basics &#8211; subscribe to those and learn new commands&#8230;</p>
<li><a href="http://txt.binnyva.com/">Txt &#8211; Linux Commands and Code Snippets</a> &#8211; My own site &#8211; I <a href="http://lindesk.com/2008/07/introducing-txt/">wrote about this</a> a while ago.</li>
<li><a href="http://www.commandlinefu.com/commands/browse">commandlinefu.com</a></li>
<li><a href="http://www.shell-fu.org/">shell-fu</a></li>
<li><a href="http://snipplr.com/all/language/bash">Bash Snippets</a></li>
<li><a href="http://www.codesnippt.com/search.php?lang=14">Codesnippt.com &#8211; Shell Scripts</a></li>
<li><a href="http://snippets.dzone.com/tag/bash">bash code</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2009/04/customizing-the-terminal-6-command-line-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Free eBook &#8211; Linux 101 Hacks</title>
		<link>http://lindesk.com/2009/02/free-ebook-linux-101-hacks/</link>
		<comments>http://lindesk.com/2009/02/free-ebook-linux-101-hacks/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 17:39:39 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://lindesk.com/?p=179</guid>
		<description><![CDATA[Ramesh, who blogs at <a href="http://www.thegeekstuff.com/">The Geek Stuff</a> have released a free eBook '<a href="http://www.thegeekstuff.com/2009/02/linux-101-hacks-download-free-ebook/">Linux 101 Hacks</a>'. Go download it - if you haven't done it already.]]></description>
			<content:encoded><![CDATA[<p><img src="http://lindesk.com/wp-content/uploads/2009/02/linux-101-hacks.jpg" alt="Linux 101 Hacks eBook" title="Linux 101 Hacks eBook" width="205" height="278" class="alignnone size-full wp-image-178 intro" align="right" /></p>
<p class="intro">Ramesh, who blogs at <a href="http://www.thegeekstuff.com/">The Geek Stuff</a> have released a free eBook &#8216;<a href="http://www.thegeekstuff.com/2009/02/linux-101-hacks-download-free-ebook/">Linux 101 Hacks</a>&#8216;. Go download it &#8211; if you haven&#8217;t done it already.</p>
<h2>About the Book</h2>
<p>There are total of 101 hacks in this book that will help you build a strong foundation in Linux. All the hacks in this book are explained with appropriate Linux command examples that are easy to follow.</p>
<p>Its kinda like my <a href="http://txt.binnyva.com/">txt site on Linux Commands</a> &#8211; except for the fact that the explanation on the book is much better than my site.</p>
<p>Here is a copy-paste of the table of contents for the book.</p>
<h3>Table of Contents</h3>
<h4>Chapter 1: Powerful CD Command Hacks</h4>
<ul>
<li> Hack 1. Use CD PATH to define the base directory for cd command</li>
<li> Hack 2. Use cd alias to navigate up the directory effectively</li>
<li> Hack 3. Perform mkdir and cd using a single command</li>
<li> Hack 4. Use â€œcd -â€ to toggle between the last two directories</li>
<li> Hack 5. Use dirs, pushd and popd to manipulate directory stack</li>
<li> Hack 6. Use â€œshopt -s cdspellâ€ to automatically correct mistyped directory names on cd</li>
</ul>
<h4>Chapter 2: Date Manipulation</h4>
<ul>
<li>Hack 7. Set System Date and Time</li>
<li> Hack 8. Set Hardware Date and Time</li>
<li> Hack 9. Display Current Date and Time in a Specific Format</li>
<li> Hack 10. Display Past Date and Time</li>
<li> Hack 11. Display Future Date and Time</li>
</ul>
<h4>Chapter 3: SSH Client Commands</h4>
<ul>
<li>Hack 12. Identify SSH Client Version</li>
<li> Hack 13. Login to Remote Host using SSH</li>
<li> Hack 14. Debug SSH Client Session</li>
<li> Hack 15. Toggle SSH Session using SSH Escape Character</li>
<li> Hack 16. SSH Session Statistics using SSH Escape Character</li>
</ul>
<h4>Chapter 4: Essential Linux Commands</h4>
<ul>
<li>Hack 17. Grep Command</li>
<li> Hack 18. Find Command</li>
<li> Hack 19. Suppress Standard Output and Error Message</li>
<li> Hack 20. Join Command</li>
<li> Hack 21. Change the Case</li>
<li> Hack 22. Xargs Command</li>
<li> Hack 23. Sort Command</li>
<li> Hack 24. Uniq Command</li>
<li> Hack 25. Cut Command</li>
<li> Hack 26. Stat Command</li>
<li> Hack 27. Diff Command</li>
<li> Hack 28. Display total connect time of users</li>
</ul>
<h4>Chapter 5: PS1, PS2, PS3, PS4 and PROMPT_COMMAND</h4>
<ul>
<li> Hack 29. PS1 &#8211; Default Interaction Prompt</li>
<li> Hack 30. PS2 &#8211; Continuation Interactive Prompt</li>
<li> Hack 31. PS3 &#8211; Prompt used by â€œselectâ€ inside shell script</li>
<li> Hack 32. PS4 &#8211; Used by â€œset -xâ€ to prefix tracing output</li>
<li> Hack 33. PROMPT_COMMAND</li>
</ul>
<h4>Chapter 6: Colorful and Functional Shell Prompt Using PS1</h4>
<ul>
<li>Hack 34. Display username, hostname and current working directory in the prompt</li>
<li>Hack 35. Display current time in the prompt</li>
<li>Hack 36. Display output of any command in the prompt</li>
<li>Hack 37. Change foreground color of the prompt</li>
<li>Hack 38. Change background color of the prompt</li>
<li>Hack 39. Display multiple colors in the prompt</li>
<li>Hack 40. Change the prompt color using tput</li>
<li>Hack 41. Create your own prompt using the available codes for PS1 variable</li>
<li>Hack 42. Use bash shell function inside PS1 variable</li>
<li>Hack 43. Use shell script inside PS1 variable</li>
</ul>
<h4>Chapter 7: Archive and Compression</h4>
<ul>
<li>Hack 44. Zip command basics</li>
<li> Hack 45. Advanced compression using zip command</li>
<li> Hack 46. Password Protection of Zip files</li>
<li> Hack 47. Validate a zip archive</li>
<li> Hack 48. Tar Command Basics</li>
<li> Hack 49. Combine gzip, bzip2 with tar</li>
</ul>
<h4>Chapter 8: Command Line History</h4>
<ul>
<li> Hack 50. Display TIMESTAMP in history using HISTTIMEFORMAT</li>
<li> Hack 51. Search the history using Control+R</li>
<li> Hack 52. Repeat previous command quickly using 4 different methods</li>
<li> Hack 53. Execute a specific command from history</li>
<li> Hack 54. Execute previous command that starts with a specific word</li>
<li> Hack 55. Control the total number of lines in the history using HISTSIZE</li>
<li> Hack 56. Change the history file name using HISTFILE</li>
<li> Hack 57. Eliminate the continuous repeated entry from history using HISTCONTROL</li>
<li> Hack 58. Erase duplicates across the whole history using HISTCONTROL</li>
<li> Hack 59. Force history not to remember a particular command using HISTCONTROL</li>
<li> Hack 60. Clear all the previous history using option -c</li>
<li> Hack 61. Substitute words from history commands</li>
<li> Hack 62. Substitute a specific argument for a specific command</li>
<li> Hack 63. Disable the usage of history using HISTSIZE</li>
<li> Hack 64. Ignore specific commands from the history using HISTIGNORE</li>
</ul>
<h4>Chapter 9: System Administration Tasks</h4>
<ul>
<li> Hack 65. Partition using fdisk</li>
<li> Hack 66. Format a partition using mke2fsk</li>
<li> Hack 67. Mount the partition</li>
<li> Hack 68. Fine tune the partition using tune2fs</li>
<li> Hack 69. Create a swap file system.</li>
<li> Hack 70. Create a new user</li>
<li> Hack 71. Create a new group and assign to an user</li>
<li> Hack 72. Setup SSH passwordless login in OpenSSH</li>
<li> Hack 73. Use ssh-copy-id along with ssh-agent</li>
<li> Hack 74. Crontab</li>
<li> Hack 75. Safe Reboot Of Linux Using Magic SysRq Key</li>
</ul>
<h4>Chapter 10: Apachectl and Httpd Examples</h4>
<ul>
<li> Hack 76. Pass different httpd.conf filename to apachectl</li>
<li> Hack 77. Use a temporary DocumentRoot without modifying httpd.conf</li>
<li> Hack 78. Increase the Log Level temporarily</li>
<li> Hack 79. Display the modules inside Apache</li>
<li> Hack 80. Show all accepted directives inside httpd.conf</li>
<li> Hack 81. Validate the httpd.conf after making changes</li>
<li> Hack 82. Display the httpd build parameters</li>
<li> Hack 83. Load a specific module only on demand</li>
</ul>
<h4>Chapter 11: Bash Scripting</h4>
<ul>
<li> Hack 84. Execution Sequence of .bash_* files</li>
<li> Hack 85. How to generate random number in bash shell</li>
<li> Hack 86. Debug a shell script</li>
<li> Hack 87. Quoting</li>
<li> Hack 88. Read data file fields inside a shell script</li>
</ul>
<h4>Chapter 12: System Monitoring and Performance</h4>
<ul>
<li> Hack 89. Free command</li>
<li>Hack 90. Top Command</li>
<li>Hack 91. Ps Command</li>
<li>Hack 92. Df Command</li>
<li>Hack 93. Kill Command</li>
<li>Hack 94. Du Command</li>
<li>Hack 95. lsof commands.</li>
<li>Hack 96. Sar Command</li>
<li>Hack 97. vmstat Command</li>
<li>Hack 98. Netstat Command</li>
<li>Hack 99. Sysctl Command</li>
<li>Hack 100. Nice Command</li>
<li>Hack 101. Renice Command</li>
</ul>
<h2>About the Author</h2>
<p>Ramesh Natarajan is the blogger behind <a href="http://www.thegeekstuff.com/">The Geek Stuff</a>. To know more about him and the site, take a look at the <a href="http://www.thegeekstuff.com/about/">about page</a>.</p>
<p>This is what he has to say about himself&#8230;</p>
<blockquote><p>My name is Ramesh Natarajan. I live in Los Angeles, California. I have been adding 1â€™s and 0 â€™s for more than 15 years in the IT industry. I am very much interested in anything that runs on electricity. I have done intensive programming on several languages and C is my favorite. I have done lot of work on the infrastructure side in Linux system administration, DBA, Hardware and Storage (EMC).</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2009/02/free-ebook-linux-101-hacks/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

