Changes in RHEL6 and RHEL7
Administrative command and config-file changes
System Basics
| Task |
RHEL6 |
RHEL7 |
| View RH subscribe information |
/Etc/sysconfig/rhn/systemid Subscribe-manager identity |
Subscribe-manager identity |
| Configure RH submodules |
Rhn_register Rhnreg_ks Subscribe-manager |
Subscribe-manager14 Rhn_register15 |
Basic Configuration
| Task |
RHEL6 |
RHEL7 |
| Graphical configuration tools |
System-config -* |
Gnome-control-center |
| Configure network |
System-config-network |
Nmcli Nmtui Nm-connection-editor |
| Configure system language |
System-config-language |
Localectl |
| Configure system time and date |
System-config-date Date |
Timedatectl Date |
| Synchronize time and date |
Ntpdate /Etc/ntp. conf |
Ntpdate /Etc/chrony. conf |
| Configure keyboard |
System-config-keyboard |
Localectl |
Jobs and services
| Task |
RHEL6 |
RHEL7 |
| List all services |
Chkconfig Ls/etc/init. d/ |
Systemctl-at service Ls/{usr/lib, etc}/systemd/system/*. service |
| List running services |
Service-status-all |
Systemctl-t service-state = active |
| Start/stop a service |
Service name start Service name stop |
Systemctl start name. service Systemctl stop name. service |
| Enable/disable a service |
Chkconfig name on Chkconfig name off |
Systemctl enable name. service Systemctl disable name. service |
| Check if service enabled |
Chkconfig name |
Systemctl is-enabled name |
| View service status |
Service name status |
Systemctl status name. service |
| Create service file or change config |
Chkconfig-add |
Systemctl daemon-reload |
| View runlevel/target |
Runlevel |
Systemctl get-default |
| Change runlevel/target |
Init runlevel |
Systemctl isolate name.tar get Init runlevel |
| Configure logging |
/Etc/rsyslog. conf |
/Etc/rsyslog. conf /Etc/rsyslog. d/*. conf /Var/log/journal/ /Etc/systemd/journald. conf |
| View logs |
/Var/log/ |
/Var/log/ Journalctl |
Kernel, boot, and hardware
| Task |
RHEL6 |
RHEL7 |
| Bypass root password prompt at boot |
Append 1 or s or init =/bin/bash to kernel cmdline |
Append rd. break or init =/bin/bash to kernel using line |
| Shut down system |
Shutdown |
Systemctl shutdown |
| Power off system |
Poweroff |
Systemctl poweroff |
| Halt system |
Halt |
Systemctl halt |
| Reboot system |
Reboot |
Systemctl reboot |
| Configure default runlevel/target |
/Etc/inittab |
Systemctl set-default |
| Configure GRUB bootloader |
/Boot/grub. conf |
/Etc/default/grub Grub2-mkconfig Grub-set-default |
Software management
| Task |
RHEL6 |
RHEL7 |
| Install software |
Yum install Yum groupinstall |
Yum install Yum group install |
| View software info |
Yum info Yum groupinfo |
Yum info Yum group info |
File systems, volumes, and disks
| Task |
RHEL6 |
RHEL7 |
| Create/modify disk partitions |
Fdisk Parted |
Fdisk Parted Gdisk |
| Default file system |
Ext4 |
Xfs |
| Enlarge volumes formatted with default filesystem |
Vgextend Lvextend Resize2fs |
Vgextend Lvextend Xfs_growfs |
Networking
| Task |
RHEL6 |
RHEL7 |
| Configure name resolution |
/Etc/hosts /Etc/resolv. conf |
/Etc/hosts /Etc/resolv. conf Nmcli con mod |
| Configure hostname |
/Etc/sysconfig/network |
/Etc/hostname Hostnamectl Nmtui |
| View network interface info |
Ip addr Ifconfig Brctl |
Ip addr Nmcli dev show Teamdctl Brctl Bridge |
| Configure network interface |
/Etc/sysconfig/network-scripts/ifcfg -* |
/Etc/sysconfig/network-scripts/ifcfg -* Nmcli con [add | mod | edit] Nmtui Nm-connection-editor |
| Configure firewall |
Iptables & ip6tables /Etc/sysconfig/ip * tables System-config-firewall |
Firewall-cmd Firewall-config |
| View ports/sockets |
Netstat Ss Lsof |
Ss Lsof |