Useful command for preventive maintenance

Restart CentOs Desktop Servicesystemctl restart gdm.service
Check HDD info in human readable format df -lh
Restart specific servicesystemctl restart [service_name]
List all services
systemctl
Check specific service statussystemctl status [service_name]
Check CentOS Versioncat /etc/centos-release
Restart Networksystemctl restart network
Remove Packageyum remove [package_name]
Install Package
yum install [package_name]
Install Package (Local Source) -Recommended without Internet Connection
rpm- ivh [package_name]
Clear terminal screenclear
View Network Adaptornmcli d
Network Managernmtui
Check Server Uptime
uptime
Check Server Last Reboot Time
last reboot

Telnet 443openssl s_client -connect ip-address:443