Questions
ayuda
option
My Daypo

ERASED TEST, YOU MAY BE INTERESTED ONLPIC 2.2

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
LPIC 2.2

Description:
LPIC parte 2 de 3

Author:
AVATAR

Creation Date:
16/03/2024

Category:
Others

Number of questions: 40
Share the Test:
Facebook
Twitter
Whatsapp
Share the Test:
Facebook
Twitter
Whatsapp
Last comments
No comments about this test.
Content:
What information is provided by the echo $$ command? The process ID of the current shell The process ID for the following command The process ID of the last command executed The process ID of the last command which has been placed in the background The process ID of the echo command.
Which command makes the shell variable named VARIABLE visible to subshells? export $VARIABLE env VARIABLE set $VARIABLE set VARIABLE export VARIABLE.
What output is produced by the following command sequence? echo '1 2 3 4 5 6' | while read a b c; do echo result $c $b $a; done result: 6 5 4 result: 1 2 3 4 5 6 result: 3 4 5 6 2 1 result: 6 5 4 3 2 1 result: 3 2 1.
Which of the following configuration files should be modified to globally set shell variables for all users? /etc/profile /etc/bashrc ~/.bash_profile /etc/.bashrc /etc/shellenv.
What output does the command seq 10 produce A continuous stream of numbers increasing in increments of 10 until the command is stopped It creates no output because a second parameter is missing The number 0 through 9 with one number per line The number 10 to standard output The numbers 1 through 10 with one number per line.
What command list the aliases defined in the current Bash shell? (Specify only the command without any path or parameters.).
Which of the following commands can be used to limit the amount of memory a user may use? umask usermod passwd ulimit chage.
What is a purpose of an SSH host key? It must be sent by any SSH client in addition to a user key in order to identify the client's host It is root key by which all user SSH keys must be signed It provides the server's identity information to connecting SSH clients It authenticates any user that logs into a remote machine from the key's host It is used by system services like cron, syslog or a backup job to automatically connect to remote hosts.
What is the purpose of TCP wrapper? Manage and adjust bandwidth used by TCP services. Bind a network service to a TCP port. Encapsulate TCP messages in IP packets. Add SSL support to plain text TCP services. Limit access to a network service.
Given the following excerpt of the sudo configuration: jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk Which of the following statements are true? (Choose three.) Jane can run /bin/id only after specifying her password. Jane can run /sbin/fdisk after specifying root's password. Jane can run /sbin/fdisk after specifying her password. Jane can run /bin/kill without specifying a password. Jane can run /bin/id without specifying her password.
Which configuration file contains the default options for SSH clients? /etc/ssh/sshd_config /etc/ssh/ssh /etc/ssh/ssh_config /etc/ssh/client /etc/ssh/ssh_client.
Depending on a system's configuration, which of the following files can be used to enable and disable network services running on this host? /etc/profile /etc/xinetd.conf /etc/ports /etc/services /etc/host.conf.
Which of the following commands can identify the PID of a process which opened a TCP port? ptrace strace debug lsof nessus.
When using X11 forwarding in SSH, what environment variable is automatically set in the remote shell in order to help applications to connect to the correct X11 server? (Specify only the environment variable without any additional commands or values.).
The presence of what file will temporarily prevent all users except root from logging into a system? (Specify the full name of the file, including path.).
Which of the following commands preloads and manages existing SSH keys that are used for automatic authentication while logging in to order machines using SSH? sshd ssh-keyring ssh-keygen ssh-pki ssh-agent.
On a machine running several X servers, how do programs identify the different instances of the X11 server? By a fixed UUID that is defined in the X11 configuration file. By a display name like: 1. By the name of the user that runs the X server like x11:bob. By a device name like /dev/X11/xservers/1. By a unique IPv6 address from the fe80::/64 subnet.
What is the purpose of a screen reader? It manages virtual keyboards on touch screen displays. It reads the parameters of the attached monitors and creates an appropriate X11 configuration. It displays lines and markers to help people use speed reading techniques. It manages and displays files that contain e-books. It reads displayed text to accommodate the needs of blind or visually impaired people.
The X11 configuration file xorg.conf is grouped into section. How is the content of the section SectionName represented? It is placed in curly brackets as in Section SectionName {...}. It is placed between the tags <Section name="SectionName"> and </Section>. It is placed between a line containing Section "SectionName" and a line containing EndSection. It is placed after the row [SectionName]. It is placed after an initial unindented Section "SectionName" and must be indented by exactly onetab character.
Which of the following features are provided by SPICE? (Choose two.) Connecting local USB devices to remote applications. Accessing graphical applications on a remote host. Replacing Xorg as local X11 server. Downloading and locally installing applications from a remote machine. Uploading and running a binary program on a remote machine.
What is the systemd journal stored? /var/jlog/ and /var/jlogd/ /proc/log/ and /proc/klog/ /run/log/journal/ or /var/log/journal/ /var/log/syslog.bin or /var/log/syslog.jrn /etc/systemd/journal/ or /usr/lib/systemd/journal/.
Which of the following is true regarding the command sendmail? With any MTA, the sendmail command must be run periodically by the cron daemon. When using systemd, sendmail is an alias to relayctl. The sendmail command prints the MTA's queue history of which mails have been sent successfully. It is only available when the sendmail MTA is installed. All common MTAs, including Postfix and Exim, provide a sendmail command.
Which file inside the CUPS configuration directory contains the settings of the printers? cups-devices.conf snmp.conf printers.conf printcap.conf cupsd.conf.
Which file is processed by newaliases? (Specify the full name of the file, including path.).
Which of the following are syslog facilities? (Choose two.) local5 accounting mail postmaster remote.
Which of the following parameters are used for journalctl to limit the time frame of the output? (Choosetwo.) --since= --from= --until= --upto= --date=.
What is true regarding the file ~/.forward? When configured correctly ~/.forward can be used to forward each incoming mail to one or more other recipients. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses. As ~/.forward is owned by the MTA and not writable by the user, it must be edited using the editaliases command. By default, only ~/.forward files of users in the group mailq are processed while all other user's ~/.forward files are ignored.
Which of the following commands display a list of jobs in the print queue? (Choose two.) cups --list lprm -l lpstat lpr -q lpq.
On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.) append Howdy logger Howdy systemd-cat echo Howdy echo Howdy > /dev/journal journalctl add Howdy.
Which of the following options in the chrony configuration file define remote time sources? (Choose two.) source clock remote pool server.
Which command is used to sync the hardware clock to the system clock? (Specify only the command without any path or parameters.).
Which of the following situations is observed and corrected by an NTP client? The skew in time between the system clock and the computer's hardware clock. The physical location and the timezone configuration. Changes in the time zone of the current computer's location. Adjustment needed to support Daylight Saving Time. The skew in time between the system clock and the reference clock.
If an alias ls exists, which of the following commands updates the alias to point to the command ls -l instead of the alias's current target? set ls='ls -l' alias ls='ls -l' alias --force ls='ls -l' alias --update ls ls='ls -l' realias ls='ls -l'.
Which of the following commands puts the output of the command date into the shell variable mydate? mydate="date" mydate="exec date" mydate="$((date))" mydate="$(date)" mydate="${date}".
What information is shown by the echo $? command? The process ID of the echo command. The exit value of the command executed immediately before echo. The process ID which will be used for the next command. The exit value of the echo command. The process ID of the current shell.
Which of the following files is not read directly by a Bash login shell? ~/.bashrc ~/.bash_profile ~/.bash_login ~/.profile /etc/profile.
What is true about the file .profile in a user's home directory? It must be executable. It must call the binary of the login shell. It must use a valid shell script syntax. It must start with a shebang. It must be readable for its owner only.
What is true regarding the statement beginning with #! that is found in the first line of script? (Choose two.) It prevents the scripts from being executed until the ! is removed. It triggers the installation of the script's interpreter. It specifies the path and the arguments of the interpreter used to run the script. It defines the character encoding of the script. It is a comment that is ignored by the script interpreter.
What output does the command seq 1 5 20 produce? 1 5 10 15 1 6 11 16 1 2 3 4 2 3 4 5 5 10 15 20.
Which of the following commands lists all defines variables and functions within Bash? env export env -a set echo $ENV.
Report abuse Consent Terms of use