Examen Simulacro II: Linux Essentials

Descrição

Quiz sobre Examen Simulacro II: Linux Essentials, criado por Carlos Alberto Jara Alva em 17-11-2022.
Carlos Alberto Jara Alva
Quiz por Carlos Alberto Jara Alva, atualizado more than 1 year ago
Carlos Alberto Jara Alva
Criado por Carlos Alberto Jara Alva aproximadamente 2 anos atrás
66
0

Resumo de Recurso

Questão 1

Questão
How could one search for the file foo.txt under the directory /home?
Responda
  • find /home -name foo.txt
  • find /home foo.txt
  • search /home -file foo.txt
  • search /home foo.txt

Questão 2

Questão
Which function does a shell program server?
Responda
  • 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

Questão 3

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

Questão 4

Questão
Which of the following statements may be used to access the second command line argument to a script?
Responda
  • "$1"
  • "$2"
  • '$2'
  • $1

Questão 5

Questão
Which command will display running process information in realtime?
Responda
  • ps current
  • top
  • show current
  • Process

Questão 6

Questão
Which of the following file systems is most commonly used for Linux distributions?
Responda
  • NTFS
  • FAT32
  • ext4
  • HFS+

Questão 7

Questão
Which one of the following statements concerning Linux passwords is true?
Responda
  • 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

Questão 8

Questão
Why is the file data.txt empty after executing sort data.txt > data.txt?
Responda
  • 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

Questão 9

Questão
Where is the BIOS located?
Responda
  • RAM
  • LCD Monitor
  • Hard drive
  • Motherboard

Questão 10

Questão
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?  
Responda
  • 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

Questão 11

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

Questão 12

Questão
What is the command that will show system boot time messages?
Responda
  • Display system boot
  • Messages
  • dmesg
  • lspci

Questão 13

Questão
Which of the following is a Linux based operating system for use on mobile devices?
Responda
  • CentOS
  • Debian
  • Android
  • Fedora

Questão 14

Questão
Which network interface always exists in a Linux system?
Responda
  • lo
  • wlan0
  • vlan0
  • eth0

Questão 15

Questão
Which command shows if /usr/bin is in the current shell search path?
Responda
  • cat $PATH
  • echo %PATH
  • echo $PATH
  • echo %PATH%

Questão 16

Questão
What are the three sets of permission for a file?
Responda
  • Administrator, standard user, others
  • User, group, others
  • Administrator, group, others
  • User, standard user, others

Questão 17

Questão
Which of the following programs is not  a graphical web browser?
Responda
  • Chrome
  • Konqueror
  • Links
  • Firefox

Questão 18

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

Questão 19

Questão
What are the three sets of permission for a file?
Responda
  • Administrator, group, others
  • User, group, others
  • User, standard user, others
  • Administrator, standard user, others

Questão 20

Questão
Which of the following is true about open source software?
Responda
  • 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.

Questão 21

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

Questão 22

Questão
Which of the following is a combined audio/video interface for transmission of digital data?
Responda
  • HDMI
  • DVD
  • VGA
  • ATI

Questão 23

Questão
Which of the following commands moves the directory ~/summer-vacation and it content to ~/vacation/2011?
Responda
  • mv ~/summer-vacation ~/vacation/2011
  • mv -R ~/summer-vacation ~/vacation/2011
  • move -R ~/summer-vacation ~/vacation/2011
  • mv /home/summer-vacation /home/vacation/2011

Questão 24

Questão
Which command line can be used to search help files that mention the word "copy"?
Responda
  • copy help
  • whatis copy
  • man l-k copy
  • copy -help

Questão 25

Questão
Which of the following software packages is an email server?
Responda
  • Postfix
  • Apache
  • MySQL
  • GIMP

Questão 26

Questão
Which of the following can be used to access the command line?
Responda
  • Terminal
  • Firefox
  • BIOS
  • XWindow

Questão 27

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

Questão 28

Questão
Why is the file data.txt empty after executing sort data.txt > data.txt?
Responda
  • 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

Questão 29

Questão
Which option will cause the echo command NOT to output a trailing newline?
Responda
  • -p
  • -e
  • -n
  • -s

Questão 30

Questão
Which of the following statements concerning the General Public License (GPL) is true?
Responda
  • 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

Questão 31

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

Questão 32

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

Questão 33

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

Questão 34

Questão
Which of the following Ubuntu releases is considered most stable and fit to use for business purposes?
Responda
  • Ubuntu Vanilla
  • LTS
  • Xubuntu
  • Kubuntu

Questão 35

Questão
The following file is found in which system file? root:x:0:0::/root:/bin/bash
Responda
  • /usr/bin/shadow
  • /etc/passwd
  • /etc/shadow
  • /etc/password

Questão 36

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

Questão 37

Questão
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?
Responda
  • 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

Questão 38

Questão
What is the output of the following command?tail -n 20 test.txt
Responda
  • 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

Questão 39

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

Questão 40

Questão
Which command will display the last line of the file foo.txt?
Responda
  • tail -n 1 foo.txt
  • last -n 1 foo.txt
  • head -n foo.txt
  • tail foo.txt

Semelhante

Figuras de linguagem
Roberta Souza
Inglês resumo
Felipe Penha
Leis de Newton
Guilherme Hayashida
Música
Philosophus Rex
Plano de estudos ENEM - Parte 2 *Exatas/Biológicas
GoConqr suporte .
Revisão de Direito Penal
GoConqr suporte .
Anatomia Artérias
Filipe Brito
Quiz - Simple Past
HoL
Questões Estatuto dos Militares lei n°. 6.880
Alan Amanthea
Membrana plasmática
Maria Eduarda Saladine
Year 4 - Semana 1
Juliana Campos