How to increase root file system Here i have attached new hard disk /dev/sdb  to increase file system size with 10 Gigs [root@puppetdb ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 25G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 0 19.5G 0 part ├─centos-root 253:0 0 17.5G … Continue reading How to increase root file system if its mounted on lvm(Adding additional disk)
Author: mshaik
script to install chrome
script to install chrome #! /bin/bash # Google Chrome Installer/Uninstaller for RHEL/CentOS 6 or 7 # (C) Richard K. Lloyd 2015 <rklloyd@gmail.com> # See http://chrome.richardlloyd.org.uk/ for further details. # This script is in the public domain and has no warranty. # It needs to be run as root because it installs/uninstalls RPMs. # Minimum system … Continue reading script to install chrome
script to install docker
script to install docker [root@localhost ~]# cat docker.sh #!/bin/sh set -e # # This script is meant for quick & easy install via: # 'curl -sSL https://get.docker.com/ | sh' # or: # 'wget -qO- https://get.docker.com/ | sh' # # For test builds (ie. release candidates): # 'curl -fsSL https://test.docker.com/ | sh' # or: # 'wget … Continue reading script to install docker
What exactly load mean and how to measure
What exactly load mean and how to measure In this scenario i have one machine with CPU(s): 4 which you can see below by lscpu command check the load before applying  any load on any server i am trying to apply load on my machine by starting application which consumes more memory ex:(vmware)any application which is … Continue reading What exactly load mean and how to measure
what actually permissions indicates in linux
what actually permissions indicates in linux permission        file       directory r                 open           list w         … Continue reading what actually permissions indicates in linux
Files behind user profile & skel dir
Files behind user profile & skel dir [root@omd ~]# cat /etc/login.defs # # Please note that the parameters in this configuration file control the # behavior of the tools from the shadow-utils component. None of these # tools uses the PAM mechanism, and the utilities that use PAM (such as the # passwd command) should … Continue reading Files behind user profile & skel dir
Protected: Postfix configuration
There is no excerpt because this is a protected post.
dig check
To check dig for multiple domains [root@localhost ~]# vim digcheck google.com yahoo.com gmail.com linuxmadeeasy.in puppethub.in youtube.com [root@localhost ~]# dig -f digcheck +noall +answer google.com. 258 IN A 216.58.199.142 yahoo.com. 1459 IN A 98.139.183.24 yahoo.com. 1459 IN A 206.190.36.45 yahoo.com. 1459 IN A 98.138.253.109 gmail.com. 300 IN A 216.58.199.165 linuxmadeeasy.in. 600 IN A 50.63.202.2 puppethub.in. 600 … Continue reading dig check
whois check
-------------------------------To check Expiration date-------------------------- [root@localhost ~]# vim script #!/bin/bash for domain in `cat /root/domains.txt` do echo $domain >> whois-results.txt whois $domain | egrep -i "expiration date" >> whois-results.txt echo  >> whois-results.txt done [root@localhost ~]# vim /root/domains.txt linuxmadeeasy.in google.com yahoo.com puppethub.in [root@localhost ~]# sh script [root@localhost ~]# cat whois-results.txt linuxmadeeasy.in Expiration Date:13-Apr-2017 10:02:00 UTC google.com  … Continue reading whois check
ping check for multiple hosts
Put the list of ip's in file mohammedrafi@NOC-RAFI:~$ vim ips 10.12.13.14 172.15.48.3 192.168.45.54 48.114.78.227 192.168.0.1 192.168.0.2 192.168.0.5 Write the script and place the path of ip's file mohammedrafi@NOC-RAFI:~$ vim script.sh #!/bin/bash # Program name: pingall.sh date cat /home/mohammedrafi/ips | while read output do ping -c 1 "$output" > /dev/null if [ $? -eq 0 ]; … Continue reading ping check for multiple hosts
