Author Archives: Tarun

About Tarun

Tarun Thakur holds an honors degree in BE. He has around 6 years of experience in Linux software development and works as a Tech lead in NEC.

cal & ncal – Linux Commands To Display Calendar Information

Linux provides ncal and cal utilities which can be used to display calendar on command line. Once you get used to them, you’ll realize that things are faster with these utilities as compared to manually looking for calendars in GUI. Both of these utilities, when combined, provide a rich set of options through which you can display calendar in almost any way. In this article, I will explain how to use these utilities to display calendar on Linux command line.

NOTE –  All these examples are tested on Ubuntu Linux.

Continue reading

Building Blocks Of Linux Boot Process

Linux boot up process can be categorized into various steps. It is important to know about this process or at least the building blocks of this process in order to debug start-up problems or to perform start-up customizations. In this article, we will cover basic building blocks of Linux boot process.
Continue reading

Want Complete Linux Host Information? 5 Linux Commands That Can Do the Job

It is important for system as well as network administrators to be able to access all kind of system and as well as network related Linux host information. This information helps a great deal while debugging system level or network level problems. In this article, I will explain 5 commands (arch, dig, host, hostanme, uname) that will help you get most of host related information from system as well as network point of view.

NOTE- I have used Ubuntu 13.04 to run all the examples shown in this article
Continue reading

A Developer’s Experiences with Constructors And Destructors In C++

The most compelling feature of C++ programming language is it being object oriented. An object is a fundamental aspect of an object oriented language like C++. The objects come from classes which is a collection of related type of information. As in C, we have structures as a user defined data-type, which is a collection of data members of different data-types. On Similar lines, C++ introduces the concept of classes, though with a lot of basic differences like the concept of constructors and destructors etc.

Let’s discuss a few differences here :

  • C structures just have data members, whereas C++ classes, apart from data members, can also have member functions.
  • C structure data members are all publicly accessible, however C++ classes have the power to specify access as private, public or even protected.
  • Another vital difference are constructors and destructors. To initialize objects, including dynamic memory allocation, implicitly in C++, programmers define constructors, and similarly, to destroy an object, including freeing the memory, it uses destructors. In this article, the we shall have an in-depth understanding of the C++ constructors and destructors.

[Note that, in the explanation above, we have discussed about C structures… C structures carry a lot of differences with C++ structures.]

In this article, we will discuss in detail the intricacies of constructors and destructors from a developer’s point of view.

Continue reading

Linux strace command – A magnificent troubleshooter

Trying to run a program but facing weird errors? Well, most of the Linux users might have faced this situation. Many of us either spend hours searching on internet about the problem or wait for days on forums to get a reply. Sometimes we even give up and un-install the program. Very few of us know that there exists a Linux command line utility that can well be a good starting point for debugging these kind of problems. I am talking about the Linux strace command.
Continue reading

Install and configure Ubuntu one


Ubuntu one is a cloud service offered by the canonical team. It’s the same team that works hard to improve Ubuntu year on year. The purpose of Ubuntu one is to have a centralized access to your stuff like Documents, music, pictures, contacts etc. The total free storage offered by default is 5GB and you can pay extra for more space if required. Here in this article, we will discuss the installation and configuration of Ubuntu one on Ubuntu 12.04 LTS.
Continue reading

5 Linux wc command examples

The Linux wc command is a useful command that can come in handy if you ever want to know details like newline counts, byte counts, character counts etc for a file which is supplied as input. In this article, we will discuss 5 basic examples of this command.
Continue reading

Get size related information of ELF files using Linux size command

If a Linux ELF executable is dissected, it can be disintegrated into different sections. What if you want to know the individual size of these sections and that too in various formats. Well, there is a Linux size command  that can do this for you. In this article, we will understand this command through some examples.
Continue reading