cd across parallel directories

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.

1
cd ${PWD/test/actual}
Enhanced by Zemanta

Empty a file

Screenshot of Calculator.NET, a Free Open Sour...
Image via Wikipedia

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
touch file

* View this command to comment, vote or add to favourites * View all commands by noisy

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/zwubbQvws5g/empty-a-file

Enhanced by Zemanta

cURL – Tutorial

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