RHEL
append 1 or s or init=/bin/bash to kernel cmdline
6
7
SYSTEM BASICS
TASK
RHEL
/etc/sysconfig/rhn/systemid
View subscription
information
/etc/sysconfig/rhn/systemid
subscription-manager identity
rhn_register
subscription-manager 1
Reboot system
7
Start/stop service
6
7
Enable/disable service
1 Be aware of potential issues when using subscription-manager on Red Hat Enterprise Linux 5: https://access.
redhat.com/solutions/129003.
2 Subscription-manager is used for Satellite 6, Satellite 5.6 with SAM and newer, and Red Hats CDN.
3 RHN tools are deprecated on Red Hat Enterprise Linux 7. rhn_register should be used for Satellite server 5.6 and
newer only. For details, see: Satellite 5.6 unable to register RHEL 7 client system due to rhn-setup package not
included in Minimal installation (https://access.redhat.com/solutions/737373)
7
5
6
7
BASIC CONFIGURATION
TASK
Graphical configuration
tools
RHEL
system-config-*
Configure system
language
6
7
system-config-date
date
Synchronize time
and date
Configure keyboard
ntpdate
/etc/ntp.conf
system-config-keyboard
6
7
localectl
Text-based
configuration tools
system-config-*-tui
Configure printer
system-config-printer
Configure SSH
/etc/ssh/ssh_config
/etc/ssh/sshd_config
~/.ssh/config ssh-keygen
View logs
/etc/inittab
init run_level
TASK
top
ps
sar
iostat
netstat
vmstat
mpstat
numastat
cron
at
batch
locate
Configure hostname
df
strace
ltrace
nice
renice
taskset
Kill a process
kill
pkill
killall
View ports/sockets
Configure routes
View routes
RHEL
ss
lsof
netstat
ip route add
system-config-network
/etc/sysconfig/route-iface
USER MANAGEMENT
TASK
ip route
system-config-users
SOFTWARE MANAGEMENT
useradd
TASK
userdel
View/change user
account details
usermod
/etc/passwd
vipw
id
groupadd
Install software
yum info
yum groupinfo
groupmod
/etc/group
passwd
modprobe
modprobe -r
rpm -q kernel
uname -r
RHEL
Create/modify disk
partitions
Upgrade software
yum update
yum upgrade
mount
/etc/fstab
Mount storage
6
7
6
6
resize2fs
lvreduce
vgreduce
/etc/exports
service nfs reload
7
5
6
7
6
7
df
lvdisplay
lvs
vgdisplay
vgs
pvdisplay
pvs
showmount -e
mount
Configure on-demand
auto-mounts
/etc/auto.master.d/*.autofs
/etc/auto.*
chmod
chown
chgrp
umask (future file creation)
chattr
setfacl
TASK
RHEL
/etc/selinux/config
chcon
restorecon
semanage
setsebool
system-config-selinux
sealert
authconfig
authconfig-tui
authconfig-gtk
Network users
getent
7
7
10/14
rpm -qa
yum list installed
Copyright 2014 Red Hat, Inc. Red Hat, Red Hat Enterprise Linux, the Shadowman logo,
and JBoss are trademarks of Red Hat, Inc., registered in the U.S. and other countries.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
/etc/fstab
rpm -q packagename
fsck
ssm check
chage
vgextend
lvextend
xfs_growfs
ssm resize
lvcreate
ssm create (if backend is lvm)
vgcreate
ssm create (if backend is lvm)
6
7
/etc/fstab
swapon -a
pvcreate
ssm create (if backend is lvm)
vgextend
lvextend
resize2fs
/etc/exports
systemctl reload nfs.service
mount
/etc/fstab
ssm mount
fsck
groupmod
visudo
fdisk
gdisk
parted
ssm create
Change group
permissions
yum info
yum group info
Update software
ext4
subscription-manager repos
/etc/yum.repos.d/*.repo
Configure software
repository
usermod
visudo
yum install
yum groupinstall
yum install
yum group install
groupdel
RHEL
sysctl -a
cat /proc/cmdline
ip route add
nmcli
nmtui
nm-connection-editor
/etc/sysconfig/route-iface
Graphical user
management
ss
lsof
ip addr
nmcli dev show
teamdctl
brctl
bridge
/etc/sysconfig/network-scripts/ifcfg-*
nmcli con [add|mod|edit]
nmtui
nm-connection-editor
vgcreate
hostnamectl
/etc/hostname
nmtui
/etc/sysconfig/network-scripts/ifcfg-*
df
iostat
lvcreate
/etc/hosts
/etc/resolv.conf
nmcli con mod
ip addr
ifconfig
brctl
top
ps
sar
iostat
ss
vmstat
mpstat
numastat
tuna
udev
RHEL
/etc/sysconfig/network
/etc/hosts
/etc/resolv.conf
fdisk
parted
firewall-cmd
firewall-config
top
ps
sar
iostat
netstat
ss
vmstat
mpstat
numastat
tuna
hwbrowser
pvcreate
Configure firewall
Schedule/batch tasks
RHEL
/etc/default/grub
grub2-mkconfig
grub-set-default
TASK
NETWORKING
RESOURCE MANAGEMENT
xfs
Create archive
modprobe
aureport /var/log/faillog
tar
cpio
zip
systemctl set-default
ext3
find
/etc/inittab
TASK
/var/log
journalctl
timedatectl
/etc/chrony.conf
ntpdate
runlevel
who -r
timedatectl
date
systemctl daemon-reload
/etc/systemd/system/*.service
/var/log
7
localectl
systemctl get-default
who -r
nmcli
nmtui
nm-connection-editor
system-config-language
gnome-control-center
system-config-network
Configure network
chkconfig --add
6
7
reboot
systemctl reboot
/boot/grub/grub.conf
halt
systemctl halt
reboot
Halt system
poweroff
systemctl poweroff
halt
/etc/rsyslog.conf
/etc/rsyslog.d/*.conf
/var/log/journal
systemd-journald.service
chkconfig --list
ls /etc/init.d/
sosreport
dmidecode
lstopo
lscpu
/etc/redhat-release
Configure logging
shutdown
systemctl shutdown
poweroff
/etc/rsyslog.conf
7
subscription-manager 2
rhn_register 3
/etc/syslog.conf
6
rhn_register
rhnreg_ks
subscription-manager
sosreport
dmidecode
hwbrowser
TASK
subscription-manager identity
Configure subscription
shutdown