All cards133
- Which apt command upgrades installed packages and may remove packages when needed to resolve changed dependencies?
apt full-upgrade performs the upgrade and removes installed packages if that is needed to resolve dependency changes. apt upgrade never removes packages, and apt update only refreshes the package index.
- Setting the ___ directive to 1 in a .repo file makes dnf verify the GPG signature of the repository metadata rather than of individual packages.
repo_gpgcheck
- To display a tree of the units that delayed the system from reaching its default target, with the time each became active, run systemd-analyze ___.
critical-chain
- After you manually copy a new unit file into /etc/systemd/system, you must run systemctl ___ so that systemd rereads its unit definitions and can find the new unit.
daemon-reload
- Which Dockerfile instruction specifies the base image for a build?
FROM sets the base image that the build starts from, and every Dockerfile needs one. RUN executes commands in a new layer on top of that base but does not choose it.
- To pass every variable listed in a file named app.env into a new container, add the ___ option to the docker run command.
--env-file
- When Podman relabels a bind-mounted host directory with the z or Z option, it applies the SELinux file type ___ so confined containers can access the content.
container_file_t
- To give each container its own MAC address so it appears as a separate physical device on the LAN, attach it to a network that uses the ___ driver.
macvlan
- Which lsof option selects network connections, such as those using a given port?
The -i option limits lsof output to network files, and a form like -i :80 filters by port. The -p, -u and -c options filter by process ID, user and command name instead.
- Which mkdir option creates any missing parent directories along the given path?
The -p option makes mkdir create every missing parent directory and not fail if one already exists. The -m option only sets the permission mode of the new directory.
- Which find test matches file names without regard to letter case?
The -iname test works like -name but ignores case. The -name test is case-sensitive, and -inum matches an inode number.
- (image)
Each of these is a tool or interface for inspecting running processes and their resource use or open resources.
- When standard output is a terminal and is not redirected, nohup writes the command's output to a file named ___ in the current directory.
nohup.out
- The killall command sends a signal to every process that matches the given command ___ instead of selecting a single process ID.
name
- The cargo ___ command downloads, compiles, and installs a Rust binary crate from crates.io into the ~/.cargo/bin directory.
install
- To install a compiled program under /opt/myapp instead of the default /usr/local, run ./configure with the --___=/opt/myapp option.
prefix
- (image)
Each item is a way to control whether a package repository is used, either for a single transaction, persistently, or just to view its status.
- (image)
Each is a command-line utility that manages a different part of system configuration or reporting. hostnamectl, resolvectl, timedatectl, and systemd-analyze are part of systemd, while sysctl comes from procps and works on kernel parameters.
- (image)
Each of these systemctl subcommands changes either the current running state or the boot-time and activation availability of a unit.
- When you run docker pull nginx without specifying a tag, Docker pulls the image tagged ___ by default.
latest
- In a Dockerfile, the ___ instruction sets the user name or UID that subsequent RUN, CMD, and ENTRYPOINT instructions run as, so the container's main process does not run as root.
USER
- (image)
All five commands or options control how a container is created, started in the background, or deleted during its lifecycle.
- (image)
All of these describe ways a container's storage can be created or mapped to a path inside it.
- (image)
Each is an option used when defining a container network or publishing container ports to the host.
- Running diff with the ___ option produces unified format output, in which changed lines are prefixed with + or - and surrounded by lines of context.
-u
- Running lsof with the ___ option and a directory path lists open files found anywhere beneath that directory, searching recursively.
+D
- In stat output, the timestamp labeled ___ is updated when a file's permissions or ownership are modified, even if its contents are untouched.
Change
- (image)
Each term is a shell job-control feature used to start, list, pause or move jobs between background and foreground.
- (image)
Each is a mechanism or command used to work out which packages satisfy, block or control the dependencies of a requested change.
- (image)
All are apt subcommands that manage the package index or the lifecycle of installed software, differing in what they change and what they leave behind.
- (image)
All five are Dockerfile instructions that shape what is built into an image layer or how the container's main process starts.
- (image)
Each term is a command option that changes how files or directories are copied, moved or deleted.
- (image)
Each term is a find expression that either filters results by a file attribute or acts on the files found.