≡ Menu

FAQ

How to do Perl Hash Reference and Dereference

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

{ 5 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. [...]

{ 3 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 [...]

{ 12 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. Answer: In Linux, find command with -not option is used for inverting the match. For example: $ [...]

{ 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 [...]

{ 6 comments }

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

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. This feature is controlled using StrictHostKeyChecking ssh parameter. By default StrictHostKeyChecking [...]

{ 35 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. Verify whether you have 7za command on your system. # whereis 7za [...]

{ 17 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 [...]

{ 5 comments }