Replace failed drive in linux software raid 1

With 4 easy steps replace broken HDD on Linux machine which is configured for software raid1. Consider a Linux system with software RAID1  drive named /dev/sda and /dev/sdb, among these two drive one drive has failed. 1. […]

SSHFS installation and usage

How to Install and Use SSHFS SFTP provides secure file transfer and a secure remote file system. While SFTP clients may transfer files and directories, the related file system may not be mounted locally using […]

vi/vim editor

vi/Vim Editor A brief history of vi The vi editor is one of the most common text editors on Unix. It was developed starting around 1976 by Bill Joy at UCB, who was tired of the ed editor. But since he used ed as […]

How to Disable IPv6 on linux

[root@server ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.31.1.100 netmask 255.255.255.0 broadcast 172.31.1.255 inet6 2a01:4f8:c0c:1537::2 prefixlen 64 scopeid 0x0 inet6 fe80::5054:a2ff:fe01:df66 prefixlen 64 scopeid 0x20 ether 52:54:a2:01:df:66 txqueuelen 1000 (Ethernet) RX packets 4807270 bytes 944177390 […]

How to install Install Pure-FTPd linux

First, enable EPEL then, yum –enablerepo=epel -y install pure-ftpd vi /etc/pure-ftpd/pure-ftpd.conf # On line 77: change (no Anonymous) NoAnonymous yes # On line 143: uncomment UnixAuthentication       yes /etc/rc.d/init.d/pure-ftpd start Starting proftpd: [  OK  […]

How to Install Pip on CentOS 7

Install Pip with Yum The are two option Option 1 Add the EPEL Repository Pip is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL […]

How to Schedule job in cronjob linux

How To: Schedule job in cronjob Linux What is cronjob? A utility available in the Unix-like system to schedule a task to execution on particular date and time. crontab command You need to use the “crontab” […]

How to change Date, Time , Timezone and Hardware Clock (Real Time Clock RTC) in linux from command line (cli)

Date command will display your current date time with time zone. date Fri Apr 21 13:59:49 IST 2016 To change date and time date -s “21APR2017 10:06:00” To change only date date +%Y%m%d -s “20170421” […]

How to install and configure schedule AutoMySQLBackup

mysql backup

How to install and configure AutoMySQLBackup In this blog article, we will show you how to install AutoMySQLBackup on a Linux or Unix based operating system. AutoMySQLBackup is a very useful utility for creating daily, […]

How to edit and understand /etc/fstab

understanding-etc-fstab-file

What is fstab and why it’s useful? fstab is a configuration file that contains information of all the partitions and storage devices in your linux and other Unix-like operating systems. The file is located under /etc, […]