Linux

15 Linux Yum Command Examples – Install, Uninstall, Update Packages

by Balakrishnan Mariyappan on August 31, 2011

Installing, removing, and updating packages is a typical activity on Linux. Most of the Linux distributions provides some kind of package manager utility. For example, apt-get, dpkg, rpm, yum, etc.

On some Linux distributions, yum is the default package manager.

Yum stands for Yellowdog Updater Modified.

This article explains 15 most frequently used yum commands with examples.
(more…)

{ 11 comments }

20 Things to Plan for an IT Disaster Recovery

by Ramesh Natarajan on August 25, 2011

Implementing a disaster recovery solution is dependent on three factors — 1) time 2) resources 3) dollar amount.

Most organization doesn’t even think about DR when the IT infrastructure and applications are running without any issues. Most of them think about DR only when something breaks that created a major negative impact on the business.
(more…)

{ 3 comments }

GIT is the most versatile distributed version control system.

The way GIT tracks and handles file changes is very efficient and different than how other version control software tracks the changes (including CVS and Subversion).

This article is for those who are new to GIT. This is a jump-start guide that will show you how to install GIT from source, create a new project, commit changes to the GIT repository.
(more…)

{ 10 comments }

15 Linux Bash History Expansion Examples You Should Know

by Ramesh Natarajan on August 8, 2011

Bash history is very powerful. Understanding how to effectively use the bash history expansions will make you extremely productive on the Linux command line.

This article explains 15 examples that uses the following bash history expansion features:

  • Event designators – Refers to a particular command in the history. It starts with a !
  • Word designators – Refers to a particular word of a history entry. Typically this gets combined with an even designator. Even designators and word designators are separated by a colon
  • Modifiers – Modifies the result of the substitution done by the event or word designators

(more…)

{ 19 comments }

20 Linux Log Files that are Located under /var/log Directory

by Ramesh Natarajan on August 1, 2011

If you spend lot of time in Linux environment, it is essential that you know where the log files are located, and what is contained in each and every log file.

When your systems are running smoothly, take some time to learn and understand the content of various log files, which will help you when there is a crisis and you have to look though the log files to identify the issue.
(more…)

{ 9 comments }

Using Apache Virtual Host, you can run several websites on the same server.

For example, I can run both thegeekstuff.com and top5freeware.com on a single physical server that has one Apache webserver running on it.
(more…)

{ 11 comments }

How to Install and Configure Nginx from Source on Linux

by Ramesh Natarajan on July 25, 2011

Before we understand what is nginx, we should know how to pronounce nginx.

Its not N G I N X. nginx is pronounced as “Engine X”.

nginx is short form after you remove both the e’s from “Engine X”.

nginx is an open source web server that is similar to Apache, but very light weight. nginx is both web server and reverse proxy server.
(more…)

{ 3 comments }

How to Rotate Apache Log Files in Linux

by Ramesh Natarajan on July 22, 2011

Question: I would like to automatically rotate the apache access_log and error_log files. Can you explain with an example on how to do this?

Answer: This can be achived using logrotate utility as explained below.
(more…)

{ 4 comments }