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

hostnamectl

Systemd is new 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 the article we are using centos 7.0 installed with systemd 216 [...]

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. [...]

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

Guide on the Usage of Linux CD Command with 10 Examples

cd command linux

cd command is one of the most basic and common commands used among Linux users, but this is not limited only to Linux systems and this is also available in operating systems such as Unix, DOS, OS/2, AmigaOS, Windows, ReactOS. [...]

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

How Chown Recursively Change File/Directory Ownership in Linux

The chown command in Linux is used to change the ownership and group ownership of a files/directories. In Linux, all files, directories and processes (which are again files) are owned by users. The group is a set of users that share [...]

Raghu 9:16 am

Linux chmod Command - Change File Permissions (Freshers Guide)

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

Linux Sort Command Examples and Sorted Outputs

Sorting in Linux can be performed with a simple utility command sort.   It takes input from STDIN by default but can sort files when file names are provided as an argument and it can also sort numerically as well. In [...]

Raghu 8:11 am