≡ Menu

Ramesh Natarajan

From Vim editor, move your cursor to a number and press Ctrl+A to increase the number or Ctrl+X to decrease the number. Ctrl+A to increase the number under cursor Ctrl+X to decrease the number under cursor Ctrl-A and Ctrl-X will work only on numbers. However using Speeddating Vim plugin, you can use Ctrl+A and Ctrl+X [...]

{ 3 comments }

Unix Shell Tips: Change Login Shell From Bash to Others

Question: How do I find out what Unix shell I’m currently running? Can you also explain how can I change my Unix shell both temporarily and permanently? (For example, from bash to tsh). Answer: You can achieve these using $0, exec, chsh -s. In this article, let us review how to do these in detail. [...]

{ 12 comments }

Question: I would like to understand the basics of how to write and execute a pascal 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 pascal program and execute *.p or *.pas program on Linux or [...]

{ 2 comments }

Book Review: Perl Best Practices by Damian Conway

This is an essential book for both developers and sysadmins who write Perl code to get their job done. Perl is very powerful language and there are several ways you can code in Perl to get the same results. If you are not careful, you may end-up writing Perl code that is very hard to [...]

{ 1 comment }

Question: How do I find out what time I executed a command previously on Unix OS? The history command doesn’t display timestamp. Answer: Set HISTTIMEFORMAT as shown below. Please note that there is a space before the last single-quotes. $ export HISTTIMEFORMAT='%F %T ' After the above setting, history command will display timestamp in front [...]

{ 8 comments }

Question: I would like to understand the basics of how to write and execute a ruby 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 ruby program and execute *.rb program on Linux or Unix OS. [...]

{ 2 comments }

How To Install Java JDK or JRE on Ubuntu or Debian

Question: How do I Install Java on Ubuntu or Debian OS? Answer: If Java is not installed, you’ll get the following error message when you do java -version. # java -version The program 'java' can be found in the following packages: * gij-4.3 * java-gcj-compat-headless * openjdk-6-jre-headless * cacao * gij-4.2 * jamvm * kaffe [...]

{ 27 comments }

Ubuntu Tips: How To Enable Root User ( Super User ) in Ubuntu

Question: I’m unable to do su – on Ubuntu. It says “su: Authentication failure”. How do I fix it? Also, is it possible for me to login to Ubuntu using root account directly? Answer: Let us address these two question one by one. Warning: Enabling root is not recommended. If possible, you should always try [...]

{ 46 comments }