cd across parallel directories

2011-03-14 1 min read Bash Linux

A diagram showing the key Unix and Unix-like o...
Image via Wikipedia

Here is a simple and fast way to cd across parallel directory.

  <td>
    <div class="text codecolorer">
      cd ${PWD/test/actual}
    </div>
  </td>
</tr>
1
Enhanced by Zemanta

Empty a file

2010-12-26 1 min read Learning Linux
Screenshot of Calculator.NET, a Free Open Sour...
  <dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">
    Image via <a href="http://commons.wikipedia.org/wiki/File:Calculator.NET_Screenshot.png">Wikipedia</a>
  </dd>
</dl>

This one is for those who know the “touch” command. Hope all of us do not follow a  command just because it is on one of the popular site without trying to understand the command and the output.

Continue reading

cURL – Tutorial

2010-09-15 1 min read Bash Fedora Linux

Here are linkw to two nice tutorials on curl and how to use curl to login before we try to fetch a page. Hope you find them useful.
http://curl.haxx.se/docs/httpscripting.html

http://www.youtube.com/watch?v=XcgQUsorF_8

http://scriptasy.com/php_11/tutorial-curl-login_44.html

Enhanced by Zemanta

15 (More) Awesome Conky Configurations

2010-09-13 0 min read Fedora Linux
\"A
Image via Wikipedia

15 (More) Awesome <a class="zem_slink" title="Conky (software)" rel="homepage" href="http://conky.sourceforge.net/">Conky Configurations You may have already seen our list of awesome Conky scripts or configurations, and perhaps applied or used some of them on your own <a class="zem_slink" title="Linux" rel="homepage" href="http://www.kernel.org/">Linux desktop. Since that collection was quiet popular, I decided to scour the web once again to gather more Conky scripts that I could share with all of you. Now, here is another list of some of the most excellent and unique conky configurations that you could freely use. Enjoy!

Continue reading

Over 50 Free, Must-Have Open Source Resources

2010-07-27 0 min read Linux
\"no
Image via Wikipedia

OStatic: &#8221;n this post, you&#8217;ll find an updated set of more than 45 collections and resources. Hopefully, you&#8217;ll find something to learn from here, and the good news is that everything found in this post is free.&#8221;

<a class="zem_slink freebase/guid/9202a8c04000641f800000000003f3a0" title="Uniform Resource Locator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-11-23-003-35-RV-SW">http://linuxtoday.com/news_story.php3?ltsn=2009-11-23-003-35-RV-SW<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://technology.johnsamuel.in/main/index.php/2009/10/25/bit-ly-more-than-just-a-url-shortener/">bit.ly: More than just a URL shortener (technology.johnsamuel.in) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/01000062-d486-42d2-bd70-1cb729684b22/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b18.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

need help on deciding the ISP to host my website.

2010-06-25 1 min read Uncategorized

My <a class="zem_slink freebase/en/internet_hosting_service" title="Internet hosting service" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internet_hosting_service">hosting services account is expiring next month and I am evaluating to see if I should stick with the current <a class="zem_slink freebase/en/internet_service_provider" title="Internet service provider" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internet_service_provider">ISP (<a href="http://znetindia.com">http://znetindia.com or <a href="http://zneti.com">http://zneti.com). I am quite happy with the current service but miss the <a class="zem_slink freebase/en/shell_account" title="Shell account" rel="wikipedia" href="http://en.wikipedia.org/wiki/Shell_account">shell account service. Since there is no shell account so I cannot do much on the <a class="zem_slink freebase/en/server" title="Server (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Server_%28computing%29">server..

Continue reading

Using tput to save, clear and restore the terminal contents

2010-06-17 1 min read Linux

Using tput to save, clear and restore the terminal contents $ tput smcup; echo &#8221;Doing some things…&#8221;; sleep 2; tput rmcup Very useful for interactive scripts where you would like to return the terminal contents to its original state before the script was run. This would be similar to how vi exits and returns you to your original terminal screen.

Save and clear the terminal contents with:

tput smcup

Continue reading
Older posts