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
Install the virtualization packages
- yum grouplist hidden
- yum groupinstall “Virtualization Client”
- yum groupinstall “Virtualization Tools”
- yum groupinstall “Virtualization Platform”
Start the virtual machine service for the box
- systemctl enable libvirtd
2. systemctl start libvirtd
Show information for particular packages within groups that will be installed.
yum group info “”
Search the yum repository for the apache server
yum search apache http server
Show information on the apache webserer
yum info httpd
show information on installed software packages
yum list installed | grep httpd
show what provides the http server
yum provides /var/www
update the apache httpd server
yum update httpd