hard-soft links for files and directories

what is soft&hard links Hard Link acts like a mirror copy of the original file. These links share the same inodes. Changes made to the original or hard linked file will reflect in the other. When you delete Hard Link nothing will happen to the other file. Hard links can't cross file systems. Soft Link … Continue reading hard-soft links for files and directories

How to increase root file system if it’s mounted with standard partition(By extending Space on same disk)

Before adding extra disk space [root@localhost ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda2 ext4 8.8G 855M 7.5G 11% / devtmpfs devtmpfs 480M 0 480M 0% /dev tmpfs tmpfs 489M 0 489M 0% /dev/shm tmpfs tmpfs 489M 6.7M 483M 2% /run tmpfs tmpfs 489M 0 489M 0% /sys/fs/cgroup /dev/sda1 ext4 969M … Continue reading How to increase root file system if it’s mounted with standard partition(By extending Space on same disk)

HOW TO INCREASE ROOT FILE SYSTEM IF ITS MOUNTED ON LVM(By extending existing disk)

HOW TO INCREASE ROOT FILE SYSTEM IF ITS MOUNTED ON LVM(By extending existing disk) [root@master ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centos-root xfs 18G 1.3G 17G 8% / devtmpfs devtmpfs 479M 0 479M 0% /dev tmpfs tmpfs 489M 0 489M 0% /dev/shm tmpfs tmpfs 489M 6.7M 483M 2% /run tmpfs … Continue reading HOW TO INCREASE ROOT FILE SYSTEM IF ITS MOUNTED ON LVM(By extending existing disk)

How to increase root file system if its mounted on lvm(Adding additional disk)

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)

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