≡ Menu

Book Review: Perl Best Practices by Damian Conway

Perl Best Practices eBookThis 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 understand and maintain in a long run.

[continue reading…]

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.
[continue reading…]

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.

[continue reading…]

Sed Examples for Unix and Linux - Find and ReplaceThis article is part of on-going Unix Sed Tutorial series. In previous articles, we discussed about sed print operation and sed delete operation.

In this article let us review how to use sed substitute command “s”.

The `s’ command is probably the most important in `sed’ and has a lot of different options.

[continue reading…]

The Ultimate Wget Download Guide With 15 Awesome Examples

15 Practical Examples to Download Images and Videos from Internetwget utility is the best option to download files from internet. wget can pretty much handle all complex download situations including large file downloads, recursive downloads, non-interactive downloads, multiple file downloads etc.,

In this article let us review how to use wget for various download scenarios using 15 awesome wget examples.

[continue reading…]

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.

[continue reading…]

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.

[continue reading…]

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

[continue reading…]