FAQ

How to do Perl Hash Reference and Dereference

by Balakrishnan Mariyappan on June 18, 2010

Question: How do I reference perl hash? How do I deference perl hash? Can you explain it with a simple example?

Answer: In our previous article we discussed about Perl array reference. Similar to the array, Perl hash can also be referenced by placing the ‘\’ character in front of the hash. The general form of referencing a hash is shown below.
(more…)

{ 3 comments }

Question: I would like to understand the basics of how to write and execute Erlang program on Linux OS. Can you explain it with a simple example?

Answer: In this article, let us review very quickly how to write a basic Hello World Erlang program, Compile and execute erlang program on Linux or Unix OS.

If you are new to Erlang programming language, read this erlang programming page on wikipedia.
(more…)

{ 2 comments }

Question: Sometimes I want to repeat a command (or shell-script) frequently (every few seconds). Is there a better way to execute a unix command every n seconds (instead of keep typing the same command manually)?

Answer: Using watch command you can execute a command and view it’s output every few seconds. This is very helpful while monitoring memory usage, disk usage etc.,

You can execute any Unix command using watch command. Watch command will be executed until you terminate it either by CTRL+C or kill the process.
(more…)

{ 6 comments }

Question: I’m using Sun Solaris OS. When I execute the find command, I get “find: bad option -not” as shown below. How do I fix the following error?

find: bad option -not
find: path-list predicate-list" in Solaris SunOS.

(more…)

{ 0 comments }

Question: I would like to terminate my Unix command line shell, when I don’t execute any command for N number of seconds. i.e How to automatically log out if there is no activity in a Linux shell ?

Answer: TMOUT variable in bash will terminate the shell if there is no activity for N seconds as explained below.
(more…)

{ 5 comments }

How To Fix Offending key in ~/.ssh/known_hosts file

by Ramesh Natarajan on April 30, 2010

As we discussed earlier in our basic ssh client commands article, when you do ssh to a machine for the 1st time (or whenever there is a key change in the remote machine), you will be prompted to say ‘yes’ for authenticity of host.
(more…)

{ 7 comments }

Question: How do I uncompress a *.7z file ( 7zip file ) in UNIX / Linux ? Can you explain with a simple example?

Answer: Use 7za command to unzip a 7z file ( 7zip file ) on Unix platform as shown below.
(more…)

{ 5 comments }

Question: I would like to understand the basics of how to write and execute Tcl program on UNIX / Linux OS. Can you explain it with a simple example?

Answer: In this article, let us review very quickly how to write a basic Hello World Tcl program and execute tcl program on Linux or Unix OS.
(more…)

{ 3 comments }