cd across parallel directories

2011-03-14 1 min read bash Linux
Image via Wikipedia Here is a simple and fast way to cd across parallel directory. 1 <td> <div class="text codecolorer"> cd ${PWD/test/actual} </div> </td> </tr> Related articles Linux command line tips: wget (ghacks.net) Article Directory Submissions (tjantunen.com) Article Directory Submissions (cash-bandit.com) Create a repository from your fedora DVD (annupandey.wordpress.com)

Empty a file

2010-12-26 1 min read Learning Linux
<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. Empty a file 1 <td> <div class="text codecolorer"> touch file </div> </td> </tr> * View this command to comment, vote or add to favourites * View all commands by noisy 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 Related articles by Zemanta {."zemanta-related-title"} How To Display Just The HTTP Response Code In CLI Curl (beerpla.net)

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. 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