Here are the some commands of RHEL server regarding Sanity which is done after reboot of server that provides linux beginner to enhance his knowledge and give with its usage and with example:
- dmesg: This command displays messages from the kernel buffer. Example: dmesg | grep -i error
- uptime: This command displays system uptime information. Example: uptime -s
- netstat: This command displays network statistics. Example: netstat -s
- ifconfig: This command displays network interface configuration information. Example: ifconfig eth0
- ps: This command displays process information. Example: ps -ef | grep [process name]
- lsmod: This command displays loaded kernel modules. Example: lsmod | grep usb_storage
- lsblk: This command displays information about block and their attributes. Example: lsblk
- df: This command displays disk space usage information. Example: df -h
- service: This command manages system services. Example: service sshd start
- chkconfig: This command manages the runlevel services. Example: chkconfig --list
- uname: This command displays system information. Example: uname -a
- date: This command displays system date and time information. Example: date
- hostname: This command displays system hostname information. Example: hostname
- df -h : This command will show the mount points in your system.Example : # df -h
- cat /etc/resolv.conf: This important command will show DNS entries
- cat /etc/fstab : This will show the mount point entries in your system
- ?ps -ef|grep -i pmon : This will show status and if any database is running on the system it will show that.
- systemctl status chronyd : This command will show time sync status if disable so make it active
- systemctl status ntpd : Either chronyd or ntpd will running on the system
- netstat -r :netstat?command is used to show detailed network status information
- route :- The route command is the interface used to access the Linux kernel's routing tables.
Before doing reboot of the machine Need to check and note these status and after patch and reboot cross -verify all the things which you have noted if any
discrepancy arises connect to technical team of related department