rhel_5_6_7_8_cheatsheet_8.5x11_0519_0.pdf - Common...

This preview shows page 1 - 3 out of 5 pages.

System basics TASK RHEL View subscription information /etc/sysconfig/rhn/systemid 5 6 subscription-manager identity 6 7 8 Configure subscription rhnreg_ks 6 rhn_register 1, 3 5 6 7 8 subscription-manager 2 6 7 8 View system profile hwbrowser 5 sosreport dmidecode 5 6 7 8 lstopo lscpu 6 7 8 cat/proc/cpuinfo lshw 8 View RHEL version information /etc/redhat-release 5 6 7 8 1 Be aware of potential issues when using subscription-manager on Red Hat Enterprise Linux 5: . 2 Subscription-manager is used for Satellite 6, Satellite 5.6 with SAM and newer, and Red Hat’s 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: What subscription management services are offered by RHSM? , Transition of Red Hat Network Classic Hosted to Red Hat Subscription Management , and Satellite 5.6 unable to register RHEL 7 client system due to rhn-setup package not included in Minimal installation . Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 Security and identity TASK RHEL Configure system security /etc/selinux/config chcon restorecon semanage setsebool system-config-selinux 5 6 7 8 Report on system security sealert 5 6 7 8 LDAP, SSSD, Kerberos authconfig authconfig-tui authconfig-gtk 5 6 7 authselect 8 Network users getent 5 6 7 8 Basic configuration TASK RHEL Graphical configuration tools system-config-* 5 6 gnome-control-center 7 8 Text-based configuration tools system-config-*-tui 5 6 Configure printer system-config-printer 5 6 7 gnome-control-center 8 Configure network system-config-network 5 6 nmcli nmtui nm-connection-editor 7 8 gnome-control-center 8 Configure system language system-config-language 5 6 localectl 7 8 gnome-control-center 8 Configure time and date system-config-date 5 6 timedatectl 7 8 date 5 6 7 8 gnome-control-center 8 Synchronize time and date /etc/ntp.conf 5 6 ntpdate 5 6 7 timedatectl /etc/chrony.conf 7 8 date chronyc 8 Configure keyboard system-config-keyboard 5 6 localectl 7 8 gnome-control-center 8 Configure SSH /etc/ssh/ssh_config /etc/ssh/sshd_config ~/.ssh/config ssh-keygen 5 6 7 8
Jobs and services TASK RHEL List all services chkconfig --list ls /etc/init.d/ 5 6 systemctl -at service ls /etc/systemd/system/*.service ls /usr/lib/systemd/system/*.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture