RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) - EX200 Korean Exam Practice Test
시스템 시간 동기화 설정을 time.example.com을 NTP 소스로 사용하도록 구성하고 동기화가 완료되었는지 확인하십시오.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
sed -i '/^pool /d;/^server /d' /etc/chrony.conf
echo "server time.example.com iburst" > > /etc/chrony.conf
systemctl enable --now chronyd
systemctl restart chronyd
chronyc sources -v
chronyc tracking
Detailed Explanation:
* chronyd is the RHEL 10 NTP implementation.
* iburst speeds up initial synchronization.
* chronyc sources -v and chronyc tracking confirm the sync state.
* Red Hat's RHEL 10 time synchronization documentation uses chrony as the supported NTP
implementation. ( Red Hat Documentation )
Explanation:
Solution:
sed -i '/^pool /d;/^server /d' /etc/chrony.conf
echo "server time.example.com iburst" > > /etc/chrony.conf
systemctl enable --now chronyd
systemctl restart chronyd
chronyc sources -v
chronyc tracking
Detailed Explanation:
* chronyd is the RHEL 10 NTP implementation.
* iburst speeds up initial synchronization.
* chronyc sources -v and chronyc tracking confirm the sync state.
* Red Hat's RHEL 10 time synchronization documentation uses chrony as the supported NTP
implementation. ( Red Hat Documentation )
사용자 natasha에 대해 새 파일의 umask 값을 400으로, 디렉터리의 umask 값을 500으로 제한적으로 설정하십시오.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
echo "umask 0277" > > /home/natasha/.bash_profile
Detailed Explanation:
* A umask of 0277 removes group and other permissions entirely.
* New files: base 666 minus mask 277 gives 400.
* New directories: base 777 minus mask 277 gives 500.
* Putting it in .bash_profile applies it for that user's login shell.
Explanation:
Solution:
echo "umask 0277" > > /home/natasha/.bash_profile
Detailed Explanation:
* A umask of 0277 removes group and other permissions entirely.
* New files: base 666 minus mask 277 gives 400.
* New directories: base 777 minus mask 277 gives 500.
* Putting it in .bash_profile applies it for that user's login shell.
애플리케이션을 구성하세요
* rhcsa라는 이름의 애플리케이션을 구성합니다.
* 이 애플리케이션을 나타샤 사용자로 실행하면 "This is a rhcsa"라는 문자열이 표시되어야 합니다.
* rhcsa라는 이름의 애플리케이션을 구성합니다.
* 이 애플리케이션을 나타샤 사용자로 실행하면 "This is a rhcsa"라는 문자열이 표시되어야 합니다.
Correct Answer:
Explanation/Reference:
Solution:
su - natasha
vim .bashrc
alias rhcsa='ehco This is a rhcsa'
source .bashrc
rhcsa
Solution:
su - natasha
vim .bashrc
alias rhcsa='ehco This is a rhcsa'
source .bashrc
rhcsa
/dev/sdc에 pool1이라는 이름의 Stratis 풀을 생성하고 fs1이라는 이름의 파일 시스템을 생성합니다.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
dnf install -y stratisd stratis-cli
systemctl enable --now stratisd
stratis pool create pool1 /dev/sdc
stratis filesystem create pool1 fs1
stratis filesystem list
Detailed Explanation:
* stratisd is the daemon and stratis-cli provides the command-line interface.
* A Stratis pool is created from a block device.
* The Stratis file system is then created inside that pool.
* RHEL 10 documents Stratis as an available volume-managing file-system layer. ( Red Hat
Documentation )
Explanation:
Solution:
dnf install -y stratisd stratis-cli
systemctl enable --now stratisd
stratis pool create pool1 /dev/sdc
stratis filesystem create pool1 fs1
stratis filesystem list
Detailed Explanation:
* stratisd is the daemon and stratis-cli provides the command-line interface.
* A Stratis pool is created from a block device.
* The Stratis file system is then created inside that pool.
* RHEL 10 documents Stratis as an available volume-managing file-system layer. ( Red Hat
Documentation )
/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.
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.
네트워크 설정 구성
노드1을 다음 네트워크 설정으로 구성하십시오.
호스트 이름: node1.domain250.example.com
IP 주소: 172.25.250.100
서브넷 마스크: 255.255.255.0
게이트웨이: 172.25.250.254
노드1을 다음 네트워크 설정으로 구성하십시오.
호스트 이름: node1.domain250.example.com
IP 주소: 172.25.250.100
서브넷 마스크: 255.255.255.0
게이트웨이: 172.25.250.254
Correct Answer:
Solution:
# Connect to servera via console for IP modification, then check using the ip addr command.
# After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos.
[root@clear ~] nmcli con show
[root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254
autoconnect yes
[root@clear ~] nmcli con up 'network configuration name'
[root@clear ~] ip a
[root@clear ~] ssh [email protected]
[root@clear ~] hostnamectl set-hostname red.lab0.example.com
# Verification
[root@node1 ~] ip a //Check if the IP is correct
[root@node1 ~] hostname //Check if the hostname is correct
# Connect to servera via console for IP modification, then check using the ip addr command.
# After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos.
[root@clear ~] nmcli con show
[root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254
autoconnect yes
[root@clear ~] nmcli con up 'network configuration name'
[root@clear ~] ip a
[root@clear ~] ssh [email protected]
[root@clear ~] hostnamectl set-hostname red.lab0.example.com
# Verification
[root@node1 ~] ip a //Check if the IP is correct
[root@node1 ~] hostname //Check if the hostname is correct
/share/projects 디렉토리를 생성하고, Alex를 소유자로 설정한 다음, 사용자들이 서로의 파일을 삭제할 수 없도록 스티키 비트를 구성하세요.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
mkdir -p /share/projects
chown alex /share/projects/
chmod a+rwx,+t /share/projects/
ls -ld /share/projects/
Detailed Explanation:
* chmod a+rwx gives read, write, and execute to everyone.
* +t sets the sticky bit.
* Sticky bit on a shared directory means users can create files, but only the file owner, directory owner, or
root can delete them.
* This is the same model used on /tmp.
Explanation:
Solution:
mkdir -p /share/projects
chown alex /share/projects/
chmod a+rwx,+t /share/projects/
ls -ld /share/projects/
Detailed Explanation:
* chmod a+rwx gives read, write, and execute to everyone.
* +t sets the sticky bit.
* Sticky bit on a shared directory means users can create files, but only the file owner, directory owner, or
root can delete them.
* This is the same model used on /tmp.