最新的RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) - EX200 Korean免費考試真題

ops라는 이름의 그룹을 생성하고, sara라는 사용자를 생성한 다음, sara를 ops라는 보조 그룹에 추가합니다.
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
groupadd ops
useradd sara
usermod -aG ops sara
id sara
Detailed Explanation:
* groupadd creates the group.
* useradd creates the user.
* usermod -aG adds the user to a supplementary group without removing existing memberships.
* id sara confirms the result.
논리 볼륨 크기 조정
논리 볼륨 "vo"와 해당 파일 시스템의 크기를 300MiB로 조정하되, 파일 시스템 내용은 변경하지 않도록 하십시오.
참고: 파티션 크기는 요청된 크기와 정확히 일치하는 경우가 드물기 때문에 290MiB에서 310MiB 사이의 범위는 허용됩니다.
ext4 파일 시스템의 경우 resize2fs를 사용하면 즉시 적용되고, xfs 파일 시스템의 경우 xfs_growfs를 사용하면 즉시 적용됩니다.
正確答案:
Solution:
# Scan logical volumes
[root@node2 ~]# lvscan
# Extend the logical volume. With -rL, the filesystem space is adjusted immediately after extending the volume.
[root@node2 ~]# lvextend -rL 300M /dev/myvol/vo
# Check the changes
[root@node2 ~]# lsblk
[root@node2 ~]# lvs
# Verification
[root@node2 ~]# df -h
Quadlet 기반 systemd 컨테이너 유닛을 생성하여 sleepy라는 이름의 UBI 10 컨테이너가 부팅 시 자동으로 시작되도록 합니다.
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
Create the Quadlet file:
mkdir -p /etc/containers/systemd
cat > /etc/containers/systemd/sleepy.container < < 'EOF'
[Container]
Image=registry.access.redhat.com/ubi10/ubi
ContainerName=sleepy
Exec=sleep 3600
[Install]
WantedBy=multi-user.target
EOF
Reload and enable:
systemctl daemon-reload
systemctl enable --now sleepy.service
systemctl status sleepy.service
Detailed Explanation:
* Quadlet is the preferred modern way to manage Podman containers with systemd for new configurations.
* The .container file is translated into a systemd-managed service.
* RHEL 10 documentation notes that podman generate systemd still exists, but Quadlets are preferred for new setups. ( Red Hat Documentation )
registry.access.redhat.com/ubi10/ubi 이미지를 다운로드하고, webtest라는 이름의 루트리스 컨테이너를 실행하세요.
3600을 자세요.
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
podman pull registry.access.redhat.com/ubi10/ubi
podman run -d --name webtest registry.access.redhat.com/ubi10/ubi sleep 3600
podman ps
Detailed Explanation:
* podman pull downloads the image.
* podman run -d starts the container in the background.
* Rootless Podman is a normal RHEL container workflow.
* RHEL 10 container documentation continues to center on Podman for image and container
management. ( Red Hat Documentation )
지원되는 파일 시스템에 대해 주기적인 TRIM 작업을 활성화합니다.
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
systemctl enable --now fstrim.timer
systemctl status fstrim.timer
Detailed Explanation:
* fstrim.timer schedules discard of unused blocks.
* This is useful on SSD-backed storage and thin-provisioned environments.
* RHEL 10 storage documentation explicitly documents enabling fstrim.timer. ( Red Hat Documentation )
파일 찾기
"jacques" 사용자에게 속한 모든 파일을 찾아 루트 디렉터리 아래의 /root/findfiles 디렉터리로 이동하십시오.
正確答案:
Solution:
[root@node1 ~]# mkdir /root/findfiles
[root@node1 ~]# find / -user jacques
[root@node1 ~]# find / -user jacques -exec cp -a {} /root/findfiles \;
# Verification
[root@node1 ~]# ll /root/findfiles/
사용자가 생성한 파일에 대한 기본 UMASK를 설정합니다.
사용자 natasha님께:
* 새로 생성되는 파일의 기본 권한은 r--r--r--이어야 합니다.
* 새로 생성되는 디렉터리의 기본 권한은 r-xr-xr-x여야 합니다.
正確答案:
Solution:
# su - natasha
Write the umask setting into the user's .bashrc file in the home directory:
bash
Copy code
echo 'umask 222' >> .bashrc
source .bashrc
Command explanation:
umask is used to control the default permissions for files and directories created by a user.
In umask:
The first digit is for special permissions and is usually 0 (can be omitted if not needed).
The second digit controls owner permissions.
The third digit controls group permissions.
The fourth digit controls permissions for others.

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어