Administrative command and config-file changes

System Basics

TaskRHEL6RHEL7
View RH subscription information/etc/sysconfig/rhn/systemid 
subscription-manager identity
subscription-manager identity
Configure RH subscriptionrhn_register 
rhnreg_ks 
subscription-manager
subscription-manager14 
rhn_register15

Basic Configuration

TaskRHEL6RHEL7
Graphical configuration toolssystem-config-*gnome-control-center
Configure networksystem-config-networknmcli 
nmtui 
nm-connection-editor
Configure system languagesystem-config-languagelocalectl
Configure system time and datesystem-config-date 
date
timedatectl 
date
Synchronize time and datentpdate 
/etc/ntp.conf
ntpdate 
/etc/chrony.conf
Configure keyboardsystem-config-keyboardlocalectl

Jobs and services

TaskRHEL6RHEL7
List all serviceschkconfig 
ls /etc/init.d/
systemctl -at service 
ls /{usr/lib,etc}/systemd/system/*.service
List running servicesservice –status-allsystemctl -t service –state=active
Start/stop a serviceservice name start 
service name stop
systemctl start name.service 
systemctl stop name.service
Enable/disable a servicechkconfig name on 
chkconfig name off
systemctl enable name.service 
systemctl disable name.service
Check if service enabledchkconfig namesystemctl is-enabled name
View service statusservice name statussystemctl status name.service
Create service file or change configchkconfig –addsystemctl daemon-reload
View runlevel/targetrunlevelsystemctl get-default
Change runlevel/targetinit runlevelsystemctl isolate name.target 
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

TaskRHEL6RHEL7
Bypass root password prompt at bootappend 1 or s or init=/bin/bash to kernel cmdlineappend rd.break or init=/bin/bash to kernel cmdline
Shut down systemshutdownsystemctl shutdown
Power off systempoweroffsystemctl poweroff
Halt systemhaltsystemctl halt
Reboot systemrebootsystemctl reboot
Configure default runlevel/target/etc/inittabsystemctl set-default
Configure GRUB bootloader/boot/grub/grub.conf/etc/default/grub 
grub2-mkconfig 
grub-set-default

Software management

TaskRHEL6RHEL7
Install softwareyum install 
yum groupinstall
yum install 
yum group install
View software infoyum info 
yum groupinfo
yum info 
yum group info

File systems, volumes, and disks

TaskRHEL6RHEL7
Create/modify disk partitionsfdisk 
parted
fdisk 
parted 
gdisk
Default file systemext4xfs
Enlarge volumes formatted with default filesystemvgextend 
lvextend 
resize2fs
vgextend 
lvextend 
xfs_growfs

Networking

TaskRHEL6RHEL7
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 infoip 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 firewalliptables & ip6tables 
/etc/sysconfig/ip*tables 
system-config-firewall
firewall-cmd 
firewall-config
View ports/socketsnetstat 
ss 
lsof
ss 
lsof