Quiz
Simulacro 2: Certificacion LPI - 102
Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.
Fragen in diesem Quiz (60)
1What kind of hardware is represented by the device name /dev/hda?
- AIDE Hard Drive
- BSCSI Hard Drive
- CSATA Hard Drive
- DSound Card
2What file should you query to determine whether there is an IRQ conflict on your system?
- A/proc/interrupts
- B/proc/cpuinfo
- C/proc/meminfo
- D/proc/irqstatus
3Which of the following are arguments you can pass to the kernel at boot time
to tell it to start in runlevel 1 (single-user mode)? (Select two)- A1
- Bsingle
- Cuser
- Done
4Which process is referred to as the “mother of all processes” and always has PID 1?
- Ainit
- Bmother
- Cadmin
- Dadministrator
5What is the command to delete the default gateway from the system IP routing table?
(Choose TWO correct answers.)- Aoute del default
- Bfconfig unset default
- Cnetstat -r default
- Dip route del default
- Esysctl ipv4.default_gw=0
6What is true regarding a default route?
- AThe default route is always used first. When the default route is not available more specific routes are tried.
- BWhen a default route is set, all other routes are disabled until the default route is deleted.
- CThe default route is only used if there is not a more specific route to a destination host or network.
- DWithout a default route, no network communication even in directly attached networks is possible.
7What is true regarding TCP port 23?
- APort 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used.
- BPort 23 is the well known port for the SSH service which provides secure logins.
- CPort 23 is the well known port for the rlogin service which is SSL secured by default.
- DPort 23 is the well known port for the system login services which are encrypted when the user runs the starttls command in his login shell.
8Which of the following IPv4 networks are reserved by IANA for private address assignment
and private routing? (Choose THREE correct answers.)- A127.0.0.0/8
- B10.0.0.0/8
- C169.255.0.0/16
- D172.16.0.0/12
- E192.168.0.0/16
9Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)
- A2001:db8::15 www.example.com www
- Bwww.example.com www 203.0.13.15
- C203.0.113.15 www.example.com www
- Dwww.example.com,www 203.0.13.15,2001:db8::15
- E003.0.113.15,2001:db8::15 www.example.com www
10Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a
source for host name lookups? (Choose TWO correct answers.)- Aresolv
- Bdns
- Cremote
- Dfiles
- Ehosts
11Which of the following may occur as a consequence of using the command ifconfig?
(Choose THREE correct answers.)- ANew name servers may be added to the resolver configuration.
- BNetwork interfaces may become active or inactive.
- CThe routing table may change.
- DIP addresses may change.
- EThe system's host name may change.
12What is the purpose of the nsswitch.conf file?
- AIt is used to configure where the C library looks for system information such as host names and user passwords.
- BIt is used to configure network protocol port numbers such as for HTTP or SMTP.
- CIt is used to configure LDAP authentication services for the local system.
- DIt is used to configure which network services will be turned on during the next system boot.
13Which of the following commands preloads and manages keys that are used for automatic
authentication while logging in to other machines using SSH?- Asshd
- Bssh-agent
- Cssh-keygen
- Dssh-add
14When trying to unmount a device it is reported as being busy. Which of the following
commands could be used to determine which process is causing this?- Adebug
- Blsof
- Cnessus
- Dstrace
- Etraceroute
15With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)
[blank_start]DISPLAY, $DISPLAY[blank_end]- ADISPLAY, $DISPLAY
16Which of the following programs uses the hosts.allow file to perform its main task of
checking for access control restrictions to system services?- Atcpd
- Binetd
- Cfingerd
- Dmountd
- Exinetd
17What is a purpose of an SSH host key?
- AIt must be sent by any SSH client in addition to a user key in order to identify the client's host.
- BIt provides the server's identity information to connecting SSH clients.
- CIt is the root key by which all user SSH keys must be signed.
- DIt authenticates any user that logs into a remote machine from the key's host.
- EIt is used by system services like cron, syslog or a backup job to automatically connect to remote hosts.
18Which of the following find commands will print out a list of files owned by root and with the
SUID bit set in /usr?- Afind /usr -uid 0 -perm +4000
- Bfind -user root +mode +s /usr
- Cfind -type suid -username root -d /usr
- Dfind /usr -ls \*s\* -u root
- Efind /usr -suid -perm +4000
19Which command is used to set restrictions on the size of a core file that is created for a
user when a program crashes?- Acore
- Bdquota
- Culimit
- Dquota
20Which configuration file would be edited to change default options for the OpenSSH
server?- A/etc/ssh/sshd_config
- B/etc/ssh/ssh
- C/etc/ssh/server
- D/etc/ssh/ssh_config
- E/etc/ssh/ssh_server
21Which of the following commands can be used to limit the amount of memory a user may
use?- Aumask
- Busermod
- Culimit
- Dpasswd
- Echage
22What environment variable holds the list of all directories that are searched by
the shell when you type a command name?- A$LIST
- B$VIEW
- C$PATH
- D$ENV
- ENone of the above
23In the bash shell, entering the !! command has the same effect as which one of
the following (assuming bash is in emacs mode)?- ACtrl-P and Enter
- BCtrl-N and Enter
- CCtrl-U and Enter
- D!-2
- E!2
24Name the command that displays pages from the online user’s manual and command reference.
[blank_start]man[blank_end]- Aman
25Which of the following commands displays the comments from a bash script?
Select all that apply.- Afind “^#” /etc/rc.d/rc.local
- Bsed ‘/^#/ !d’ /etc/init.d/httpd
- Cgrep ^# /etc/init.d/httpd
- Dgrep ^# /etc/passwd
- Elocate “^#” /etc/skel/.bashrc
26Which one of the following answers creates an environment variable VAR1,
present in the environment of a bash child process?- AVAR1="fail" ; export VAR1
- BVAR1="fail" \ export VAR1
- CVAR1="fail"
- Dset VAR1="fail" ; enable VAR1
- Eexport VAR1 \ VAR1="fail"
27What SQL command is used to modify data present in a table?
- AINSERT
- BWHERE
- CUPDATE
- DOVERWRITE
- EJOIN
28What output will the following command generate: seq -s";" -w 1 10
- A01;02;03;04;05;06;07;08;09;10
- B1;2;3;4;5;6;7;8;9;10
- C1;10
- D01;02;03;04;05;06;07;08;09;010
- ENone of the above
29Adam wants to protect himself from inadvertently overwriting files when copy-
ing them, so he wants to alias cp to prevent overwrite. How should he go about
this? Select one.- APut alias cp='cp -i' in ~/.bashrc
- BPut alias cp='cp -i' in ~/.bash_profile
- CPut alias cp='cp -p' in ~/.bashrc
- DPut alias cp='cp -p' in ~/.bash_profile
- EPut alias cp = 'cp -I' in ~/.bashrc
30Consider the following script, stored in a file with proper modes for execution:
#!/bin/bash
for $v1 in a1 a2
do
echo $v1
done
Which one of the following best represents the output produced on a terminal
by this script?- Ain
a1
a2 - Ba1
a2 - C$v1
$v1
$v1 - DNo output is produced, but the script executes correctly.
- ENo output is produced, because the script has an error.
- Ain
31Monica consults the /etc/passwd file expecting to find encrypted passwords for
all of the users on her system. She sees the following:
jdoe:x:500:500::/home/jdoe:/bin/bash
bsmith:x:501:501::/home/bsmith:/bin/tcsh
Which of the following is true? Select one.- AAccounts jdoe and bsmith have no passwords.
- BAccounts jdoe and bsmith are disabled.
- CThe passwords are in /etc/passwd-.
- DThe passwords are in /etc/shadow.
- EThe passwords are in /etc/shadow-.
32What is the main configuration file for X Windows?
- A/etc/xorg.conf
- B/etc/x11.conf
- C/etc/X11/x11.conf
- D/etc/X11/xorg.conf
- ENone of the above
33What file in the user’s home directory will an X Windows application look to
for configuration settings such as color and video mode?- A~/.xinitrc
- B~/.xconfig
- C~/.Xresources
- D~/.xorg.conf
- E~/.bashrc
34What is the protocol XDMCP used for?
- ARemote logging of X Windows events.
- BRemote control of a running X Windows display.
- CGraphical login support for the local host.
- DGraphical login support for remote hosts on the network.
- ENone of the above.
35Which of the following are not commonly used display managers for X Windows? Choose two.
- Axdm
- Bgdm
- Ckdm
- Dxfce
- EX11
36Emacspeak is:
- AA popular text editor for Linux.
- BA window manager.
- CAn assistive technology that handles screen reading for a number of console
applications. - DAn assistive technology that provides a user with an on-screen keyboard.
- ENone of the above.
37Which one of the following outcomes results from the following command?
# chmod g+s /home/software- AThe SUID bit will be set for /home/software.
- BThe SGID bit will be set for /home/software, preventing access by those not
a member of the software group. - CThe SGID bit will be set for /home/software, to keep group membership of
the directory consistent for all files created. - DThe sticky bit will be set for /home/software.
- EThe sticky bit will be applied to all files in /home/software.
38Which one of these files determines how messages are stored using syslogd?
- A/etc/sysconfig/logger.conf
- B/etc/syslog.conf
- C/etc/syslogd.conf
- D/etc/conf.syslog
- E/etc/conf.syslogd
39Where are mail logs usually stored in a standard syslog setup?
- A/var/log/messages
- B/var/log/secure
- C/var/log/dmesg
- D/var/log/maillog
- E/var/maillog
40How many hosts can exist on a subnet with mask 255.255.255.128? Select one.
- A512
- B256
- C128
- D127
- E126
41For an Internet workstation with a single network interface, what routes must
be added to interface eth0 after it is initialized? Select one.- ANone
- BInterface
- CInterface and default gateway
- DInterface, local network, and default gateway
42On a Linux server, what service is most likely “listening” on port 25? Select one.
- AApache
- BSSHd
- CPostfix
- DSamba
- Ev
43Which one of these protocols is a Layer 4 connection-oriented protocol? Select one.
- ATCP
- BIP
- CUDP
- DICMP
44Which command will display information about Ethernet interface eth0? Select one.
- Acat /proc/eth/0
- Bifconfig eth0
- Cipconfig eth0
- Dipconfig /dev/eth0
- Ecat /etc/eth0.conf
45What does the printcap entry sd indicate? Select one.
- AThe system default printer
- BA printer’s spool directory
- CA device file for the printer
- DA location where errors are stored
- EThe printer driver
46Which of the following is a valid entry in /etc/fstab for a remote NFS mount
from server fs1? Select one.- Afs1:/proc /mnt/fs1 nfs defaults 9 9
- B/mnt/fs1 fs1:/proc nfs defaults 0 0
- Cfs1:/home /mnt/fs1 nfs defaults 0 0
- D/mnt/fs1 fs1:/home nfs defaults 0 0
- E/home:fs1 /mnt/fs1 nfs defaults 0 0
47Which network protocol is used by SSH and FTP? Select one.
- AICMP
- BUDP
- CTCP
- DDHCP
- EPPP
48Which of the following programs will display DNS information for a host?
Choose all that apply.- Ahost
- Bnslookup
- Cnsstat
- Ddig
- Eping
49Which of the following statements regarding the ICMP protocol is not true?
Select one.- AICMP is connectionless.
- BICMP provides network flow control.
- CICMP is also known as UDP.
- DICMP is used by ping.
50What server daemon resolves domain names to IP addresses for requesting hosts?
[blank_start]named[blank_end]- Anamed
51What function does a print filter serve? Select one.
- AIt collates output from multiple users.
- BIt translates various data formats into a page description language.
- CIt rejects print requests from unauthorized users.
- DIt rejects print requests from unauthorized hosts.
- EIt analyzes print data and directs print requests to the appropriate lpd.
52Consider the following excerpt from the file /etc/resolv.conf on a Linux workstation:
nameserver 127.0.0.1
nameserver 192.168.1.5
nameserver 192.168.250.2
What can be said about this configuration? Select one.- ATwo DNS servers on the public network are being used for resolution.
- BOne DNS server on the local network is being used for resolution.
- CThe configuration contains errors that will prevent the resolver from
functioning. - DA caching-only nameserver is the first nameserver queried.
- EThe resolver library will consult nameserver 192.168.250.2 first.
53Name the file that contains simple mappings between IP addresses and system names.
[blank_start]/etc/hosts[blank_end]- A/etc/hosts
54What program can be used to interactively change the behavior of a print queue? Select one.
- Alpd
- Blpr
- Clpq
- Dlprm
- Elpc
55What program will display a list of each hop across the network to a specified destination? Select one.
- Atracert
- Brttrace
- Ctraceroute
- Droutetrace
- Einit
56What is the system-wide bash configuration file called? Include the entire path.
[blank_start]/etc/profile[blank_end]- A/etc/profile
57Consider the following line from /etc/passwd:
adamh:x:500:1000:Adam Haeder:/home/adamh:/bin/bash
What does the number 1000 mean?- AUser adamh has a UID of 1000.
- BThe primary group that adamh belongs to is group 1000.
- CUser adamh was the 1000th user created on this system
- DThe password for adamh expires in 1000 days.
- EThe secondary group that adamh belongs to is group 1000.
58Consider the following trivial script called myscript:
#!/bin/bash
echo "Hello"
echo $myvar
Also consider this command sequence and result:
# set myvar='World'
# ./myscript
Hello
The script ran without error but didn’t echo World. Why not? Select one.- AThe syntax of the set command is incorrect.
- BThe script executes in a new shell, and myvar wasn’t exported.
- CThe #!/bin/bash syntax is incorrect.
- DThe $myvar syntax is incorrect.
- EThe script is sourced by the current shell, and myvar is available only to new
shells.
59How does a process indicate to the controlling shell that it has exited with an error condition? Select one.
- AIt prints an error message to stderr.
- BIt prints an error message to stdout.
- CIt sets an exit code with a zero value.
- DIt sets an exit code with a nonzero value.
- EIt causes a segmentation fault.
60How can a nonprivileged user configure sendmail to forward mail to another account? Select one.
- AShe can add a new entry in /etc/aliases.
- BShe can create a .forward file containing the new address.
- CShe can create an .alias file containing the new address.
- DShe can create a sendmail.cf file containing the new address.
- EShe cannot forward mail without assistance from the administrator.
Informationen
- Beschreibung
- Quiz am Simulacro 2: Certificacion LPI - 102, erstellt von Carlos Alberto Jara Alva am 26/07/2022.
- Sprache
- Español
- Aufrufe
- 192
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz