An administrator wants to determine the geometry of a particular window in X, so she issues the __________ -metric command and then clicks on the window.
Answer : A
The xwininfo command is a utility for displaying information about windows in X. It can show various attributes of a window, such as its location, size, depth, border width, visual class, colormap, map state, and event masks. The -metric option specifies that all dimensions should be displayed in metric units (millimeters) rather than pixels. By issuing the xwininfo -metric command and then clicking on a window, the administrator can determine the geometry of that window, including the decorations, in millimeters.Reference:
xwininfo(1) --- Arch manual pages
[command line -
What command is used to add OpenSSH private keys to a running ssh-agen . instance? (Specify the command name only without any path.)
Answer : A
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
Answer : D
The LC_MESSAGES environment variable specifies the language to use in diagnostic messages for an internationalized program. It can be set to any value supported by the installation, such as pt for Portuguese, en for English, fr for French, etc. The LC_MESSAGES variable can be set either globally in a shell profile file, such as /etc/bash_profile, or locally in a shell session. For example, to set the language of messages to Portuguese for the current shell session, one can use the following command:
export LC_MESSAGES=pt
To verify the change, one can run an internationalized program, such as man, and see the output in Portuguese. The LC_MESSAGES variable can also be used to run a single command with a different language without affecting the system's language. For example, to run the man command with the Spanish language, one can use the following syntax:
LC_MESSAGES=es man
The LC_MESSAGES variable is useful for testing how programs behave in different languages or for displaying messages in different languages1234.Reference:
Locale Environment Variables in Linux | Baeldung on Linux
Linux / UNIX: TZ Environment Variable - nixCraft
Changing your locale on Linux and UNIX systems - IBM
Selecting message language in gcc and g++ - Stack Overflow
After adding a new email alias to the configuration, which command must be run in order to ensure the MTA knows about it? (Specify the command without any path but including all required parameters.)
Answer : A
The command that must be run in order to ensure the MTA knows about the new email alias is:
newaliases
This command updates the MTA's aliases database and makes the changes effective.It is equivalent to the commandssendmail -biorsendmail -I12.The newaliases command should be run after making modifications to the /etc/aliases file, which contains the email aliases for the system3.
Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)
Answer : B, D, E
According to the RFC 19181, the Internet Assigned Numbers Authority (IANA) has reserved the following three blocks of the IPv4 address space for private internets:
10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
These address blocks are not globally routable and are intended for use within private networks, such as home, office, or campus networks. They can be assigned to any device that does not need to communicate directly with the public internet, or that can use network address translation (NAT) to do so. Private addresses allow for more efficient use of the limited IPv4 address space and reduce the need for public addresses.
The other options are not reserved for private use by IANA. Option A, 127.0.0.0/8, is reserved for loopback addresses, which are used to refer to the local host. Option C, 169.255.0.0/16, is a typo and should be 169.254.0.0/16, which is reserved for link-local addresses, which are used for automatic address configuration on a local network segment. Option F, 224.0.0.0/4, is reserved for multicast addresses, which are used for one-to-many communication.
RFC 1918: Address Allocation for Private Internets - RFC Editor
IANA IPv4 Special-Purpose Address Registry
Private network - Wikipedia
What is true about the file .profile in a user's home directory?
Answer : C
How do shadow passwords improve the password security in comparison to standard non-shadow passwords?
Answer : A