Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) (EX200 Korean) Free Practice Test

Question 1
매일 오전 2시에 backup-now.service를 실행하는 systemd 타이머를 생성하세요.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
Create timer unit:
cat > /etc/systemd/system/backup-now.timer < < 'EOF'
[Unit]
Description=Daily backup timer
[Timer]
OnCalendar=*-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target
EOF
Enable it:
systemctl daemon-reload
systemctl enable --now backup-now.timer
systemctl list-timers --all | grep backup-now
Detailed Explanation:
* OnCalendar=*-*-* 02:00:00 means daily at 02:00.
* Persistent=true runs missed jobs after boot if the system was off.
* timers.target is the normal target for timer units.
* RHEL 10 documentation includes systemd timer units as a standard scheduling mechanism. ( Red Hat
Documentation )
Question 2
시스템 모니터링 스크립트를 생성하세요
* systeminfo라는 이름의 스크립트를 생성합니다.
* 스크립트는 /usr/local/bin에 위치해야 합니다.
* 이 스크립트는 현재 시스템 프로세스에 대한 정보를 얻는 데 사용됩니다. 다음 프로세스 정보를 순서대로 출력해야 합니다.
프로세스 소유자
프로세스 PID
가상 메모리 사용량
상주(물리적) 메모리 사용량
CPU 사용률
출력 결과는 CPU 사용률 백분율 순으로 정렬되어야 하며, CPU를 가장 많이 사용하는 프로세스가 마지막에 표시되어야 합니다.
Correct Answer:
Solution:
[root@node1 ~]# vim /usr/local/bin/systeminfo
#!/bin/bash
ps -xao user,pid,vsz,rss,%cpu --sort=pcpu
Using sort:
#!/bin/bash
ps -xao user,pid,vsz,rss,%cpu | sort -fnk 5
Verify:
[root@node1 ~]# chmod +x /usr/local/bin/systeminfo
[root@node1 ~]# systeminfo
Explanation of ps -xao:
x - Display processes without a controlling terminal, and show the full path of each command
a - Display all processes associated with a terminal, except session leaders
o - User-defined output format
Question 3
공동 디렉토리 만들기
다음과 같은 속성을 가진 공유 디렉터리 /home/managers를 생성합니다.
- /home/managers의 그룹 소유권은 sysmgrs입니다.
- 해당 디렉터리는 sysmgrs 그룹 구성원에게 읽기, 쓰기 및 실행 권한을 부여해야 하지만, 다른 사용자에게는 읽기 또는 쓰기 권한을 부여해서는 안 됩니다.
(물론, 루트 사용자는 모든 파일과 폴더에 접근할 수 있습니다.)
- /home/managers 내에 생성된 모든 파일은 자동으로 sysmgrs 그룹으로 설정된 그룹 소유권을 상속받아야 합니다.
Correct Answer:
Solution:
[root@node1 ~]# mkdir /home/managers
[root@node1 ~]# chgrp sysmgrs /home/managers
[root@node1 ~]# chmod 2770 /home/managers
# Verification
[root@node1 ~]# ll -d /home/managers
Question 4
/swapfile 경로에 512MiB 크기의 새 스왑 파일을 생성하고, 활성화한 다음, 영구적으로 저장되도록 설정하십시오.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
dd if=/dev/zero of=/swapfile bs=1M count=512
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" > > /etc/fstab
swapon --show
Detailed Explanation:
* dd creates the file.
* chmod 600 protects swap contents.
* mkswap prepares the file as swap.
* swapon activates it now.
* /etc/fstab ensures it is enabled at boot.
Question 5
/etc 디렉터리를 압축 아카이브로 생성하고 파일 형식을 확인하십시오.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
tar -zvcf /root/etc_backup.tar.gz /etc
file /root/etc_backup.tar.gz
Detailed Explanation:
* tar creates the archive.
* -z uses gzip compression.
* -v is verbose.
* -c creates the archive.
* -f names the output file.
* file confirms the resulting archive type.
Question 6
부팅 과정에서 루트 암호를 재설정하세요.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
* Reboot the system.
* Interrupt GRUB boot.
* Press e to edit the boot entry.
* On the linux line, append:
rd.break
* Boot with Ctrl+x.
* At the emergency shell:
mount -o remount,rw /sysroot
chroot /sysroot
passwd root
touch /.autorelabel
exit
exit
Detailed Explanation:
* rd.break drops you into an early emergency environment.
* /sysroot contains the real root filesystem.
* mount -o remount,rw /sysroot makes it writable.
* chroot /sysroot changes into the installed system.
* passwd root resets the password.
* touch /.autorelabel is critical so SELinux relabels files on next boot.
Question 7
SELinux 디버깅
표준 포트가 아닌 82번 포트에서 실행되는 웹 서버가 콘텐츠 제공 중 문제를 겪고 있습니다. 다음 조건을 충족하도록 문제를 디버깅하고 해결하십시오.
- 시스템의 웹 서버는 /var/www/html에 호스팅된 HTML 파일을 제공할 수 있습니다. (참고: 기존 파일의 내용을 삭제하거나 수정하지 마십시오.)
- 웹 서버는 82번 포트를 통해 콘텐츠를 제공할 수 있습니다.
- 웹 서버는 시스템 부팅 시 자동으로 시작될 수 있습니다.
Correct Answer:
Solution:
# Check which package provides the semanage command
[root@node1 ~]# yum provides "*/semanage"
# Install the semanage command
[root@node1 ~]# yum -y install policycoreutils-python-utils
[root@node1 ~]# semanage port -l |grep http
[root@node1 ~]# semanage port -a -t http_port_t -p tcp 82
# Alternatively, you can use man semanage port, then search for EXAMPLE.
[root@node1 ~]# systemctl restart httpd
[root@node1 ~]# systemctl enable httpd
# Verification, seeing the source code indicates correctness (mandatory operation)
[root@node1 ~]# curl http://node1.domain250.example.com:82