Simulacro 2: Certificacion LPI - 102

Beschreibung

Quiz am Simulacro 2: Certificacion LPI - 102, erstellt von Carlos Alberto Jara Alva am 26/07/2022.
Carlos Alberto Jara Alva
Quiz von Carlos Alberto Jara Alva, aktualisiert more than 1 year ago
Carlos Alberto Jara Alva
Erstellt von Carlos Alberto Jara Alva vor etwa 2 Jahre
168
0

Zusammenfassung der Ressource

Frage 1

Frage
What kind of hardware is represented by the device name /dev/hda?
Antworten
  • IDE Hard Drive
  • SCSI Hard Drive
  • SATA Hard Drive
  • Sound Card

Frage 2

Frage
What file should you query to determine whether there is an IRQ conflict on your system?
Antworten
  • /proc/interrupts
  • /proc/cpuinfo
  • /proc/meminfo
  • /proc/irqstatus

Frage 3

Frage
Which 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)
Antworten
  • 1
  • single
  • user
  • one

Frage 4

Frage
Which process is referred to as the “mother of all processes” and always has PID 1?
Antworten
  • init
  • mother
  • admin
  • administrator

Frage 5

Frage
What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)
Antworten
  • oute del default
  • fconfig unset default
  • netstat -r default
  • ip route del default
  • sysctl ipv4.default_gw=0

Frage 6

Frage
What is true regarding a default route?
Antworten
  • The default route is always used first. When the default route is not available more specific routes are tried.
  • When a default route is set, all other routes are disabled until the default route is deleted.
  • The default route is only used if there is not a more specific route to a destination host or network.
  • Without a default route, no network communication even in directly attached networks is possible.

Frage 7

Frage
What is true regarding TCP port 23?
Antworten
  • Port 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used.
  • Port 23 is the well known port for the SSH service which provides secure logins.
  • Port 23 is the well known port for the rlogin service which is SSL secured by default.
  • Port 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.

Frage 8

Frage
Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)
Antworten
  • 127.0.0.0/8
  • 10.0.0.0/8
  • 169.255.0.0/16
  • 172.16.0.0/12
  • 192.168.0.0/16

Frage 9

Frage
Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)
Antworten
  • 2001:db8::15 www.example.com www
  • www.example.com www 203.0.13.15
  • 203.0.113.15 www.example.com www
  • www.example.com,www 203.0.13.15,2001:db8::15
  • 003.0.113.15,2001:db8::15 www.example.com www

Frage 10

Frage
Which 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.)
Antworten
  • resolv
  • dns
  • remote
  • files
  • hosts

Frage 11

Frage
Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)
Antworten
  • New name servers may be added to the resolver configuration.
  • Network interfaces may become active or inactive.
  • The routing table may change.
  • IP addresses may change.
  • The system's host name may change.

Frage 12

Frage
What is the purpose of the nsswitch.conf file?
Antworten
  • It is used to configure where the C library looks for system information such as host names and user passwords.
  • It is used to configure network protocol port numbers such as for HTTP or SMTP.
  • It is used to configure LDAP authentication services for the local system.
  • It is used to configure which network services will be turned on during the next system boot.

Frage 13

Frage
Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?
Antworten
  • sshd
  • ssh-agent
  • ssh-keygen
  • ssh-add

Frage 14

Frage
When 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?
Antworten
  • debug
  • lsof
  • nessus
  • strace
  • traceroute

Frage 15

Frage
With 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]
Antworten
  • DISPLAY, $DISPLAY

Frage 16

Frage
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
Antworten
  • tcpd
  • inetd
  • fingerd
  • mountd
  • xinetd

Frage 17

Frage
What is a purpose of an SSH host key?
Antworten
  • It must be sent by any SSH client in addition to a user key in order to identify the client's host.
  • It provides the server's identity information to connecting SSH clients.
  • It is the root key by which all user SSH keys must be signed.
  • 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.

Frage 18

Frage
Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
Antworten
  • find /usr -uid 0 -perm +4000
  • find -user root +mode +s /usr
  • find -type suid -username root -d /usr
  • find /usr -ls \*s\* -u root
  • find /usr -suid -perm +4000

Frage 19

Frage
Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?
Antworten
  • core
  • dquota
  • ulimit
  • quota

Frage 20

Frage
Which configuration file would be edited to change default options for the OpenSSH server?
Antworten
  • /etc/ssh/sshd_config
  • /etc/ssh/ssh
  • /etc/ssh/server
  • /etc/ssh/ssh_config
  • /etc/ssh/ssh_server

Frage 21

Frage
Which of the following commands can be used to limit the amount of memory a user may use?
Antworten
  • umask
  • usermod
  • ulimit
  • passwd
  • chage

Frage 22

Frage
What environment variable holds the list of all directories that are searched by the shell when you type a command name?
Antworten
  • $LIST
  • $VIEW
  • $PATH
  • $ENV
  • None of the above

Frage 23

Frage
In the bash shell, entering the !! command has the same effect as which one of the following (assuming bash is in emacs mode)?
Antworten
  • Ctrl-P and Enter
  • Ctrl-N and Enter
  • Ctrl-U and Enter
  • !-2
  • !2

Frage 24

Frage
Name the command that displays pages from the online user’s manual and command reference. [blank_start]man[blank_end]
Antworten
  • man

Frage 25

Frage
Which of the following commands displays the comments from a bash script? Select all that apply.
Antworten
  • find “^#” /etc/rc.d/rc.local
  • sed ‘/^#/ !d’ /etc/init.d/httpd
  • grep ^# /etc/init.d/httpd
  • grep ^# /etc/passwd
  • locate “^#” /etc/skel/.bashrc

Frage 26

Frage
Which one of the following answers creates an environment variable VAR1, present in the environment of a bash child process?
Antworten
  • VAR1="fail" ; export VAR1
  • VAR1="fail" \ export VAR1
  • VAR1="fail"
  • set VAR1="fail" ; enable VAR1
  • export VAR1 \ VAR1="fail"

Frage 27

Frage
What SQL command is used to modify data present in a table?
Antworten
  • INSERT
  • WHERE
  • UPDATE
  • OVERWRITE
  • JOIN

Frage 28

Frage
What output will the following command generate: seq -s";" -w 1 10
Antworten
  • 01;02;03;04;05;06;07;08;09;10
  • 1;2;3;4;5;6;7;8;9;10
  • 1;10
  • 01;02;03;04;05;06;07;08;09;010
  • None of the above

Frage 29

Frage
Adam 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.
Antworten
  • Put alias cp='cp -i' in ~/.bashrc
  • Put alias cp='cp -i' in ~/.bash_profile
  • Put alias cp='cp -p' in ~/.bashrc
  • Put alias cp='cp -p' in ~/.bash_profile
  • Put alias cp = 'cp -I' in ~/.bashrc

Frage 30

Frage
Consider 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?
Antworten
  • in a1 a2
  • a1 a2
  • $v1 $v1 $v1
  • No output is produced, but the script executes correctly.
  • No output is produced, because the script has an error.

Frage 31

Frage
Monica 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.
Antworten
  • Accounts jdoe and bsmith have no passwords.
  • Accounts jdoe and bsmith are disabled.
  • The passwords are in /etc/passwd-.
  • The passwords are in /etc/shadow.
  • The passwords are in /etc/shadow-.

Frage 32

Frage
What is the main configuration file for X Windows?
Antworten
  • /etc/xorg.conf
  • /etc/x11.conf
  • /etc/X11/x11.conf
  • /etc/X11/xorg.conf
  • None of the above

Frage 33

Frage
What file in the user’s home directory will an X Windows application look to for configuration settings such as color and video mode?
Antworten
  • ~/.xinitrc
  • ~/.xconfig
  • ~/.Xresources
  • ~/.xorg.conf
  • ~/.bashrc

Frage 34

Frage
What is the protocol XDMCP used for?
Antworten
  • Remote logging of X Windows events.
  • Remote control of a running X Windows display.
  • Graphical login support for the local host.
  • Graphical login support for remote hosts on the network.
  • None of the above.

Frage 35

Frage
Which of the following are not commonly used display managers for X Windows? Choose two.
Antworten
  • xdm
  • gdm
  • kdm
  • xfce
  • X11

Frage 36

Frage
Emacspeak is:
Antworten
  • A popular text editor for Linux.
  • A window manager.
  • An assistive technology that handles screen reading for a number of console applications.
  • An assistive technology that provides a user with an on-screen keyboard.
  • None of the above.

Frage 37

Frage
Which one of the following outcomes results from the following command? # chmod g+s /home/software
Antworten
  • The SUID bit will be set for /home/software.
  • The SGID bit will be set for /home/software, preventing access by those not a member of the software group.
  • The SGID bit will be set for /home/software, to keep group membership of the directory consistent for all files created.
  • The sticky bit will be set for /home/software.
  • The sticky bit will be applied to all files in /home/software.

Frage 38

Frage
Which one of these files determines how messages are stored using syslogd?
Antworten
  • /etc/sysconfig/logger.conf
  • /etc/syslog.conf
  • /etc/syslogd.conf
  • /etc/conf.syslog
  • /etc/conf.syslogd

Frage 39

Frage
Where are mail logs usually stored in a standard syslog setup?
Antworten
  • /var/log/messages
  • /var/log/secure
  • /var/log/dmesg
  • /var/log/maillog
  • /var/maillog

Frage 40

Frage
How many hosts can exist on a subnet with mask 255.255.255.128? Select one.
Antworten
  • 512
  • 256
  • 128
  • 127
  • 126

Frage 41

Frage
For an Internet workstation with a single network interface, what routes must be added to interface eth0 after it is initialized? Select one.
Antworten
  • None
  • Interface
  • Interface and default gateway
  • Interface, local network, and default gateway

Frage 42

Frage
On a Linux server, what service is most likely “listening” on port 25? Select one.
Antworten
  • Apache
  • SSHd
  • Postfix
  • Samba
  • v

Frage 43

Frage
Which one of these protocols is a Layer 4 connection-oriented protocol? Select one.
Antworten
  • TCP
  • IP
  • UDP
  • ICMP

Frage 44

Frage
Which command will display information about Ethernet interface eth0? Select one.
Antworten
  • cat /proc/eth/0
  • ifconfig eth0
  • ipconfig eth0
  • ipconfig /dev/eth0
  • cat /etc/eth0.conf

Frage 45

Frage
What does the printcap entry sd indicate? Select one.
Antworten
  • The system default printer
  • A printer’s spool directory
  • A device file for the printer
  • A location where errors are stored
  • The printer driver

Frage 46

Frage
Which of the following is a valid entry in /etc/fstab for a remote NFS mount from server fs1? Select one.
Antworten
  • fs1:/proc /mnt/fs1 nfs defaults 9 9
  • /mnt/fs1 fs1:/proc nfs defaults 0 0
  • fs1:/home /mnt/fs1 nfs defaults 0 0
  • /mnt/fs1 fs1:/home nfs defaults 0 0
  • /home:fs1 /mnt/fs1 nfs defaults 0 0

Frage 47

Frage
Which network protocol is used by SSH and FTP? Select one.
Antworten
  • ICMP
  • UDP
  • TCP
  • DHCP
  • PPP

Frage 48

Frage
Which of the following programs will display DNS information for a host? Choose all that apply.
Antworten
  • host
  • nslookup
  • nsstat
  • dig
  • ping

Frage 49

Frage
Which of the following statements regarding the ICMP protocol is not true? Select one.
Antworten
  • ICMP is connectionless.
  • ICMP provides network flow control.
  • ICMP is also known as UDP.
  • ICMP is used by ping.

Frage 50

Frage
What server daemon resolves domain names to IP addresses for requesting hosts? [blank_start]named[blank_end]
Antworten
  • named

Frage 51

Frage
What function does a print filter serve? Select one.
Antworten
  • It collates output from multiple users.
  • It translates various data formats into a page description language.
  • It rejects print requests from unauthorized users.
  • It rejects print requests from unauthorized hosts.
  • It analyzes print data and directs print requests to the appropriate lpd.

Frage 52

Frage
Consider 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.
Antworten
  • Two DNS servers on the public network are being used for resolution.
  • One DNS server on the local network is being used for resolution.
  • The configuration contains errors that will prevent the resolver from functioning.
  • A caching-only nameserver is the first nameserver queried.
  • The resolver library will consult nameserver 192.168.250.2 first.

Frage 53

Frage
Name the file that contains simple mappings between IP addresses and system names. [blank_start]/etc/hosts[blank_end]
Antworten
  • /etc/hosts

Frage 54

Frage
What program can be used to interactively change the behavior of a print queue? Select one.
Antworten
  • lpd
  • lpr
  • lpq
  • lprm
  • lpc

Frage 55

Frage
What program will display a list of each hop across the network to a specified destination? Select one.
Antworten
  • tracert
  • rttrace
  • traceroute
  • routetrace
  • init

Frage 56

Frage
What is the system-wide bash configuration file called? Include the entire path. [blank_start]/etc/profile[blank_end]
Antworten
  • /etc/profile

Frage 57

Frage
Consider the following line from /etc/passwd: adamh:x:500:1000:Adam Haeder:/home/adamh:/bin/bash What does the number 1000 mean?
Antworten
  • User adamh has a UID of 1000.
  • The primary group that adamh belongs to is group 1000.
  • User adamh was the 1000th user created on this system
  • The password for adamh expires in 1000 days.
  • The secondary group that adamh belongs to is group 1000.

Frage 58

Frage
Consider 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.
Antworten
  • The syntax of the set command is incorrect.
  • The script executes in a new shell, and myvar wasn’t exported.
  • The #!/bin/bash syntax is incorrect.
  • The $myvar syntax is incorrect.
  • The script is sourced by the current shell, and myvar is available only to new shells.

Frage 59

Frage
How does a process indicate to the controlling shell that it has exited with an error condition? Select one.
Antworten
  • It prints an error message to stderr.
  • It prints an error message to stdout.
  • It sets an exit code with a zero value.
  • It sets an exit code with a nonzero value.
  • It causes a segmentation fault.

Frage 60

Frage
How can a nonprivileged user configure sendmail to forward mail to another account? Select one.
Antworten
  • She can add a new entry in /etc/aliases.
  • She can create a .forward file containing the new address.
  • She can create an .alias file containing the new address.
  • She can create a sendmail.cf file containing the new address.
  • She cannot forward mail without assistance from the administrator.
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

L' offre - Phrases - Chapitre 3
Gaelle Bourgeois
Epochen und Literaturströmungen für das Abitur 2016
Laura Overhoff
Vektorendefinition
Sinan 2000
Vetie - Pathologie 2016
Fioras Hu
Vetie - Pathologie Fragen aus dem A-Skript
Fioras Hu
Grundzüge Soziologischer Theorien - Rudolf Richter 2017 - Version 2
Markus Gio
Vetie Mibi 2017
Nour Elassal
Vetie Repro Allgemein
Julia Ka
Vetie: Berufrecht Altfragen 2013-2017 Teil 1
Johanna Tr
Vetie - Lebensmittelkunde 2017
Birte Schulz