Examen Simulacro I - Linux Essentials

Description

Quiz on Examen Simulacro I - Linux Essentials, created by Carlos Alberto Jara Alva on 02/10/2022.
Carlos Alberto Jara Alva
Quiz by Carlos Alberto Jara Alva, updated more than 1 year ago
Carlos Alberto Jara Alva
Created by Carlos Alberto Jara Alva almost 2 years ago
113
0

Resource summary

Question 1

Question
Which of the following commands can be used to determine the time of the last login of a given user?
Answer
  • Showlog
  • Recent
  • history
  • last

Question 2

Question
Which of the following commands is used to lookup the current IP address of a system?
Answer
  • Ifconfig
  • Sysinfo | grep ipaddress
  • Ipconfig
  • Showip

Question 3

Question
Where is the BIOS located?
Answer
  • Motherboard
  • Hard drive
  • LCD Monitor
  • RAM

Question 4

Question
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?
Answer
  • 0640
  • 0444
  • 0466
  • 0540

Question 5

Question
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?  
Answer
  • 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

Question 6

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

Question 7

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

Question 8

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

Question 9

Question
Which network interface always exists in a Linux system?
Answer
  • wlan0
  • lo
  • vlan0
  • eth0

Question 10

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

Question 11

Question
What is the number called that is used to identify a process?
Answer
  • Process Entry
  • PIN
  • PID
  • Proc Num

Question 12

Question
Which one of the following statements concerning Linux passwords is true?
Answer
  • 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

Question 13

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

Question 14

Question
Which of the following will change the group that is associated with a file?
Answer
  • chmod
  • chmod -w
  • chown
  • ls -g

Question 15

Question
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?
Answer
  • 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

Question 16

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

Question 17

Question
What is the output of the following command?tail -n 20 test.txt
Answer
  • 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

Question 18

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

Question 19

Question
Which command will display the last line of the file foo.txt?
Answer
  • last -n 1 foo.txt
  • head -n foo.txt
  • tail -n 1 foo.txt
  • tail foo.txt

Question 20

Question
Which Linux distribution is used as a basis for the creation of Ubuntu Linux?
Answer
  • Debian Linux
  • Red Hat Linux
  • SUSE Linux
  • Gentoo Linux

Question 21

Question
Which command is used to make a shell variable known to subsequently executed programs?
Answer
  • export
  • Announce
  • env
  • mv

Question 22

Question
Which command displays the list of groups to which a user belongs?
Answer
  • Id
  • Whoami
  • Isgroup
  • Who

Question 23

Question
Which of the following hardware devices links a number of computers together to form an Ethernet LAN?
Answer
  • Switch
  • Access point
  • Terminal
  • Server

Question 24

Question
Which of the following commands can be used to extract files from an archive?
Answer
  • tar -evf
  • tar -vf
  • tar -v
  • tar -xvf

Question 25

Question
Which of the following commands can be used to view a file and do search operations within it while viewing the contents?
Answer
  • less
  • grep
  • report
  • find

Question 26

Question
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?
Answer
  • _ (underscore)
  • - (minus)
  • \ (backslash)
  • . (dot)

Question 27

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

Question 28

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

Question 29

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

Question 30

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

Question 31

Question
Why is the file data.txt empty after executing sort data.txt > data.txt?
Answer
  • 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

Question 32

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

Question 33

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

Question 34

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

Question 35

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

Question 36

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

Question 37

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

Question 38

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

Question 39

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

Question 40

Question
Incoming SSH connections are accepted by the sshd daemon on which default port?
Answer
  • 80
  • 23
  • 21
  • 22
Show full summary Hide full summary

Similar

Physics Revision
Tom Mitchell
Cells, Tissues and Organs
yusanr98
OCR Physics P2 revision cards
Alex Howard
Business Studies GCSE
phil.ianson666
Mapa Conceptual de Liderazgo
gabbi.mendoza
Jane Eyre
sennahlee
Meiosis vs. Mitosis
nvart00
Checking out me History by John Agard
Eleanor Simmonds
Unit 5: Nuclear and Thermal Physics
Michael Priest
AS Sociology - Education Theories
HannahLB
GCSE REVISION TIMETABLE
neharaniga