Rhel 5 6 7 Cheatsheet PDF
Rhel 5 6 7 Cheatsheet PDF
Rhel 5 6 7 Cheatsheet PDF
5 6
shutdown 5 6
SYSTEM BASICS JOBS AND SERVICES Shut down system shutdown
7
systemctl shutdown
TASK RHEL TASK RHEL
poweroff 5 6
/etc/sysconfig/rhn/systemid 5 /etc/syslog.conf 5
Power off system poweroff
View subscription /etc/sysconfig/rhn/systemid /etc/rsyslog.conf 6 systemctl poweroff
7
6
information subscription-manager identity
Configure logging /etc/rsyslog.conf halt 5 6
subscription-manager identity 7 /etc/rsyslog.d/*.conf 7 Halt system
/var/log/journal halt
rhn_register 7
5 systemd-journald.service systemctl halt
subscription-manager 1
chkconfig --list reboot 5 6
rhn_register 5 6
ls /etc/init.d/
Configure subscription rhnreg_ks 6 Reboot system reboot
subscription-manager List all services systemctl -at service 7
systemctl reboot
ls /etc/systemd/system/*.service 7
subscription-manager 2 7
ls /usr/lib/systemd/system/*.service Configure default run /etc/inittab 5 6
rhn_register 3
service --status-all 5 6 level/target systemctl set-default 7
sosreport List running services
dmidecode 5 systemctl -t service --state=active 7 /boot/grub/grub.conf 5 6
hwbrowser
service name start 5 6 Configure GRUB bootloader /etc/default/grub
View system profile sosreport service name stop grub2-mkconfig 7
dmidecode Start/stop service grub-set-default
6 7 systemctl start name.service
lstopo 7
lscpu systemctl stop name.service hwbrowser 5
View hardware configured
chkconfig name on lshw (in EPEL) 6 7
View RHEL version 5 6
/etc/redhat-release 5 6 7 chkconfig name off
information Enable/disable service Configure kernel module modprobe 5 6 7
systemctl enable name.service
7
1 Be aware of potential issues when using subscription-manager on Red Hat Enterprise Linux 5: https://access.
systemctl disable name.service Configure hardware device udev 5 6 7
redhat.com/solutions/129003.
service name status 5 6 sysctl -a
2 Subscription-manager is used for Satellite 6, Satellite 5.6 with SAM and newer, and Red Hat’s CDN. View service status View kernel parameters cat /proc/cmdline
5 6 7
3 RHN tools are deprecated on Red Hat Enterprise Linux 7. rhn_register should be used for Satellite server 5.6 and systemctl status name.service 7
newer only. For details, see: Satellite 5.6 unable to register RHEL 7 client system due to rhn-setup package not
chkconfig name --list 5 6
Load kernel module modprobe 5 6 7
included in Minimal installation (https://access.redhat.com/solutions/737373)
Check if service is enabled
systemctl is-enabled name 7 Remove kernel module modprobe -r 5 6 7