Centos 7 Notes - alex-aleyan/linux_wiki GitHub Wiki

Installing Graphical Desktop

link:

  • yum groupinstall "Graphical Administration Tools" "GNOME Desktop"
  • ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target or systemctl set-default graphical.target

Admin cheatsheet

  • View system profile

    • sosreport
    • dmidecode
    • lstopo
    • lscpu
  • Networking:

    • View Sockets:
      • ss
      • lsof
      • netstat
    • List info:
      • ip addr
      • nmcli dev show
      • teamdctl
      • brctl
      • bridge
    • Configure network:
      • nmcli
      • nmtui
      • nm-connection-editor
    • Monitoring:
      • ''' '''
  • Processes:

    • View Usage:
      • top
      • ps
      • sar
      • iostat
      • ss
      • vmstat
      • mpstat
      • numastat
      • tuna
    • Trace lib calls:
      • strace
      • ltrace
    • Kill
      • kill
      • pkill
      • killall
    • Configure Running Process:
      • nice
      • renice
      • taskset
  • Services:

    • List Services:

      • systemctl -at service
      • ls /etc/systemd/system/*.service
      • ls /usr/lib/systemd/system/*.service
      • systemctl -t service --state=active
      • systemctl status <name>.service
      • systemctl is-enabled <name>
    • Start/Stop:

      • systemctl start name.service
      • systemctl stop name.service
  • Logging:

    • Configure:
      • /etc/rsyslog.conf
      • /etc/rsyslog.d/*.conf
      • /var/log/journal
      • systemd-journald.service
    • View:
      • /var/log
      • journalctl
  • Hwardware and Drivers:

    • View Hardware:
      • lshw
      • hwbrowser
    • Configure Hardware:
      • udev
    • View KERNEL Params:
      • rpm -q kernel
      • uname -r
      • sysctl -a
      • cat /proc/cmdline
    • Configure Kernel Module:
      • modprobe
      • modprobe -r
⚠️ **GitHub.com Fallback** ⚠️