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 [...]
FAQ
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. [...]
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 [...]
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: $ [...]
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 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 [...]
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 [...]
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 [...]