Tuesday, 26 November 2013

Most used Commands and Standered file directory path in Linux

To modify host name and IP address in Linux

/etc/hosts file

create bond( /etc/sysconfig/network-scripts/ifcfg-bond0)
DEVICE=bond0
ONBOOT=yes
USERCTL=no
BOOTPROTO=none
BONDING_OPTS="primary=eth0"
IPADDR=xx.xx.xxx.xx
NETMASK=xxx.xxx.xxx.x
GATEWAY=xx.xx.xxx.x
BROADCAST=xx.xx.xxx.xxx
configure net work(/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
USERCTL=no
BOOTPROTO=none
SLAVE=yes
MASTER=bond0

change the domine name
/etc/sysconfig/network(hostname)
/etc/hosts
service network restart

To delete user in Linux 

userdel -r userName(-r used to delete along with home directory)