Oracle Linux 8 Advanced System Administration Questions and Answers
You must add an additional swap device and you add this entry to /etc/fstab:
/.swapfile none swap defaults 0 0
Examine these commands and output:
# dd if=/dev/zero of=/.swapfile bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 4.32499 s, 248 MB/s
# swapon -a
swapon: /.swapfile: insecure permissions 0644, 0600 suggested.
swapon: /.swapfile: read swap header failed
Which two actions must you perform to add this swap device?
Which three statements are true about the journalctl command?
The ss command was invoked with options to:
limit output to all listening and non-listening TCP ports
display ports instead of the protocols that typically use those ports
display all available internal TCP information
display only connections whose source or destination port is 80
Which two results are produced by the command?
Which mdadm command creates a RAID-1 device consisting of two block volumes and one spare device?
Examine this command and output:
# ausearch -k mkdir
type=SYSCALL msg=audit(1604360199.719:44733): arch=c000003e syscall=83 success=no a0=55dec0b47400 a1=lc0 a2=0 a3=0
items=2 ppid=1354 pid=284632 auid=4294967295 uid=996 gid=996 euid=998 suid=998 fsuid=998 egid=996 sgid=996 fsgid=996
tty=(none) ses=429 comm="pkla-check-auth" exe="/usr/bin/pkla-check-authorization" subj=system_u:system_r:policykit_auth_t:s0 key="mkdir"
Which command displays the syscall in text format instead of numerical format?
Which two statements are true about removing a physical volume (PV) from a volume group (VG)?
Which two components are used for creating a new rsyslog rule?
Examine these Kubernetes components:
Which option correctly matches the components with their description?
Examine this command:
$ podman run –name=oracleshell -it oraclelinux:8 -slim
Which two statements are true upon execution?
Which two statements are true about the at and batch commands?
Which two statements are true about kernel boot parameters?
Examine /etc/anacrontab:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs are started during the following hours only
START_HOURS_RANGE=3-22
# period in days delay in minutes job-identifier command
1 5 dailyjob nice run-parts /etc/cron.daily
7 25 weeklyjob nice run-parts /etc/cron.weekly
@monthly 45 monthlyjob nice run-parts /etc/cron.monthly
Which two statements are true about the jobs scheduled in this file?
Which takes precedence for ssh program configuration?
Examine this command:
# nft add rule inet filter input tcp dport 80 drop
Which two statements are true upon execution?
Examine this network configuration:
NAME="ens4"
DEVICE="ens4"
ONBOOT=no
NETBOOT=yes
IPV6INIT=yes
BOOTPROTO=none
IPADDR=192.168.2.5
PREFIX=24
GATEWAY=192.168.2.1
TYPE=Ethernet
Which two statements are true after executing nmcli con mod ens4 ipv4.method auto?
Examine these commands and output:
# cat /etc/auto.master
/net -hosts
/- auto.direct ro
# cat /etc/auto.direct
/nfs1 host01:/export/share1
/nfs2 -sync host01:/export/share2
/nfs3 host02:/export/share3
Automounter must be used to mount these filesystems. Which mount options will it use?
Examine the access privileges on this directory:
drwx------ 2 user1 test 4096 Nov 6 10:12 my_directory/
You must enable another user to read and navigate to my_directory. Which command will do this?
Which two statements are true about fdisk?