Operate Running Systems, Deploy Configure Running Systems Flashcards

1
Q

View all active targets on the system.

A

systemctl list-units –type=target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

View all targets installed on the disk.

A

systemctl list-units –type=target –all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Display the current default target.

A

systemctl get-default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Set the default target

A
  1. systemctl list-units –type=target –all | grep multi-user.target
  2. systemctl set-default multi-user.target
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

View all available systemd configuration units.

A

systemctl -t help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Find the status of the sshd service.

A

systemctl status sshd.service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

List all active service unit configuration files.

A

systemctl list-units –type=service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Check if the httpd service is active

A

systemctl is-active httpd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Check if the httpd service is enabled

A

systemctl is-enabled httpd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

View enabled and disabled settings for all units of the type “service”.

A

systemctl list-units –type=service –all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

List all service unit configuration files regardless of whether they are active or not

A

systemctl list-units –all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Show all the repos the OS can pull from

A

sudo yum repolist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Determine which timezone should be used based on your location

A

timedatectl list-timezones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Show the current time

A

timedatectl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What file do we use to update the NTP time services

A

/etc/chrony.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Install the virtualization packages

A
  1. yum grouplist hidden
  2. yum groupinstall “Virtualization Client”
  3. yum groupinstall “Virtualization Tools”
  4. yum groupinstall “Virtualization Platform”
17
Q

Start the virtual machine service for the box

A
  1. systemctl enable libvirtd

2. systemctl start libvirtd

18
Q

Show information for particular packages within groups that will be installed.

A

yum group info “”

19
Q

Search the yum repository for the apache server

A

yum search apache http server

20
Q

Show information on the apache webserer

A

yum info httpd

21
Q

show information on installed software packages

A

yum list installed | grep httpd

22
Q

show what provides the http server

A

yum provides /var/www

23
Q

update the apache httpd server

A

yum update httpd