Carlos Alberto Jara Alva
Quiz por , criado more than 1 year ago

Quiz sobre Examen Simulacro I - Linux Essentials, criado por Carlos Alberto Jara Alva em 02-10-2022.

114
0
0
Sem etiquetas
Carlos Alberto Jara Alva
Criado por Carlos Alberto Jara Alva quase 2 anos atrás
Fechar

Examen Simulacro I - Linux Essentials

Questão 1 de 40

1

Which of the following commands can be used to determine the time of the last login of a given user?

Selecione uma das seguintes:

  • Showlog

  • Recent

  • history

  • last

Explicação

Questão 2 de 40

1

Which of the following commands is used to lookup the current IP address of a system?

Selecione uma das seguintes:

  • Ifconfig

  • Sysinfo | grep ipaddress

  • Ipconfig

  • Showip

Explicação

Questão 3 de 40

1

Where is the BIOS located?

Selecione uma das seguintes:

  • Motherboard

  • Hard drive

  • LCD Monitor

  • RAM

Explicação

Questão 4 de 40

1

Which permissions should be given to a file that needs to be opened and edited by the file's owner and opened read-only by the file's group?

Selecione uma das seguintes:

  • 0640

  • 0444

  • 0466

  • 0540

Explicação

Questão 5 de 40

1

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?  

Selecione uma das seguintes:

  • Ln -sys /home/user/foo /user/bin/foo

  • Ln -s /user/bin/foo /home/user/foo

  • Ln /user/bin/foo /home/user/foo

  • Ln /home/user/foo /user/bin/foo

Explicação

Questão 6 de 40

1

What keyword is missing from the following segment of the shell script?for i in*;----cat $idone

Selecione uma das seguintes:

  • Do

  • Endo

  • Then

  • Fi

Explicação

Questão 7 de 40

1

What is the command that will show system boot time messages?

Selecione uma das seguintes:

  • Display system boot

  • Messages

  • dmesg

  • lspci

Explicação

Questão 8 de 40

1

Which of the following is a Linux based operating system for use on mobile devices?

Selecione uma das seguintes:

  • Android

  • CentOS

  • Debian

  • Fedora

Explicação

Questão 9 de 40

1

Which network interface always exists in a Linux system?

Selecione uma das seguintes:

  • wlan0

  • lo

  • vlan0

  • eth0

Explicação

Questão 10 de 40

1

Which command shows if /usr/bin is in the current shell search path?

Selecione uma das seguintes:

  • cat $PATH

  • echo %PATH

  • echo $PATH

  • echo %PATH%

Explicação

Questão 11 de 40

1

What is the number called that is used to identify a process?

Selecione uma das seguintes:

  • Process Entry

  • PIN

  • PID

  • Proc Num

Explicação

Questão 12 de 40

1

Which one of the following statements concerning Linux passwords is true?

Selecione uma das seguintes:

  • Passwords are only stored in encrypted form

  • Passwords may never start with a non-letter

  • Passwords may be at most six characters long

  • Users cannot change their password once it has been set

Explicação

Questão 13 de 40

1

What are the three sets of permission for a file?

Selecione uma das seguintes:

  • Administrator, standard user, others

  • Administrator, group, others

  • User, group, others

  • User, standard user, others

Explicação

Questão 14 de 40

1

Which of the following will change the group that is associated with a file?

Selecione uma das seguintes:

  • chmod

  • chmod -w

  • chown

  • ls -g

Explicação

Questão 15 de 40

1

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?

Selecione uma das seguintes:

  • 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

Explicação

Questão 16 de 40

1

Which of the following programs is not  a graphical web browser?

Selecione uma das seguintes:

  • Chrome

  • Links

  • Konqueror

  • Firefox

Explicação

Questão 17 de 40

1

What is the output of the following command?tail -n 20 test.txt

Selecione uma das seguintes:

  • 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

Explicação

Questão 18 de 40

1

Which of the following commands will display a list of all files in the current directory, including  those that may be hidden?

Selecione uma das seguintes:

  • ls -a

  • ls --hidden

  • ls -h

  • ls --a

Explicação

Questão 19 de 40

1

Which command will display the last line of the file foo.txt?

Selecione uma das seguintes:

  • last -n 1 foo.txt

  • head -n foo.txt

  • tail -n 1 foo.txt

  • tail foo.txt

Explicação

Questão 20 de 40

1

Which Linux distribution is used as a basis for the creation of Ubuntu Linux?

Selecione uma das seguintes:

  • Debian Linux

  • Red Hat Linux

  • SUSE Linux

  • Gentoo Linux

Explicação

Questão 21 de 40

1

Which command is used to make a shell variable known to subsequently executed programs?

Selecione uma das seguintes:

  • export

  • Announce

  • env

  • mv

Explicação

Questão 22 de 40

1

Which command displays the list of groups to which a user belongs?

Selecione uma das seguintes:

  • Id

  • Whoami

  • Isgroup

  • Who

Explicação

Questão 23 de 40

1

Which of the following hardware devices links a number of computers together to form an Ethernet LAN?

Selecione uma das seguintes:

  • Switch

  • Access point

  • Terminal

  • Server

Explicação

Questão 24 de 40

1

Which of the following commands can be used to extract files from an archive?

Selecione uma das seguintes:

  • tar -evf

  • tar -vf

  • tar -v

  • tar -xvf

Explicação

Questão 25 de 40

1

Which of the following commands can be used to view a file and do search operations within it while viewing the contents?

Selecione uma das seguintes:

  • less

  • grep

  • report

  • find

Explicação

Questão 26 de 40

1

What is the first character for a file or directory names if they should not be displayed by commands such as ls unless specifically requested?

Selecione uma das seguintes:

  • _ (underscore)

  • - (minus)

  • \ (backslash)

  • . (dot)

Explicação

Questão 27 de 40

1

Which command line can be used to search help files that mention the word "copy"?

Selecione uma das seguintes:

  • copy help

  • man l-k copy

  • whatis copy

  • copy -help

Explicação

Questão 28 de 40

1

Which of the following software packages is an email server?

Selecione uma das seguintes:

  • Apache

  • MySQL

  • Postfix

  • GIMP

Explicação

Questão 29 de 40

1

Which of the following can be used to access the command line?

Selecione uma das seguintes:

  • Firefox

  • BIOS

  • Terminal

  • XWindow

Explicação

Questão 30 de 40

1

After installing a new package, in which directory are you most likely find its configuration file?

Selecione uma das seguintes:

  • /etc

  • /conf

  • /usr

  • /lib

Explicação

Questão 31 de 40

1

Why is the file data.txt empty after executing sort data.txt > data.txt?

Selecione uma das seguintes:

  • 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

Explicação

Questão 32 de 40

1

Which option will cause the echo command NOT to output a trailing newline?

Selecione uma das seguintes:

  • -e

  • -n

  • -p

  • -s

Explicação

Questão 33 de 40

1

Which of the following statements concerning the General Public License (GPL) is true?

Selecione uma das seguintes:

  • The GPL is designed to ensure that the source code of a software remains freely available

  • The GPL is identical to the BSD license

  • GPL software may never be sold for money

  • If you changed a program you received under the GPL, you must send your changes to the original author for approval

Explicação

Questão 34 de 40

1

Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system. 

Selecione uma das seguintes:

  • /dev/hdb3

  • /dev/hd1b3

  • /dev/hdc1d2p3

  • Dev/hdc1a3

Explicação

Questão 35 de 40

1

Which command lists all files in the current directory that starts with a capital letter?

Selecione uma das seguintes:

  • ls -uppercase-files

  • ls A-Z

  • ls A-Z*

  • ls [A-Z]*

Explicação

Questão 36 de 40

1

How can the normal output of a command be written to a file while discarding the error output?

Selecione uma das seguintes:

  • Command>2>discard-error>file

  • Command>2>file &1>/dev/null

  • Command /dev/null

  • Command> file2>/dev/null

Explicação

Questão 37 de 40

1

Which of the following Ubuntu releases is considered most stable and fit to use for business purposes?

Selecione uma das seguintes:

  • LTS

  • Ubuntu Vanilla

  • Xubuntu

  • Kubuntu

Explicação

Questão 38 de 40

1

The following file is found in which system file?

root:x:0:0::/root:/bin/bash

Selecione uma das seguintes:

  • /etc/passwd

  • /usr/bin/shadow

  • /etc/shadow

  • /etc/password

Explicação

Questão 39 de 40

1

Which is a suitable command to find the next appearance of the word hidden in a man page being viewed from the command line?

Selecione uma das seguintes:

  • /hidden

  • /? hidden

  • CTRL-F hidden

  • Find hidden

Explicação

Questão 40 de 40

1

Incoming SSH connections are accepted by the sshd daemon on which default port?

Selecione uma das seguintes:

  • 80

  • 23

  • 21

  • 22

Explicação