Deploy, configure, and maintain systems Flashcards Preview

RHCSAv8.2 > Deploy, configure, and maintain systems > Flashcards

Flashcards in Deploy, configure, and maintain systems Deck (28)
Loading flashcards...
1

cron order

# 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

2

how to start a service

systemctl start httpd

3

how to stop a service

systemctl stop httpd

4

how to make a service start automatically on startup

systemctl enable httpd

5

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

systemctl set-default multi-user.target

6

how to see all time zones

timedatectl list-timezones

7

how to set time zone to specific zone

timedatectl set-timezone America/Chicago

8

how to set time to specific time

timedatectl set-time 9:00:00

9

how to set ntp

timedatectl set-ntp true

need to double check what this actually does

10

how to see the sources for chrony

chronyc sources -v

11

how to install a software package

yum install package

12

how to search for a software package

yum search package

13

how to delete a software package

yum remove package

14

how to add a yum repository source

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

15

how to enable a disabled yum repository

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

16

how to view all yum repositories

yum repolist all

17

how to install a software package that is not signed

yum install --nogpgcheck package

18

how to update all packages on the system

yum update

19

how to update just packages that have security issues

yum update --security

20

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

yum list installed

21

how to view all the past successful yum runs

yum history

22

how to revert a yum run

yum history undo 100

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

23

how to install a module

yum module install package

24

how to remove a module

yum module remove package

25

how to disable a module

yum module disable package

26

how to search for available modules

yum module search package

27

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.

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

28

how to change NTP server to classroom.example.com

vim /etc/chrony.conf
server classroom.example.com iburst