Skip to main content

Posts

Showing posts with the label OS base commands

Basic Commands for CentOS 7

Basic Configuration Query or System Locale localectl Display the Current Time and Date date timedatectl Sync Date and Time timedatectl Configure SSH /etc/ssh/ssh_config /etc/ssh/sshd_config Jobs And Services List all Services systemctl -at service ls /etc/systemd/system/*.service ls /usr/lib/systemd/system/*.service List Services that are Running systemctl -t service –state=active Start and Stop services. Replace <service> with the name of the service systemctl start <service> systemctl stop <service> Enable and Disable Services. Replace <service> with the name of the service systemctl enable <service> systemctl disable <service> Check Service Status. Replace <service> with the service name systemctl status <service>             <service> with the service name systemctl is-enabled <service> Configure Logs /etc/rsyslog.conf /etc/rsyslog.d/*.conf View Logs /var/log journalctl Find Files find Cr...