Examen Simulacro II: Linux Essentials

Descripción

Test sobre Examen Simulacro II: Linux Essentials, creado por Carlos Alberto Jara Alva el 17/11/2022.
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 alrededor de 2 años
66
0

Resumen del Recurso

Pregunta 1

Pregunta
How could one search for the file foo.txt under the directory /home?
Respuesta
  • find /home -name foo.txt
  • find /home foo.txt
  • search /home -file foo.txt
  • search /home foo.txt

Pregunta 2

Pregunta
Which function does a shell program server?
Respuesta
  • It receives user commands and executes them
  • It is responsible for logging a user into the system
  • It is responsible for establishing a connection to another computer
  • It provides a graphical environment

Pregunta 3

Pregunta
The output of the program date should be saved in the variable actdat. What is the correct statement?
Respuesta
  • Actdat='date'
  • Date | acdat
  • Set actdat='date'
  • Actdat=date

Pregunta 4

Pregunta
Which of the following statements may be used to access the second command line argument to a script?
Respuesta
  • "$1"
  • "$2"
  • '$2'
  • $1

Pregunta 5

Pregunta
Which command will display running process information in realtime?
Respuesta
  • ps current
  • top
  • show current
  • Process

Pregunta 6

Pregunta
Which of the following file systems is most commonly used for Linux distributions?
Respuesta
  • NTFS
  • FAT32
  • ext4
  • HFS+

Pregunta 7

Pregunta
Which one of the following statements concerning Linux passwords is true?
Respuesta
  • Passwords are only stored in encrypted form
  • Passwords may never start with a non-letter
  • All passwords can be decrypted using the system administrator's master password
  • Users cannot change their password once it has been set

Pregunta 8

Pregunta
Why is the file data.txt empty after executing sort data.txt > data.txt?
Respuesta
  • Because the file gets truncated before the sort is executed
  • Because, if data.txt is empty now, it must have been empty before
  • Because sort cannot sort text files, only binary files
  • Because sort detects that both files are the same

Pregunta 9

Pregunta
Where is the BIOS located?
Respuesta
  • RAM
  • LCD Monitor
  • Hard drive
  • Motherboard

Pregunta 10

Pregunta
You have a program called /user/bin/foo. You wish to create a symbolic link, /home/user/bin/foo, that points to it. Which command will do this task?  
Respuesta
  • ln -s /user/bin/foo /home/user/foo
  • ln -sys /home/user/foo /user/bin/foo
  • ln /user/bin/foo /home/user/foo
  • ln /home/user/foo /user/bin/foo

Pregunta 11

Pregunta
What keyword is missing from the following segment of the shell script? for i in*;----cat $idone
Respuesta
  • Endo
  • Do
  • Then
  • Fi

Pregunta 12

Pregunta
What is the command that will show system boot time messages?
Respuesta
  • Display system boot
  • Messages
  • dmesg
  • lspci

Pregunta 13

Pregunta
Which of the following is a Linux based operating system for use on mobile devices?
Respuesta
  • CentOS
  • Debian
  • Android
  • Fedora

Pregunta 14

Pregunta
Which network interface always exists in a Linux system?
Respuesta
  • lo
  • wlan0
  • vlan0
  • eth0

Pregunta 15

Pregunta
Which command shows if /usr/bin is in the current shell search path?
Respuesta
  • cat $PATH
  • echo %PATH
  • echo $PATH
  • echo %PATH%

Pregunta 16

Pregunta
What are the three sets of permission for a file?
Respuesta
  • Administrator, standard user, others
  • User, group, others
  • Administrator, group, others
  • User, standard user, others

Pregunta 17

Pregunta
Which of the following programs is not  a graphical web browser?
Respuesta
  • Chrome
  • Konqueror
  • Links
  • Firefox

Pregunta 18

Pregunta
After installing a new package, in which directory are you most likely find its configuration file?
Respuesta
  • /etc
  • /conf
  • /usr
  • /lib

Pregunta 19

Pregunta
What are the three sets of permission for a file?
Respuesta
  • Administrator, group, others
  • User, group, others
  • User, standard user, others
  • Administrator, standard user, others

Pregunta 20

Pregunta
Which of the following is true about open source software?
Respuesta
  • Open source software is available for commercial use
  • Open source software is not for sale
  • Open source software can not be copied for free
  • The freedom to redistribute copies must include binary or executable forms of the software but not the source code.

Pregunta 21

Pregunta
What is the preferred source for the installation of new applications?
Respuesta
  • The distribution's package repository
  • A CD-ROM disk
  • A retail store
  • The vendor's website

Pregunta 22

Pregunta
Which of the following is a combined audio/video interface for transmission of digital data?
Respuesta
  • HDMI
  • DVD
  • VGA
  • ATI

Pregunta 23

Pregunta
Which of the following commands moves the directory ~/summer-vacation and it content to ~/vacation/2011?
Respuesta
  • mv ~/summer-vacation ~/vacation/2011
  • mv -R ~/summer-vacation ~/vacation/2011
  • move -R ~/summer-vacation ~/vacation/2011
  • mv /home/summer-vacation /home/vacation/2011

Pregunta 24

Pregunta
Which command line can be used to search help files that mention the word "copy"?
Respuesta
  • copy help
  • whatis copy
  • man l-k copy
  • copy -help

Pregunta 25

Pregunta
Which of the following software packages is an email server?
Respuesta
  • Postfix
  • Apache
  • MySQL
  • GIMP

Pregunta 26

Pregunta
Which of the following can be used to access the command line?
Respuesta
  • Terminal
  • Firefox
  • BIOS
  • XWindow

Pregunta 27

Pregunta
After installing a new package, in which directory are you most likely find its configuration file?
Respuesta
  • /usr
  • /conf
  • /etc
  • /lib

Pregunta 28

Pregunta
Why is the file data.txt empty after executing sort data.txt > data.txt?
Respuesta
  • Because the file gets truncated before the sort is executed
  • Because sort cannot sort text files, only binary files
  • Because sort detects that both files are the same
  • Because, if data.txt is empty now, it must have been empty before

Pregunta 29

Pregunta
Which option will cause the echo command NOT to output a trailing newline?
Respuesta
  • -p
  • -e
  • -n
  • -s

Pregunta 30

Pregunta
Which of the following statements concerning the General Public License (GPL) is true?
Respuesta
  • If you changed a program you received under the GPL, you must send your changes to the original author for approval
  • GPL software may never be sold for money
  • The GPL is identical to the BSD license
  • The GPL is designed to ensure that the source code of a software remains freely available

Pregunta 31

Pregunta
Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system. 
Respuesta
  • /dev/hdb3
  • /dev/hd1b3
  • /dev/hdc1d2p3
  • Dev/hdc1a3

Pregunta 32

Pregunta
Which command lists all files in the current directory that starts with a capital letter?
Respuesta
  • ls A-Z*
  • ls [A-Z]*
  • ls A-Z
  • ls -uppercase-files

Pregunta 33

Pregunta
How can the normal output of a command be written to a file while discarding the error output?
Respuesta
  • Command> file2>/dev/null
  • Command /dev/null
  • Command>2>file &1>/dev/null
  • Command>2>discard-error>file

Pregunta 34

Pregunta
Which of the following Ubuntu releases is considered most stable and fit to use for business purposes?
Respuesta
  • Ubuntu Vanilla
  • LTS
  • Xubuntu
  • Kubuntu

Pregunta 35

Pregunta
The following file is found in which system file? root:x:0:0::/root:/bin/bash
Respuesta
  • /usr/bin/shadow
  • /etc/passwd
  • /etc/shadow
  • /etc/password

Pregunta 36

Pregunta
Which is a suitable command to find the next appearance of the word hidden in a man page being viewed from the command line?
Respuesta
  • /hidden
  • /? hidden
  • CTRL-F hidden
  • Find hidden

Pregunta 37

Pregunta
While deleting all files beginning with the letter a there was still the file Access.txt left. Assuming that it had the correct ownership, why was it not deleted?
Respuesta
  • Linux file names are case sensitive
  • Rm had to be called with the option -R to delete all files
  • Files with extensions need a different treatment
  • The file Access.txt was hidden

Pregunta 38

Pregunta
What is the output of the following command?tail -n 20 test.txt
Respuesta
  • The last 20 lines of test.txt including the black lines
  • The last 20 lines of test.txt omitting the black lines
  • The last 20 lines of test.txt with line numbers
  • The first 20 lines of test.txt

Pregunta 39

Pregunta
Which of the following commands will display a list of all files in the current directory, including  those that may be hidden?
Respuesta
  • ls -a
  • ls --hidden
  • ls -h
  • ls --a

Pregunta 40

Pregunta
Which command will display the last line of the file foo.txt?
Respuesta
  • tail -n 1 foo.txt
  • last -n 1 foo.txt
  • head -n foo.txt
  • tail foo.txt
Mostrar resumen completo Ocultar resumen completo

Similar

Fichas de Preguntas de Pensamiento Analítico
Raúl Fox
Conceptos básicos de redes
ARISAI DARIO BARRAGAN LOPEZ
Historia de la Ética
hectorleyva
Test Ortografía
Omar Vazquez Flores
Principios de Psicología
anrago63
Test 1 Biología Celular
fanitatou
Aplicaciones para crear mapas mentales
yolanda jodra
MAPA MENTAL DE LA INVESTIGACIÓN CIENTÍFICA
aurasirin.18
Fin de Curso: Preguntas para nuestros alumnos
Diego Santos
IDENTIFICACIÓN DE OBJETIVOS ESTABLECIDOS EN EL SISTEMA DE GESTIÓN DE LA CALIDAD
Xelii PHz
Biologia molecular y genetica
Mizore Ai