RHCSA Exam with Complete Solutions
What is the syntax to make a logical volume named backup on a volume group called
servera_group. It needs to have a size of 400MB Correct Ans-lvcreate -n backup --size 400M
servera_group
What command, option, and argument would you use to log into a registry for podman. What is
at the end you can't forget for it to search the path correctly? Correct Ans-podman login
<registry address>/
Don't forget the trailing "/"
Ex: podman login registry.lab.example.com/
What command, subcommand, and argument is used to download a container image from a
registry? Correct Ans-podman pull <url to container>:<tag>
What command will start a container in detached mode Correct Ans-podman run -d --name
<container name> <container image>:<tag>
podman run -d --name web apache:latest
,What command, subcommand, option and argument do you use to create a container image
from a Containerfile file Correct Ans-podman build -t <image name>:<tag>
/path/to/Containerfile
podman build -t python39:latest .
What command, subcommand and argument will delete a container Correct Ans-podman rm
<container name>
Ex: podman rm web_01
If you want to grant permissions to a folder on a host system for a container you need to do
what two things? Correct Ans-Get the uid and gid of the user account from the container
podman exec -it whoami
podman exec -it grep <username> /etc/passwd
Then use podman unshare chown to modify the permissions with the uid:gid from the previous
step
podman unshare chown 27:27 /path/to/host/folder
,What command and subcommand list the repos added a server Correct Ans-dnf repolist all
After using the dnf config-manager --add-repo command if you are using a insecure repo (over
http for example) what do you need to add to the repo file created in
/etc/yum.repos.d/ Correct Ans-gpgcheck=0
What command, subcommand, and option would you use to disable a repo Correct Ans-dnf
config-manager --disable <repo name>
What command, subcommand, and argument will list the repos that have a package available
for install or will also tell you the install status of a package Correct Ans-dnf list <package
name>
Ex: dnf list bzip2
What command is like traceroute for Linux Correct Ans-tracepath
tracepath google.com
What command and options can be used to list all listening tcp ports Correct Ans-ss -lt
What property of a nmcli connection do you have to set to no to prevent it from auto starting
with the system Correct Ans-connection.autoconnect
, Ex: connection.autoconnect no
What command will copy the ssh public key of a user's profile to a remote systems allowed
connections for that user Correct Ans-ssh-copy-id
Ex: ssh-copy-id operator1@server
What two commands can be used to manage password properties Correct Ans-passwd
chage
What chmod option need to be used to add delete only files they own Correct Ans-o+t
What command is use to create symlinks between files Correct Ans-ln
Command to create tar files Correct Ans-tar
What command is used to create a log entry Correct Ans-logger
What command is used to modify the timezone Correct Ans-timedatectl
What two commands can be used to modify the network settings Correct Ans-nmcli
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TheeGrades. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.99. You're not tied to anything after your purchase.