Curated

Services and User Management

0 votes

All cards133

  1. 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.

  2. 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

  3. 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

  4. 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

  5. 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.

  6. 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

  7. 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

  8. 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

  9. 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.

  10. 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.

  11. 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.

  12. (image)

    Each of these is a tool or interface for inspecting running processes and their resource use or open resources.

  13. 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

  14. The killall command sends a signal to every process that matches the given command ___ instead of selecting a single process ID.

    name

  15. The cargo ___ command downloads, compiles, and installs a Rust binary crate from crates.io into the ~/.cargo/bin directory.

    install

  16. To install a compiled program under /opt/myapp instead of the default /usr/local, run ./configure with the --___=/opt/myapp option.

    prefix

  17. (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.

  18. (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.

  19. (image)

    Each of these systemctl subcommands changes either the current running state or the boot-time and activation availability of a unit.

  20. When you run docker pull nginx without specifying a tag, Docker pulls the image tagged ___ by default.

    latest

  21. 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

  22. (image)

    All five commands or options control how a container is created, started in the background, or deleted during its lifecycle.

  23. (image)

    All of these describe ways a container's storage can be created or mapped to a path inside it.

  24. (image)

    Each is an option used when defining a container network or publishing container ports to the host.

  25. Running diff with the ___ option produces unified format output, in which changed lines are prefixed with + or - and surrounded by lines of context.

    -u

  26. Running lsof with the ___ option and a directory path lists open files found anywhere beneath that directory, searching recursively.

    +D

  27. In stat output, the timestamp labeled ___ is updated when a file's permissions or ownership are modified, even if its contents are untouched.

    Change

  28. (image)

    Each term is a shell job-control feature used to start, list, pause or move jobs between background and foreground.

  29. (image)

    Each is a mechanism or command used to work out which packages satisfy, block or control the dependencies of a requested change.

  30. (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.

  31. (image)

    All five are Dockerfile instructions that shape what is built into an image layer or how the container's main process starts.

  32. (image)

    Each term is a command option that changes how files or directories are copied, moved or deleted.

  33. (image)

    Each term is a find expression that either filters results by a file attribute or acts on the files found.