Linux+ 10-13

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/64

encourage image

There's no tags or description

Looks like no tags are added yet.

65 Terms

1
New cards
Which command displays print jobs in the queue for printer1 only?
lpstat -o printer1 — The -o option displays jobs for a specific printer.
2
New cards
What command generates SSH keys for a user account?
ssh-keygen — Creates a public and private SSH key pair.
3
New cards
Which file stores DNS server IP addresses?
/etc/resolv.conf — Contains DNS resolver configuration.
4
New cards
Which command removes a package from an RPM-based system?
rpm -e — Erases an installed RPM package.
5
New cards
What protocol does CUPS use to share printers by default?
IPP — Internet Printing Protocol.
6
New cards
Which command checks missing shared libraries?
ldd — Displays required libraries and reports missing ones as not found.
7
New cards
What port does SSH use by default?
22 — SSH uses TCP port 22.
8
New cards
Which command deletes a user account and its home directory?
userdel -r username — Removes the account and associated home directory.
9
New cards
Which package managers install sandboxed applications?
Flatpak and Snap — Both manage sandboxed application formats.
10
New cards
What command displays TCP connections on Linux?
ss -t — Displays TCP connections using the iproute2 package.
11
New cards
Which command searches RPM repositories for packages?
dnf search packagename — Searches available RPM repositories.
12
New cards
What is the first field in /etc/passwd?
Username — The first field identifies the account name.
13
New cards
Which file controls hostname resolution methods and their order?
/etc/nsswitch.conf — Defines the order of name resolution sources.
14
New cards
What command creates an image backup of a partition?
dd — Copies data at the block level to create an image.
15
New cards
Which two environment variables set a user's default printer?
PRINTER and LPDEST — Either can be exported in ~/.bash_profile.
16
New cards
What is the loopback IP address?
127.0.0.1 — Refers to the local computer.
17
New cards
Which command compiles source code using a Makefile?
make — Reads the Makefile and runs the required compilation commands.
18
New cards
What command copies SSH public keys to a remote computer?
ssh-copy-id — Installs your public key on a remote system.
19
New cards
Which file stores the hostname on Linux?
/etc/hostname — Contains the system hostname.
20
New cards
Which command updates shared library configuration and cache?
ldconfig — Updates /etc/ld.so.conf and /etc/ld.so.cache information.
21
New cards
Which command sets the default printer for all users?
lpoptions -d printer1 — Sets the default printer.
22
New cards
What are two ways to resolve a hostname to an IP address?
DNS and /etc/hosts — DNS uses name servers; /etc/hosts provides manual mappings.
23
New cards
Which command lists files in an installed RPM package?
rpm -ql packagename — Queries and lists package files.
24
New cards
What command prevents a printer from accepting new print jobs and displays a reason?
cupsreject -r "Unavailable" printer5 — Rejects new jobs and provides a message.
25
New cards
Which two commands can modify the Linux routing table?
ip and route — Both can add, change, or delete routes.
26
New cards
What file configures the maximum size of the journald database?
/etc/systemd/journald.conf — Contains systemd journal configuration.
27
New cards
Which command verifies a SHA-256 checksum?
sha256sum — Calculates or checks SHA-256 hashes.
28
New cards
What is the default compression level used by gzip?
6 — gzip uses level -6 by default.
29
New cards
Which command displays DNS information for a hostname?
dig hostname — Queries DNS records.
30
New cards
Which command sets a default printer for an individual user?
export PRINTER=printer5 or export LPDEST=printer5 — Sets the user's default printer.
31
New cards
Which command lists Flatpak applications available from a remote repository?
flatpak remote-ls — Lists applications from configured remote repositories.
32
New cards
What command extracts a CPIO archive?
cpio -vicdu -I archive.cpio — The -i option extracts and -I specifies the input archive.
33
New cards
Which file stores Fedora NetworkManager connection profiles?
/etc/NetworkManager/system-connections/name.nmconnection — Stores persistent network configuration.
34
New cards
What command lists files contained in a Debian package?
dpkg -L packagename — Lists files belonging to a package.
35
New cards
Which two commands display TCP connections on Linux?
ss -t and netstat -t — ss uses iproute2; netstat uses net-tools.
36
New cards
Which command removes a Debian package and its configuration files?
apt purge packagename — Removes the package and its configuration files.
37
New cards
What command can test DNS resolution using systemd-resolved?
resolvectl query hostname — Queries the configured DNS resolver.
38
New cards
Which utility displays the compression ratio when using compress?
compress -v filename — Displays the percentage of compression reduction.
39
New cards
What command can install RPM packages from online repositories?
dnf or yum — Both can search repositories and install or upgrade RPM packages.
40
New cards
What does the -9 option do in gzip?
Provides maximum compression — Uses the highest compression level.
41
New cards
Which command displays a printer's queue using the lpstat utility?
lpstat -o printername — Shows jobs waiting for that printer.
42
New cards
Which command can install a sandboxed application from a Flatpak repository?
flatpak install — Installs Flatpak applications.
43
New cards
What does SSH provide that Telnet does not?
Encryption — SSH encrypts network traffic; Telnet sends traffic unencrypted.
44
New cards
What does the -v option do with the compress command?
Displays the compression ratio — Shows the percentage of file size reduction.
45
New cards
Which command lists missing libraries as not found?
ldd — Checks shared library dependencies.
46
New cards
What is the correct order for restoring a full backup and four incremental dump backups?
0, 1, 2, 3, 4 — Restore the full backup first, followed by incremental backups in order.
47
New cards
What command can configure NetworkManager from the terminal?
nmcli — Views and configures NetworkManager.
48
New cards
Which command configures systemd-networkd?
networkctl — Views and manages systemd-networkd.
49
New cards
Which protocol is used by CUPS for network printing?
IPP — Internet Printing Protocol.
50
New cards
What command deletes a Linux user account?
userdel username — Removes the user account.
51
New cards
What does the .xz extension indicate?
A file compressed using xz.
52
New cards
What does the .tar extension indicate?
A tar archive, commonly called a tarball.
53
New cards
Which command creates a tar archive on a tape device?
tar -cvf /dev/st0 * — Creates an archive on the tape device.
54
New cards
Which two tools manage RPM software repositories?
dnf and yum — Both manage RPM packages.
55
New cards
Which command searches for a package named oobla in RPM repositories?
dnf search oobla — Searches repository package names and descriptions.
56
New cards
Which command can run an AppImage file?
Grant execute permission with chmod +x sample.appimage, then run ./sample.appimage.
57
New cards
Where can third-party APT repository files be stored?
/etc/apt/sources.list.d — APT reads repository configuration files from this directory.
58
New cards
Which command installs source code after compilation?
make install — Installs the compiled program.
59
New cards
What command creates an archive using CPIO?
cpio — Creates and extracts archives; its operation depends on the selected options.
60
New cards
Which two methods provide graphical remote Linux administration?
VNC and ssh -X — VNC provides remote desktop access; ssh -X forwards graphical applications.
61
New cards
Which command can resolve a hostname to an IP address?
host hostname — Performs a DNS lookup.
62
New cards
Which configuration information allows a computer to send traffic to remote networks?
Default gateway — Identifies the router used to reach other networks.
63
New cards
What is the facility used for network login events in rsyslog?
authpriv — Used for authentication-related and security-sensitive messages.
64
New cards
What does the minus sign before a logfile mean in rsyslog.conf?
It enables delayed or buffered writing rather than immediately synchronizing every write. Important: the quiz explanation appears to reverse this behavior; without the minus sign, writes are synchronous.
65
New cards
Which rsyslog priority matches warnings and more serious events?
warn — Matches warning priority and more severe priorities when used without an equals sign.