Victor Santillan
Test por , creado hace más de 1 año

LPIC-1 101-500 Linux Test sobre 101-500, creado por Victor Santillan el 27/03/2020.

51
0
0
Victor Santillan
Creado por Victor Santillan hace alrededor de 4 años
Cerrar

101-500

Pregunta 1 de 32

1

When given the following command line. echo "foo bar" | tee bar | cat
Which of the following output is created?

Selecciona una de las siguientes respuestas posibles:

  • cat

  • foo bar

  • tee bar

  • bar

  • foo

Explicación

Pregunta 2 de 32

1

Which of the following files, located in the user home directory, is used to store the Bash history?

Selecciona una de las siguientes respuestas posibles:

  • .bash_history

  • .bash_histfile

  • .history

  • .bashrc_history

  • .history_bash

Explicación

Pregunta 3 de 32

1

What command will generate a list of user names from /etc/passwd along with their login shell?

Selecciona una de las siguientes respuestas posibles:

  • column -s : 1,7 /etc/passwd

  • chop -c 1,7 /etc/passwd

  • colrm 1,7 /etc/passwd

  • cut -d: -f1,7 /etc/passwd

Explicación

Pregunta 4 de 32

1

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Selecciona una de las siguientes respuestas posibles:

  • i (lowercase)

  • P (uppercase)

  • p (lowercase)

  • U (uppercase)

  • u (lowercase)

Explicación

Pregunta 5 de 32

1

What is the default action of the split command on an input file?

Selecciona una de las siguientes respuestas posibles:

  • It will break the file into new files of 1,024 byte pieces each

  • It will break the file into new files of 1,000 line pieces each

  • It will break the file into new files of 1,024 kilobyte pieces each

  • It will break the file into new files that are no morethan 5% of the size of the original file

Explicación

Pregunta 6 de 32

1

Which of the following commands lists the dependencies of a given dpkg package?

Selecciona una de las siguientes respuestas posibles:

  • apt-cache depends-onpackage

  • apt-cache dependencies package

  • apt-cache depends package

  • apt-cache requires package

Explicación

Pregunta 7 de 32

1

Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters)

Selecciona una de las siguientes respuestas posibles:

  • Mastered

  • Not Mastered

Explicación

Pregunta 8 de 32

1

Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Selecciona una de las siguientes respuestas posibles:

  • LD_LOAD_PATH

  • LD_LIB_PATH

  • LD_LIBRARY_PATH

  • LD_SHARE_PATH

  • LD_RUN_PATH

Explicación

Pregunta 9 de 32

1

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

Selecciona una o más de las siguientes respuestas posibles:

  • uptime

  • up

  • top

  • uname -u

  • time –up

Explicación

Pregunta 10 de 32

1

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Selecciona una de las siguientes respuestas posibles:

  • 9

  • 19

  • 49

  • 99

Explicación

Pregunta 11 de 32

1

Regarding the command: nice -5 /usr/bin/prog
Which of the following statements is correct?

Selecciona una de las siguientes respuestas posibles:

  • /usr/bin/prog is executed with a nice level of -5

  • /usr/bin/prog is executed with a nice level of 5

  • /usr/bin/prog is executed with a priority of -5

  • /usr/bin/prog is executed with a priority of 5

Explicación

Pregunta 12 de 32

1

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

Selecciona una de las siguientes respuestas posibles:

  • -10

  • 0

  • 10

  • 20

Explicación

Pregunta 13 de 32

1

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Selecciona una de las siguientes respuestas posibles:

  • kill -PIPE 123

  • kill -KILL 123

  • kill -STOP 123

  • kill -TERM 123

Explicación

Pregunta 14 de 32

1

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

Selecciona una o más de las siguientes respuestas posibles:

  • Entries for all possible devices get created on boot even if those devices are not connected

  • Additional rules for udev can be created by adding them to /etc/udev/rules.d/

  • When using udev, it is not possible to create block orcharacter devices in /dev/ using mknod

  • The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup

  • The content of /dev/ is stored in /etc/udev/dev and is restored during system startup

Explicación

Pregunta 15 de 32

1

What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Selecciona una o más de las siguientes respuestas posibles:

  • To create RAID 9 arrays

  • To dynamically change the size of logical volumes

  • To encrypt logical volumes

  • To create snapshots

  • To dynamically create or delete logical volumes

Explicación

Pregunta 16 de 32

1

What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

Selecciona una de las siguientes respuestas posibles:

  • /lib/init.so

  • /sbin/init

  • /etc/rc.d/rcinit

  • /proc/sys/kernel/init

  • /boot/init

Explicación

Pregunta 17 de 32

1

During a system boot cycle, what is the program that is run after the BIOS completes its tasks?

Selecciona una de las siguientes respuestas posibles:

  • The bootloader

  • The inetd program

  • The init program

  • The kernel

Explicación

Pregunta 18 de 32

1

You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?

Selecciona una de las siguientes respuestas posibles:

  • telinit 1

  • shutdown -r now

  • killall -9 inetd

  • /bin/netstop --maint

  • /etc/rc.d/init.d/network stop

Explicación

Pregunta 19 de 32

1

Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

Selecciona una o más de las siguientes respuestas posibles:

  • Boot device order

  • Linux kernel version

  • Timezone

  • Hardware configuration

  • the system's hostname

Explicación

Pregunta 20 de 32

1

The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. What is the usual way to pass this change to the kernel from your boot loader?

Selecciona una de las siguientes respuestas posibles:

  • Start in runlevel 1

  • Pass init=/bin/sh on the kernel parameter line

  • Pass /bin/sh on the kernel parameter line

  • Pass start=/bin/sh on the kernel parameter line

Explicación

Pregunta 21 de 32

1

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

Selecciona una o más de las siguientes respuestas posibles:

  • shutdown -r now

  • shutdown -r "rebooting"

  • telinit 6

  • telinit 0

  • shutdown -k now "rebooting"

Explicación

Pregunta 22 de 32

1

Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information)

Selecciona una de las siguientes respuestas posibles:

  • Mastered

  • No mastered

Explicación

Pregunta 23 de 32

1

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Selecciona una de las siguientes respuestas posibles:

  • systemd.target=rescue.target

  • systemd.runlevel=rescue.target

  • systemd.service=rescue.target

  • systemd.default=rescue.target

  • systemd.unit=rescue.target

Explicación

Pregunta 24 de 32

1

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Selecciona una de las siguientes respuestas posibles:

  • kill -HUP $(pidof grub)

  • grub-install

  • grub

  • No action is required

Explicación

Pregunta 25 de 32

1

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

Selecciona una de las siguientes respuestas posibles:

  • hidemenu

  • splash

  • timeout

  • showmenu

Explicación

Pregunta 26 de 32

1

Which of the following shell redirections will write standard output and standard error output to a file named filename?

Selecciona una de las siguientes respuestas posibles:

  • 2>&1 >filename

  • >filename 2>&1

  • 1>&2>filename

  • >>filename

  • 1&2>filename

Explicación

Pregunta 27 de 32

1

Which of the following commands is used to modify quota settings? (Choose two.)

Selecciona una o más de las siguientes respuestas posibles:

  • editquota

  • setquota

  • edquota

  • quotaedit

  • quotaset

Explicación

Pregunta 28 de 32

1

What does the command mount -a do?

Selecciona una de las siguientes respuestas posibles:

  • It mounts all available filesystems onto the current directory

  • It shows all mounted filesystems

  • It mounts all user mountable filesystems for the current user

  • It mounts all filesystems listed in /etc/fstab which have the option auto set

  • It mounts all filesystems listed in /etc/fstab which have the option no auto set

Explicación

Pregunta 29 de 32

1

Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?

Selecciona una de las siguientes respuestas posibles:

  • GRUB 2 no longer requires a configuration file

  • Partition numbers start at 0 in GRUB Legacy and1in GRUB 2

  • grub-mk config only works with GRUB Legacy if the--version 1option is used

  • The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config

Explicación

Pregunta 30 de 32

1

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Selecciona una de las siguientes respuestas posibles:

  • The command is SetUID and it will be executed with the effective rights of the owner

  • The command will be executed with the effective rights of the group instead of the owner

  • The execute flag is not set for the owner

  • Therefore the SetUID flag is ignored

  • The command will be executed with the effective rights of the owner and group

Explicación

Pregunta 31 de 32

1

What is the purpose of the Filesystem Hierarchy Standard?

Selecciona una de las siguientes respuestas posibles:

  • It is a security model used to ensure files are organized according to their permissions and accessibility

  • It provides unified tools to create, maintain and manage multiple filesystems in a common way

  • It defines a common internal structure of inodes for all compliant filesystems

  • It is a distribution neutral description of locations of files and directories

Explicación

Pregunta 32 de 32

1

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Selecciona una o más de las siguientes respuestas posibles:

  • chmod +s /tmp

  • chmod +t /tmp

  • chmod 1775 /tmp

  • chmod 4775 /tmp

  • chmod 2775 /tmp

Explicación