Operate Running Systems, Deploy Configure Running Systems Flashcards
View all active targets on the system.
systemctl list-units –type=target
View all targets installed on the disk.
systemctl list-units –type=target –all
Display the current default target.
systemctl get-default
Set the default target
- systemctl list-units –type=target –all | grep multi-user.target
- systemctl set-default multi-user.target
View all available systemd configuration units.
systemctl -t help
Find the status of the sshd service.
systemctl status sshd.service
List all active service unit configuration files.
systemctl list-units –type=service
Check if the httpd service is active
systemctl is-active httpd
Check if the httpd service is enabled
systemctl is-enabled httpd
View enabled and disabled settings for all units of the type “service”.
systemctl list-units –type=service –all
List all service unit configuration files regardless of whether they are active or not
systemctl list-units –all
Show all the repos the OS can pull from
sudo yum repolist
Determine which timezone should be used based on your location
timedatectl list-timezones
Show the current time
timedatectl
What file do we use to update the NTP time services
/etc/chrony.conf