Examen LPI 101

Descripción

Aqui se evaluaran los conocimientos basicos para el examen de LPI 101
Carlos Alberto Jara Alva
Test por Carlos Alberto Jara Alva, actualizado hace más de 1 año
Carlos Alberto Jara Alva
Creado por Carlos Alberto Jara Alva hace casi 7 años
451
2

Resumen del Recurso

Pregunta 1

Pregunta
What kind of hardware is represented by the device name /dev/hda?
Respuesta
  • Sound Card
  • Modem
  • IDE Hard Drive
  • SCSI Hard Drive
  • Sata Hard Drive

Pregunta 2

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

Pregunta 3

Pregunta
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)? (two answers)
Respuesta
  • one
  • 1
  • safe
  • single
  • user

Pregunta 4

Pregunta
Which process is referred to as the "mother of all processes" and always has PID 1?
Respuesta
  • mother
  • admin
  • init
  • administrator
  • bios

Pregunta 5

Pregunta
Which logfile should you examine for information about the hardware that the kernel initialized at boot time?
Respuesta
  • /var/log/syslog
  • /var/log/messages
  • /var/log/lastlog
  • /var/log/wtmp
  • /var/log/cron

Pregunta 6

Pregunta
If you want to change your system´s default boot device from the hard drive to the CD-ROM drive, where would you make that configuration change?
Respuesta
  • The file /boot/grub/grub.conf
  • the file /etc/lilo.conf
  • An argument passed to the kernel at boot time
  • The BIOS
  • The file /etc/inittab

Pregunta 7

Pregunta
What command line would reboot a running Linux system immediately, forcing an fsck of every drive on reboot?
Respuesta
  • /sbin/shutdown -r -F now
  • /sbin/shutdown -h -F now
  • /sbin/shutdown
  • /sbin/shutdown -r -f now
  • /sbin/shutdown -t -f

Pregunta 8

Pregunta
Which of the following are valid ways to interactively switch a running system to a runlevel 3?
Respuesta
  • chrunlevel 3
  • runlevel 3
  • init 3
  • telnit 3
  • init -3

Pregunta 9

Pregunta
Which command is used to display the current mounted partitions, their mount points, and the available free space on each?
Respuesta
  • du
  • df
  • fdisk
  • fsck
  • mount

Pregunta 10

Pregunta
Which partition is designed to hold data that changes often and is writable by all users?
Respuesta
  • /var
  • /home
  • /tmp
  • /opt
  • /sys

Pregunta 11

Pregunta
What does MBR stand for?
Respuesta
  • Main Booting Runlevel
  • Main Block Record
  • Master Boot Record
  • Master Block Record
  • Master Boot Resource

Pregunta 12

Pregunta
Which of the following lines in /boot/grub/grub.conf would tell GRUB to use the first partition of the first hard drive as the root partition?
Respuesta
  • root(hd0,0)
  • boot(hd0,0)
  • root(hd1,1)
  • boot(hd1,1)
  • root(hd1,0)

Pregunta 13

Pregunta
What file contains a list of directories that are searched to find shared libraries when a binary program is executed?
Respuesta
  • /etc/loader.conf
  • /etc/library/conf
  • /etc/ld.so.cache
  • /etc/ld.so.conf
  • /etc/ld.conf

Pregunta 14

Pregunta
For distribucions that use Debian package management system, what command will download and update all installed packages to the latest avarilable version?
Respuesta
  • apt-get install
  • apt-cache update
  • apt-get update
  • apt-cache install
  • dpkg -i

Pregunta 15

Pregunta
If I download a.deb package (package.deb) and wish to install it, what´s the best command to use?
Respuesta
  • dpkg -i package.deb
  • apt-get install package.deb
  • apt install package.deb
  • dpkg package.deb
  • None of the above

Pregunta 16

Pregunta
For distributions that use the Red Hat package management system, what command will list all packages currently installed?
Respuesta
  • rpm -qa
  • rpm -i
  • rpm -Uvh
  • rpm -list
  • rpm -all

Pregunta 17

Pregunta
For distributions that use the Red Hat package management system, what command will download and update all installed packages to the latest available version?
Respuesta
  • yum update
  • yum install
  • yum config
  • yum list available
  • yum download

Pregunta 18

Pregunta
What option(s) to rpm will instruct rpm to run a verification check on all packages installed on the system? (two answers)
Respuesta
  • rpm -verify -all
  • rpm -Va
  • rpm -qa
  • rpm -check
  • rpm -c

Pregunta 19

Pregunta
What command is used to display a list of directories the shell will search in to find a command that has been entered?
Respuesta
  • show $MYPATH
  • echo $PATH
  • echo $MYPATH
  • setenv
  • set $PATH

Pregunta 20

Pregunta
Which file(s) does the bash shell read al login to set environment variables?
Respuesta
  • /etc/bashrc
  • ~/.bashrc
  • ~/.bash_profile
  • All of the above
  • None of the above

Pregunta 21

Pregunta
What commands can be used to view a list of the last commands typed into the shell?
Respuesta
  • history
  • <Ctrl-R>
  • <up arrow>
  • All of the above
  • None of the above

Pregunta 22

Pregunta
Which of the following command(s) will display the first 5 lines of the file /etc/passwd? (two answers)
Respuesta
  • cat -5 /etc/passwd
  • more -5 /etc/passwd
  • head -5 /etc/passwd
  • cat /etc/passwd | head -5
  • cat /etc/passwd | more -5

Pregunta 23

Pregunta
What command(s) can be used to copy data to and from raw devices, bypassing the filesystem? (two answers)
Respuesta
  • cp
  • tar
  • dd
  • mv
  • sed

Pregunta 24

Pregunta
What option can be passed to /bin/ls to display every file in a directory that ends in .txt?
Respuesta
  • ls +.txt
  • ls *.txt
  • ls * txt
  • ls [txt]
  • ls *txt*

Pregunta 25

Pregunta
What option can be passed to /bin/ls to display every file that starts with the letters a, b, or c?
Respuesta
  • ls abc*
  • ls a*b*c*
  • ls ^abc
  • ls [abc]+
  • ls [abc]*

Pregunta 26

Pregunta
Which file extensions are common for files or directories that have been concatenated with tar and then compressed with bzip2?
Respuesta
  • .tar.bz2
  • .tbz2
  • .tbz
  • All of the above
  • None of the above

Pregunta 27

Pregunta
What device should you redirect output to if you do not want to see it or save it?
Respuesta
  • /dev/zero
  • /dev/nothing
  • /dev/empty
  • /dev/null
  • /dev/bitbucket

Pregunta 28

Pregunta
Which of the following commands would list the contents of the directory /tmp, store that list in the file /root/tmp.txt, and display the list a screen at a time?
Respuesta
  • ls -l /tmp | tee /root/tmp.txt | more
  • ls -l /tmp | xargs /root/tmp.txt | more
  • ls -l /tmp | more | tee /root/tmp.txt
  • tee /root/tmp.txt | ls -l /tmp | more
  • more /tmp | tee /root/tmp.txt

Pregunta 29

Pregunta
What character is used after a command line to indicate that the command should run in tha background and return shell control to the user?
Respuesta
  • *
  • +
  • &
  • -
  • .

Pregunta 30

Pregunta
What command in used at the beginning of a command line to detach the process from a terminal, allowing in to continue running after the user has logged out?
Respuesta
  • hangup
  • detach
  • nohup
  • background
  • bg

Pregunta 31

Pregunta
What command will display a full-screen, updated list of all running processes?
Respuesta
  • kill
  • ps
  • list
  • top
  • free

Pregunta 32

Pregunta
If a running process is not responding to a standard terminate signal from the /bin/kill command, what option can you pass to force the process to terminate immediately?
Respuesta
  • kill -1
  • kill --HUP
  • kill --stop
  • kill -9
  • kill --now

Pregunta 33

Pregunta
What command can be used to kill processes by name, rather than process ID?
Respuesta
  • killproc
  • killname
  • killall
  • kill -name
  • killpath

Pregunta 34

Pregunta
Which command line would start the program /usr/bin/top with the highest priority possible?
Respuesta
  • nice --20 /usr/bin/top
  • nice 20 /usr/bin/top
  • nice 19 /usr/bin/top
  • nice -20 /usr/bin/top
  • None of the above

Pregunta 35

Pregunta
Which command is used to modify the priority of a process already running?
Respuesta
  • nice
  • renice
  • priority
  • chage
  • ps

Pregunta 36

Pregunta
Which command(s) would display every line in /tmp/file.txt that begins with the letter h and ends with the letter t?
Respuesta
  • grep "^h.+t$" /tmp/file.txt
  • grep -E "^h.+t$" /tmp/file.txt
  • grep -E "$h.+t^" /tmp/file.txt
  • grep -E "$ht^" /tmp/file.txt
  • grep -E "^h. *t$" /tmp/file.txt

Pregunta 37

Pregunta
In the vi editor, what command sequence given in command mode will make a copy of the current line?
Respuesta
  • yyp
  • cp
  • yp
  • ccp
  • None of the above

Pregunta 38

Pregunta
In the vi editor, what command sequence given in command mode will save the current file and quit the editor?
Respuesta
  • :qw
  • :wq
  • :WQ
  • :pq
  • None of the above

Pregunta 39

Pregunta
In the vi editor, what the command sequence given in command mode will quit a file whithout saving, even if changes have been made?
Respuesta
  • :q
  • :q1
  • :q!
  • :w
  • :w!

Pregunta 40

Pregunta
What command will create an ext3 partition on the first partition of the first SCSI hard drive?
Respuesta
  • mkfs -t ext3 /dev/sda1
  • fdisk -t ext3 /dev/sda1
  • fsck -t ext3 /dev/sda1
  • mkfs -s ext3 /dev/hda1
  • mkfs -t ext3 /dev/hda1

Pregunta 41

Pregunta
What command is used to convert an existing ext2 partition (/dev/sda1) to an ext3 (journaled) partition?
Respuesta
  • tune2fs -j /dev/sda1
  • dumpe2fs -j /dev/sda1
  • fsck -j /dev/sda1
  • mkfs.ext2 -j /dev/sda1
  • None of the above

Pregunta 42

Pregunta
What command is used to display the number of free inodes on an ext2 or ext3 partition?
Respuesta
  • tune2fs
  • dumpe2fs
  • showe2fs
  • fsck
  • fdisk

Pregunta 43

Pregunta
Which file defines what partitions are mounted at boot time?
Respuesta
  • /etc/partitions
  • /etc/mount
  • /etc/mtab
  • /etc/fstab
  • /etc/filesystems

Pregunta 44

Pregunta
Which command will mount all partitions of type nfs defined in /etc/fstab?
Respuesta
  • mount -a -t nfs
  • mount -a nfs -t
  • mount -nfs
  • mountall -nfs
  • None of the above

Pregunta 45

Pregunta
If you would like to give a normal (nonroot) user the ability to mount a device, what option should you define for that device in /etc/fstab?
Respuesta
  • mountable
  • noroot
  • user
  • ok
  • mount

Pregunta 46

Pregunta
Which option to chmod would assign read/white permission to the file owner, read-only permission to the group owner, and read-only permission to the group owner, and read-only permission to everyone else?
Respuesta
  • chmod 644 file.txt
  • chmod 755 file.txt
  • chmod 466 file.txt
  • chmod 777 file.txt
  • None of the above

Pregunta 47

Pregunta
Which option to umask would set my default file permissions such that files are created with these permissions: user has read/write, group has read/write, and everyone else has read only?
Respuesta
  • umask 002
  • umask 022
  • umask 200
  • umask 220
  • umask 775

Pregunta 48

Pregunta
Which command can be used to quickly tell you if an executable command is in any directory defined in your $PATH enviromment variable?
Respuesta
  • find
  • locate
  • which
  • who
  • what

Pregunta 49

Pregunta
Which directory, according to the Filesystem Hierarchy Standard, is designed to hold essential system binaries?
Respuesta
  • /sbin
  • /bin
  • /usr/bin
  • /opt/bin
  • /usr/local/bin

Pregunta 50

Pregunta
According to the Filesystem Hierarchy Standard, what directory (or directories) must hold the system kernel? (two answer)
Respuesta
  • /boot
  • /
  • /opt
  • /sbin
  • /kernel

Pregunta 51

Pregunta
What command is used to maintain the filesystem index that tha command /usr/bin/locate searches?
Respuesta
  • update
  • updatelocate
  • locate -update
  • updatedb
  • update-db

Pregunta 52

Pregunta
Which one of the following is an accurate statement regarding this regular expression? [^1-8A-Za-z]
Respuesta
  • It matches all letters and numbers
  • It matches all letters and numbers except 9
  • It matches all letters and numbers except 9 and 0, but only at the beginning of a line
  • It matches 9, 0 , and other nonletter and nonnumber characters
  • It matches characters other nonletters or numbers

Pregunta 53

Pregunta
Which one of the following is true about the LILO loader?
Respuesta
  • It can start the Windows NT Loader
  • It is started using the lilo command
  • It is the only boot loader available for Linux
  • It can start multiple Linux kernels, but no foreign operating systems.
  • It resides entirely in the boot sector

Pregunta 54

Pregunta
If you have created your own script that you wish to run every time your system boots, but it must run after all other processes have completed, where is the best place to reference it? (Select two answers)
Respuesta
  • /etc/initttad
  • /etc/rc.d/rc.sysinit
  • A symlink beginning with S in /etc/rc.d/rc5.d/
  • /etc/rc.d/rc.local
  • A symlink beginning with K in /etc/rc.d/rc5.d/

Pregunta 55

Pregunta
If my current directory is /opt an I wish to run the command /opt/runme, what command(s) could I type (assumming /opt is not in your $PATH)? (Select two answers)
Respuesta
  • /opt/runme
  • ./runme
  • runme
  • opt/runme
  • ~/runme

Pregunta 56

Pregunta
Which of the following commands will redirect the standard output of /bin/ls to /dev/null, while allowing standard error to display on the screen? (Select two answer)
Respuesta
  • /bin/ls > /dev/null 2> /dev/screen
  • /bin/ls 1>/dev/null
  • /bin/ls > /dev/null
  • /bin/ls > /dev/null 2>&1
  • /bin/ls 2> /dev/null 1>&2

Pregunta 57

Pregunta
Which commands can be used to perform a search and replace on a file or a text stream? (two answers)
Respuesta
  • sed
  • tr
  • search
  • cat
  • more

Pregunta 58

Pregunta
Which command(s) would display every line in /tmp/file.txt that contains at least one letter of the alphabet? (Select two answers)
Respuesta
  • grep "[a-zA-Z]" /tmp/file.txt
  • grep "[:alpha:]" /tmp/file.txt
  • grep "[:letters:]" /tmp/file.txt
  • grep "(a-zA-Z)" /tmp/file.txt
  • None of the above

Pregunta 59

Pregunta
Which of the following are examples of journaling filesystems? (Select three answers)
Respuesta
  • ext2
  • ext3
  • xfs
  • reiserfs
  • vfat

Pregunta 60

Pregunta
Which Linux command can be used to repair improperly shutdown, or otherwise potentially corrupt partitions?
Respuesta
  • chkdsk
  • scandisk
  • fsck
  • fdisk
  • df -h
Mostrar resumen completo Ocultar resumen completo

Similar

Filosofia -Pau
Alicia Chinarro
Cómo Preparar los Exámenes
maya velasquez
10 Técnicas de Estudio
Diego Santos
Guía para Tener Éxito en los Exámenes
Diego Santos
Trucos para Combatir el Estrés de los Exámenes
Diego Santos
5 Pasos para Triunfar en los Exámenes
maya velasquez
Consejos para estudiar un examen a última hora
Len Sanz
Universidades de Latinoamérica
Diego Santos
Hábitos y Técnicas
henryernesto10
Bloguear para Preparar los Exámenes
maya velasquez
Consejos para Responder Preguntas de Examen
Diego Santos