Deploy, configure, and maintain systems Flashcards

1
Q

cron order

A
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue ...
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how to start a service

A

systemctl start httpd

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

how to stop a service

A

systemctl stop httpd

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

how to make a service start automatically on startup

A

systemctl enable httpd

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

how to configure the system to boot into a specific target automatically

A

systemctl set-default multi-user.target

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

how to see all time zones

A

timedatectl list-timezones

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

how to set time zone to specific zone

A

timedatectl set-timezone America/Chicago

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

how to set time to specific time

A

timedatectl set-time 9:00:00

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

how to set ntp

A

timedatectl set-ntp true

need to double check what this actually does

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

how to see the sources for chrony

A

chronyc sources -v

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

how to install a software package

A

yum install package

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

how to search for a software package

A

yum search package

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

how to delete a software package

A

yum remove package

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

how to add a yum repository source

A

yum config-manager –add-repo=”https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/”

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

how to enable a disabled yum repository

A

yum config-manager –enable rhel-8-server-debug-rpms

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

how to view all yum repositories

A

yum repolist all

17
Q

how to install a software package that is not signed

A

yum install –nogpgcheck package

18
Q

how to update all packages on the system

A

yum update

19
Q

how to update just packages that have security issues

A

yum update –security

20
Q

how to view a list of all packages installed on the system

A

yum list installed

21
Q

how to view all the past successful yum runs

A

yum history

22
Q

how to revert a yum run

A

yum history undo 100

100 is the number of the run you want to undo, this can be found by running yum history

23
Q

how to install a module

A

yum module install package

24
Q

how to remove a module

A

yum module remove package

25
Q

how to disable a module

A

yum module disable package

26
Q

how to search for available modules

A

yum module search package

27
Q

configure the system to use /run/tempFiles to store temporary files that can be easily cleaned up if not accessed within 30 seconds by the command systemd-tempfiles –clean with permissions of 0700.

A

vim /etc/tmpfiles.d/tempFiles.conf
d /run/tempFiles 0700 root root 30s
systemd-tmpfiles –create /etc/tmpfiles.d/tempFiles.conf

28
Q

how to change NTP server to classroom.example.com

A

vim /etc/chrony.conf

server classroom.example.com iburst