Quiz
Examen de certificacion LPIC - 101
Este quiz tem tempo limite, por isso abre no player de sempre.
Perguntas do 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
5Which logfile should you examine for information about the hardware that the kernel initialized at boot time?
- A/var/log/messages
- B/var/log/lastlog
- C/var/log/wtmp
- D/var/log/cron
6If 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?
- AThe BIOS
- BThe file /boot/grub/grub.conf
- CThe file /etc/inittab
- DThe file /etcgrub/grub.conf
7What command line would reboot a running Linux system immediately, forcing an fsck of every drive on reboot?
- A/sbin/shutdown –r –F now
- B/sbin/shutdown –h –F now
- C/sbin/shutdown
- D/sbin/shutdown –r –f now
8Which of the following are valid ways to interactively switch a running system to runlevel 3? (Select two)
- Ainit 3
- Btelinit 3
- Crunlevel 3
- Dinit -3
9If 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?
- A/etc/inittab
- B/etc/rc.d/rc.sysinit
- CA symlink beginning with S in /etc/rc.d/rc5.d/
- D/etc/rc.d/rc.local
10Which command is used to display the current mounted partitions, their mount points, and the available free space on each?
- Adf
- Bfdisk
- Cfsck
- Dmount
11Which partition is designed to hold data that changes often and is writable by all users?
- A/tmp
- B/opt
- C/sys
- D/var
12What does MBR stand for?
- AMaster Boot Record
- BMain Booting Runlevel
- CMain Block Record
- DMaster Boot Resource
13Which 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?
- Aroot (hd0,0)
- Bboot (hd0,0)
- Croot (hd1,1)
- Dboot (hd1,1)
14What file contains a list of directories that are searched to find shared libraries when a binary program is executed?
- A/etc/ld.so.conf
- B/etc/loader.conf
- C/etc/library/conf
- D/etc/ld.so.cache
15For distributions that use the Debian package management system, what command will download and update all installed packages to the latest available version?
- Aapt-get update
- Bapt-get install
- Capt-cache update
- Ddpkg –i
16If I download a .deb package (package.deb) and wish to install it, what’s the best command to use?
- Adpkg –i package.deb
- Bapt-get install package.deb
- Capt install package.deb
- Ddpkg package.deb
17For distributions that use the Red Hat package management system, what command will list all packages currently installed?
- Arpm –qa
- Brpm –i
- Crpm –Uvh
- Drpm –list
18For distributions that use the Red Hat package management system, what command will download and update all installed packages to the latest available version?
- Ayum update
- Byum install
- Cyum config
- Dyum list available
19What option(s) to rpm will instruct rpm to run a verification check on all packages installed on the system? (Select two)
- Arpm –verify –all
- Brpm –Va
- Crpm –qa
- Drpm –check
20What command is used to display a list of directories the shell will search in to find a command that has been entered?
- Aecho $PATH
- Becho $MYPATH
- Csetenv
- Dset $PATH
21Which file(s) does the bash shell read at login to set environment variables?
- AAll of the above
- B/etc/bashrc
- C~/.bashrc
- DNone of the above
22What commands can be used to view a list of the last commands typed into the shell?
- AAll of the above
- Bhistory
- C<Ctrl-R>
- D<up arrow>
23If my current directory is /opt and I wish to run the command /opt/runme, what
command(s) could I type (assuming /opt is not in your $PATH)? (select two)- A/opt/runme
- B/runme
- Copt/runme
- D~/runme
24Which of the following commands will redirect the standard output of /bin/ls to /dev/null, while allowing standard error to display on the screen?
- A/bin/ls 1> /dev/null
- B/bin/ls > /dev/null
- C/bin/ls > /dev/null 2>&1
- D/bin/ls 2> /dev/null 1>&2
25Which of the following command(s) will display the first 5 lines of the file /etc/passwd? (Select two)
- Ahead -5 /etc/passwd
- Bcat /etc/passwd | head -5
- Ccat -5 /etc/passwd
- Dcat /etc/passwd | more -5
26Which commands can be used to perform a search and replace on a file or a text stream? (Select two)
- Ased
- Btr
- Cdd
- Dmv
27What command(s) can be used to copy data to and from raw devices, bypassing the filesystem? (Select two)
- Atar
- Bdd
- Cmv
- Dsed
28What option can be passed to /bin/ls to display every file in a directory that ends in .txt?
- Als * txt
- Bls *txt*
- Cls [txt]
- Dls +.txt
29What option can be passed to /bin/ls to display every file that starts with the letters a, b, or c?
- Als [abc]*
- Bls abc*
- Cls a*b*c*
- Dls ^abc
30Which file extensions are common for files or directories that have been concatenated with tar and then compressed with bzip2?
- AAll of the above
- B.tar.bz2
- C.tbz2
- D.tbz
31What device should you redirect output to if you do not want to see it or save it?
- A/dev/null
- B/dev/nothing
- C/dev/empty
- D/dev/zero
32Which 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?
- Als –l /tmp | tee /root/tmp.txt | more
- Bls –l /tmp | xargs /root/tmp.txt | more
- Cls –l /tmp | more | tee /root/tmp.txt
- Dtee /root/tmp.txt | ls –l /tmp | more
33What character is used after a command line to indicate that the command should run in the background and return shell control to the user?
- A&
- B*
- C+
- D-
34What command is used at the beginning of a command line to detach the process from a terminal, allowing it to continue running after the user has logged out?
- Anohup
- Bhangup
- Cdetach
- Dbackground
35What command will display a full-screen, updated list of all running processes?
- Atop
- Bkill
- Cps
- Dfree
36If 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?
- Akill -9
- Bkill -1
- Ckill --HUP
- Dkill --stop
37What command can be used to kill processes by name, rather than process ID?
- Akillall
- Bkillproc
- Ckillname
- Dkill –name
38Which command line would start the program /usr/bin/top with the highest priority possible?
- Anice --20 /usr/bin/top
- Bnice 20 /usr/bin/top
- Cnice 19 /usr/bin/top
- Dnice -20 /usr/bin/top
39Which command is used to modify the priority of a process already running?
- Arenice
- Bpriority
- Cchage
- Dps
40Which command(s) would display every line in /tmp/file.txt that begins with the letter h and ends with the letter t?
- Agrep –E "^h.*t$" /tmp/file.txt
- Bgrep "^h.+t$" /tmp/file.txt
- Cgrep –E "^h.+t$" /tmp/file.txt
- Dgrep –E "$h.+t^" /tmp/file.txt
41Which command(s) would display every line in /tmp/file.txt that contains at least one letter of the alphabet? (Select Two)
- Agrep " [a-zA-Z] " /tmp/file.txt
- Bgrep " [:alpha:] " /tmp/file.txt
- Cgrep " [:letters:] " /tmp/file.txt
- Dgrep " (a-zA-Z) " /tmp/file.txt
42In the vi editor, what command sequence given in command mode will save the current file and quit the editor?
- A:wq
- B:WQ
- C:pq
- DNone of the above
43In the vi editor, what command sequence given in command mode will make a copy of the current line?
- Ayyp
- Bcp
- Cyp
- Dccp
44In the vi editor, what command sequence given in command mode will quit a file without saving, even if changes have been made?
- A:q!
- B:q
- C:q1
- D:w!
45Which of the following are examples of journaling filesystems? (Select two)
- Aext3
- Breiserfs
- Cxfs
- Dext2
46What command will create an ext3 partition on the first partition of the first SCSI hard drive?
- Amkfs –t ext3 /dev/sda1
- Bfdisk –t ext3 /dev/sda1
- Cfsck –t ext3 /dev/sda1
- Dmkfs –s ext3 /dev/hda1
47What command is used to convert an existing ext2 partition (/dev/sda1) to an ext3 (journaled) partition?
- Atune2fs –j /dev/sda1
- Bdumpe2fs –j /dev/sda1
- Cfsck –j /dev/sda1
- Dmkfs.ext2 –j /dev/sda1
48What command is used to display the number of free inodes on an ext2 or ext3 partition?
- Adumpe2fs
- Bshowe2fs
- Cfsck
- Dfdisk
49Which file defines what partitions are mounted at boot time?
- A/etc/fstab
- B/etc/partitions
- C/etc/mount
- D/etc/mtab
50Which command will mount all partitions of type nfs defined in /etc/fstab?
- Amount –a –t nfs
- Bmount –a nfs –t
- Cmount –nfs
- Dmountall –nfs
51If 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?
- Auser
- Bmountable
- Cnoroot
- Dok
52Which option to chmod would assign read/write permission to the file owner, read-only permission to the group owner, and read-only permission to everyone else?
- Achmod 644 file.txt
- Bchmod 755 file.txt
- Cchmod 466 file.txt
- Dchmod 777 file.txt
53Which 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?
- Aumask 022
- Bumask 200
- Cumask 220
- Dumask 775
54Which command can be used to quickly tell you if an executable command is in any directory defined in your $PATH environment variable?
- Awhich
- Bfind
- Clocate
- Dwho
55Which directory, according to the Filesystem Hierarchy Standard, is designed to hold essential system binaries?
- A/sbin
- B/bin
- C/usr/bin
- D/opt/bin
56According to the Filesystem Hierarchy Standard, what directory (or directories) must hold the system kernel? (Select Two)
- A/boot
- B/
- C/opt
- D/sbin
57What command is used to maintain the filesystem index that the command /usr/bin/locate searches?
- Aupdatedb
- Bupdate
- Cupdatelocate
- Dlocate –update
58Use find to search for bash:
- A$ find / -name bash
- B$ find / -linux bash
- C$ find / -time bash
- D$ find / -chown bash
59If you created a new partition in the previous exercises, check it with fsck and observe the output:
- A$ fsck -f /dev/partition
- B$ fsck -f /bin/partition
- C$ fsck -f /sbin/partition
- D$ fsck -f /dev/null
60Check on the status of filesystems using df:
- A$ df -h
- B$ df -w
- C$ df -z
- D$ df -gg
Informações
- Descrição
- Quiz sobre Examen de certificacion LPIC - 101, criado por Carlos Alberto Jara Alva em 28-06-2022.
- Idioma
- Español
- Visualizações
- 162
- Avaliação
- Ainda sem avaliações Avalie este quiz