Rhel 5 6 7 8 Cheatsheet 8.5x11 0519 0
Rhel 5 6 7 8 Cheatsheet 8.5x11 0519 0
Rhel 5 6 7 8 Cheatsheet 8.5x11 0519 0
rhnreg_ks 6 Text-based
Configure configuration system-config-*-tui 5 6
1, 3 5 6 7 8
subscription
rhn_register tools
subscription-manager 2 6 7 8
Configure system-config-printer 5 6 7
hwbrowser 5 printer gnome-control-center 8
sosreport
5 6 7 8 system-config-network 5 6
dmidecode
View system nmcli
profile lstopo Configure
6 7 8 nmtui 7 8
lscpu network nm-connection-editor
cat/proc/cpuinfo 8
8 gnome-control-center
lshw
system-config-language 5 6
View RHEL Configure
version /etc/redhat-release 5 6 7 8
system localectl 7 8
information language
gnome-control-center 8
system-config-date 5 6
1 Be aware of potential issues when using subscription-manager on Red Hat
Enterprise Linux 5: https://access.redhat.com/solutions/129003. Configure timedatectl 7 8
2 Subscription-manager is used for Satellite 6, Satellite 5.6 with SAM and newer, time and date date 5 6 7 8
and Red Hat’s CDN.
3 RHN tools are deprecated on Red Hat Enterprise Linux 7. rhn_register should gnome-control-center 8
be used for Satellite server 5.6 and newer only. For details, see: What subscription
management services are offered by RHSM?, Transition of Red Hat Network
/etc/ntp.conf 5 6
Classic Hosted to Red Hat Subscription Management, and Satellite 5.6 unable ntpdate 5 6 7
to register RHEL 7 client system due to rhn-setup package not included in
Minimal installation. Synchronize timedatectl
time and date /etc/chrony.conf 7 8
date
8
chronyc
Report on
system sealert 5 6 7 8
security
authconfig
LDAP, SSSD, authconfig-tui 5 6 7
authconfig-gtk
Kerberos
authselect 8
runlevel 5 6 gnome-control-center 8
View run
systemctl get-default 7 8
level/target Create user groupadd 5 6 7
who -r 5 6 7 8 group gnome-control-center 8
/etc/inittab
5 6 groupdel 5 6 7
Change run init run_level Delete user
level/target systemctl isolate name.target group
7 8 gnome-control-center 8
systemctl set-default
groupmod
/etc/syslog.conf 5 Change group 5 6 7
/etc/group
/etc/rsyslog.conf 6 7 8 details
Configure gnome-control-center 8
logging /etc/rsyslog.d/*.conf
/var/log/journal 7 8 passwd 5 6 7
Change user
systemd-journald.service
password gnome-control-center 8
journalctl 7 8
View logs usermod
/var/log 5 6 7 8 5 6 7
Change user visudo
pam_tty_audit kernel module 5 6 7 permissions
gnome-control-center 8
tlog 8
Change chage 5 6 7
Configure add audit=1 to kernel cmdline
system audit auditctl password
/etc/audit/auditd.conf policy gnome-control-center 8
5 6 7 8
/etc/audit/audit.rules
authconfig w 5 6 7
/etc/pam.d/system-auth
View user
sessions gnome-control-center 8
View audit aureport
5 6 7
output /var/log/faillog
Software management Kernel, boot, and hardware
TASK RHEL TASK RHEL
ssm mount 7 8
Change
Mount access setfacl 8
storage mount control list
5 6 7 8
/etc/fstab
/etc/sysconfig/network 5 6
Configure
hostnamectl
hostname /etc/hostname 7 8
nmtui
ifconfig 5 6
ip addr
5 6 7 8
brctl
system-config-network 5 6
nmcli
Configure nmtui 7 8
routes nm-connection-editor
ip route add
5 6 7 8
/etc/sysconfig/route-iface
Configure system-config-firewall 6
firewall firewall-cmd
7 8
firewall-config
nftables 8
pcp-dstat--socket 8
View ports/
ss
sockets lsof 5 6 7 8
netstat
5/19
Copyright © 2019 Red Hat, Inc. Red Hat, Red Hat Enterprise Linux, the Red Hat logo, and JBoss are trademarks or registered trademarks of Red Hat, Inc.
or its subsidiaries in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the U.S. and other countries.