rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server
|

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server I have used these flags -ravpzHogt along with rsync command many times in server migration. And I always get good results. Key features** (1) Date Time stamp of files and folder remain same as you find in source server. (2) Hidden files or directory recursively transfer to…

What is /dev/shm and how to mount /dev/shm

What is /dev/shm and how to mount /dev/shm

Introduction: This post will explain about the /dev/shm and you will also know how to mount /dev/shm in linux system. /dev/shm is nothing but implementation of traditional shared memory concept. It is an efficient means of passing data between programs. One program will create a memory portion, which other processes (if permitted) can access. This…

Installing Nagios-3.4 in CentOS 6.3
|

Installing Nagios-3.4 in CentOS 6.3

Installing Nagios-3.4 in CentOS 6.3 This is how to install nagios 3.4 tutorial for installing nagios-3.4 in CentOS 6.3 in a few steps. rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm yum install nagios nagios-devel nagios-plugins* gd gd-devel httpd php gcc glibc glibc-common Bydefualt on doing yum install nagios, in cgi.cfg file, authorized user name nagiosadmin is mentioned and for…

How to find which filesystem is supported by running kernel

How to find which filesystem is supported by running kernel

How to find which filesystem is supported by running kernel /proc/filesystems is the file which is used to detect the filesystems supported by running kernel. The nodev represent the file system is not assoicated with any disk partition for eg. /dev/sda1 In below given output, you can find out the ext3,ext4 and fuseblk can be…

subtract integer written in columns from 2 different files

subtract integer written in columns from 2 different files

subtract integer written in columns from 2 different files This is an eg. of subtracting the integer value in column of file1 and file2. root@tuxworld:/mnt# for i in `seq 1 5`;do echo $i >> file1;done root@tuxworld:/mnt# for i in `seq 0 4`;do echo $i >> file2;done root@tuxworld:/mnt# cat file1 1 2 3 4 5 root@tuxworld:/mnt#…

Terminal Recording with script and scriptreplay command
|

Terminal Recording with script and scriptreplay command

Learn how to do terminal recording with script and scriptreplay command.It is one of the useful command to record the activities on terminal. Morever after recording the terminal session you can play the session activity with the help of scriptreplay command. root@tuxworld:~# script -t 2>sample.time sample.log Script started, file is sample.log root@tuxworld:~# The script will…

How to change hostname in Ubuntu 12.04 and 12.10 without system restart
|

How to change hostname in Ubuntu 12.04 and 12.10 without system restart

In this post learn,how to change hostname in Ubuntu 12.04 and 12.10 without system restart. Here, there are few steps through which we can change the hostname of system without reboot. System OS: Ubuntu 12.04 LTS n l Follow steps to change hostname in Ubuntu 12.04 LTS and Ubuntu 12.10 Step 1: Edit the /etc/hosts…

Convert hyphen to underscore in between all filenames shell script
|

Convert hyphen to underscore in between all filenames shell script

In this post we will learn, how we can convert hyphen to underscore in between of all filenames with the help of shell script or bash script. For eg. if you want to convert the file haveing hyphen sign in between its name to Underscore . Use the below given method. After using the script…

Enable ethernet in RHEL 6.0 and CentOS 6.0  : Tested In Virtual Box and VMware

Enable ethernet in RHEL 6.0 and CentOS 6.0 : Tested In Virtual Box and VMware

Enable ethernet in RHEL 6.0 and CentOS 6.0 : Tested In Virtual Box and VMware Today I downloaded the CentOS 6.0 and installed it in Virtual Box.After installation I found that no ethernet was enable and has no ip Address. I tried to troubleshoot, restarted the network service,once again restarted the Machine but no luck…