tee linux command

tee is a linux command that allows you to redirect out put of a command to STDOUT (console) and a file. This is helpful when you want to see result of a long running process, also want to save it


ssh-keygen

ssh-keygen command is used to create SSH key used for password less login. To create SSH key, run By default SSH keys will be stored in .ssh folder on your home directory. Your public key will be ~/.ssh/id_rsa.pub, this you


mtr using udp

After changing to new Internet Service Provider (RailWire), mtr stopped working properly. boby@hon-pc-01:~$ mtr -rw yahoo.com Start: Tue Jun 20 08:54:01 2017 HOST: hon-pc-01 Loss% Snt Last Avg Best Wrst StDev 1.|– 192.168.1.1 0.0% 10 2.7 3.2 1.9 7.2 1.5


Railwire FTTH vs BSNL DSL

I have been using BSNL DSL connection for last 10+ years. Before i get DSL connection, BSNL telephone connection was using 2 copper wire cable. When they started giving DSL, i have applied for connection. Had to wait like 1


Install phpMyAdmin in CentOS Server

Download latest version of phpMyAdmin from http://www.phpmyadmin.net/home_page/downloads.php You need to edit /usr/hostonnet/phpmyadmin/config.inc.php and set a random string for $cfg[‘blowfish_secret’] Now create apache configuration file Add following to the file Restart Apache web server Now you will be able to access


Raid 1 vs Single Disk Speed Test

I was trying to moving my /home directory to new btrfs raid 1 partition. Raid 1 is knowing as Mirroring, data is written to 2 disks. Data written to a Raid 1 array is like 10% slower than single hard


Repair MySQL MyISAM Database with myisamchk

myisamchk is a command line tool to repair MySQL MyISAM database. You need to run it a user root. To repair all MyISAM tables in a database, run Example [root@localhost ~]# myisamchk –recover /var/lib/mysql/w3blogs/wp_blogs – recovering (with sort) MyISAM-table ‘/var/lib/mysql/w3blogs/wp_blogs’


Partitioning with parted

parted is a command line program to partition hard disks. Viewing Partition To view partition on a hard disk, use Example I will use /dev/sdc as device name. root@hon-pc-01:~# parted /dev/sdc print Model: ATA ST31000528AS (scsi) Disk /dev/sdc: 1000GB Sector


Varnish Cache

Varnish Cache is a web application accelerator, that sit in between visors and web server. It caches frequently requested pages and serve them from memory. Varnish is Open Source software, you can download it from https://www.varnish-cache.org/ Varnish work as reverse


mount

Mounting NFS file system in CentOS 7 Creating Virtual Flesystem How to mount a new Hard Drive on your Linux Server Mounting WebDAV on Linux using Davfs