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>
Ex: podman pull registry.lab/ubi8/python-38:latest
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