5 Steps to Setup MySQL Master-Master Replication on Ubuntu 16.04

MySQL Master-Master configuration

The Master-Slave replication in MySQL databases provides load balancing for the databases. But it does not provide any failover scenario. If the Master server breaks, we cannot execute queries directly on the slave server. In addition to load balancing, if [...]

Raghu 8:33 am

Awesome ! systemd Commands to Manage Linux System


Systemd is the new system and service manager for Linux. It is a replacement for init system and can manage system startup and services. It starts up and supervises the entire system. In article we are using centos 7.0 installed with [...]

Raghu 9:29 am

How To Install / Upgrade systemd on RHEL/CentOS 7.0

Checking installation of new version

Centos/RHEL already adopted using systemd from version 7.0. In this article, we explore how this new upgrade release systemd 216 can be installed. The new release of systemd brings some new features. New commands like networkctl are introduced in this [...]

Raghu 9:04 am

8 Options to Trace/Debug Programs using Linux strace Command

Relative Timestamp

The strace is the tool that helps in debugging issues by tracing system calls executed by a program. It is handy when you want to see how the program interacts with the operating system, like what system calls are executed [...]

Raghu 12:03 pm

How to Merge Directory Trees in Linux using cp Command

Remove original directories

How to merge two directory trees with similar layout into a third directory? Let us consider the following example to understand the problem. Suppose two directories dir1 and dir2 have 3 sub-directories a, b and c in each of them. The [...]

Raghu 6:21 am

Linux slabtop command - Display Kernel Slab Cache Information

Sort by cache utilization 02

The Linux kernel needs to allocate memory for temporary objects such as task or device structures and inodes. The caching memory allocator manages caches of these types of objects. The modern Linux kernel implements this caching memory allocator to hold [...]

Raghu 9:09 am

Linux chpasswd Command - Change Passwords in Bulk Mode

Help with command chpasswd

Creating users and managing passwords is one of the primary responsibilities of a system administrator. A good policy requires modification of passwords on regular intervals. But changing the passwords for a number of users with passwd command becomes difficult. In [...]

Raghu 3:00 am

Power of Linux wget Command to Downloand Files from Internet

Mirror website for local viewing

Wget is the command line, non interative , free utility in Unix like Operating systems not excluding Microsoft Windows, for downloading files from the internet. Most of the web browsers require user's presence for the file download to be completed. [...]

Raghu 3:00 am

Understanding Linux cd Command with Examples

cd using * wild card

The cd command is the most basic command in *nix world. What linux cd command does is it changes your current working directory. This article details about this command, what this command can do and the internals about the command. [...]

Raghu 11:09 am

30 Linux TOP Command Usage Examples for Monitoring

Killing a task

The top command in Linux displays the running processes on the system. One of the most important tools for a system administrator. It is used extensively for monitoring the load on a server. In this article, we explore the top [...]

Raghu 7:26 pm

How to Install and Configure MRTG in Linux

linux mrtg linoxide

MRTG is an open source network traffic monitoring tool. It creates png images in the form of graphs that show the traffic load of network nodes. MRTG works on SNMP protocol to request from the nodes. So the devices monitored [...]

Raghu 4:15 am

Linux Change File / Directory Ownership - Chown Command

The files, directories and processes (which are again files) in Linux are owned by users. They have a group owner. The owner and group ownership is important as the security of files through permissions (the DAC) is set on owner, [...]

Raghu 9:16 am

A Freshers Guide for Linux chmod Command to Change File Permissions

linux permissions

The Linux security starts with file permissions. On the very basic level, file and directory permissions play a vital role in the security of a system. When you create a file or directory on Linux systems, it comes with default [...]

Raghu 9:01 am

Power Of Linux Sort Command

Sorting in Linux can be performed with a simple utility command sort. Of course, it sorts its input, alphabetically by default, though it can sort numerically as well. It takes input from STDIN by default, but can sort files when [...]

Raghu 8:11 am