Skip to main content

Posts

Showing posts with the label Basic 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...

Do you know about vmstat command? - explain all the vmstat command operations

vmstat   command in Linux/Unix is a   performance monitoring command   of the system as it gives the information about processes, memory, paging, block IO, disk and CPU scheduling. All these functionalities makes the command   vmstat   also known as   virtual memory statistic reporter . Syntax : vmstat Delay: It is the time interval in between two updates. It can be termed as a sampling period after each interval of the sampling period report that will be printed with the updated details. If there will be no delay specified only one report will be printed with average value since boot. Count: It is the number of updates which is printed after each interval(sampling period). In absence of count and delay is specified, the default value of count is   infinite . Free: It specifies the amount of free memory/idle memory spaces which are not being used. si: Memory that is swapped in every second from disk in kilobytes. so: Memory that is swapped ...