Carlos Alberto Jara Alva
Quiz by , created more than 1 year ago

Quiz on Examen Simulacro II: Linux Essentials, created by Carlos Alberto Jara Alva on 17/11/2022.

54
0
0
No tags specified
Carlos Alberto Jara Alva
Created by Carlos Alberto Jara Alva over 1 year ago
Close

Examen Simulacro II: Linux Essentials

Question 1 of 40

1

How could one search for the file foo.txt under the directory /home?

Select one of the following:

  • find /home -name foo.txt

  • find /home foo.txt

  • search /home -file foo.txt

  • search /home foo.txt

Explanation

Question 2 of 40

1

Which function does a shell program server?

Select one of the following:

  • 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

Explanation

Question 3 of 40

1

The output of the program date should be saved in the variable actdat. What is the correct statement?

Select one of the following:

  • Actdat='date'

  • Date | acdat

  • Set actdat='date'

  • Actdat=date

Explanation

Question 4 of 40

1

Which of the following statements may be used to access the second command line argument to a script?

Select one of the following:

  • "$1"

  • "$2"

  • '$2'

  • $1

Explanation

Question 5 of 40

1

Which command will display running process information in realtime?

Select one of the following:

  • ps current

  • top

  • show current

  • Process

Explanation

Question 6 of 40

1

Which of the following file systems is most commonly used for Linux distributions?

Select one of the following:

  • NTFS

  • FAT32

  • ext4

  • HFS+

Explanation

Question 7 of 40

1

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

Select one of the following:

  • 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

Explanation

Question 8 of 40

1

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

Select one of the following:

  • 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

Explanation

Question 9 of 40

1

Where is the BIOS located?

Select one of the following:

  • RAM

  • LCD Monitor

  • Hard drive

  • Motherboard

Explanation

Question 10 of 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?  

Select one of the following:

  • 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

Explanation

Question 11 of 40

1

What keyword is missing from the following segment of the shell script?

for i in*;----cat $idone

Select one of the following:

  • Endo

  • Do

  • Then

  • Fi

Explanation

Question 12 of 40

1

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

Select one of the following:

  • Display system boot

  • Messages

  • dmesg

  • lspci

Explanation

Question 13 of 40

1

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

Select one of the following:

  • CentOS

  • Debian

  • Android

  • Fedora

Explanation

Question 14 of 40

1

Which network interface always exists in a Linux system?

Select one of the following:

  • lo

  • wlan0

  • vlan0

  • eth0

Explanation

Question 15 of 40

1

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

Select one of the following:

  • cat $PATH

  • echo %PATH

  • echo $PATH

  • echo %PATH%

Explanation

Question 16 of 40

1

What are the three sets of permission for a file?

Select one of the following:

  • Administrator, standard user, others

  • User, group, others

  • Administrator, group, others

  • User, standard user, others

Explanation

Question 17 of 40

1

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

Select one of the following:

  • Chrome

  • Konqueror

  • Links

  • Firefox

Explanation

Question 18 of 40

1

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

Select one of the following:

  • /etc

  • /conf

  • /usr

  • /lib

Explanation

Question 19 of 40

1

What are the three sets of permission for a file?

Select one of the following:

  • Administrator, group, others

  • User, group, others

  • User, standard user, others

  • Administrator, standard user, others

Explanation

Question 20 of 40

1

Which of the following is true about open source software?

Select one of the following:

  • 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.

Explanation

Question 21 of 40

1

What is the preferred source for the installation of new applications?

Select one of the following:

  • The distribution's package repository

  • A CD-ROM disk

  • A retail store

  • The vendor's website

Explanation

Question 22 of 40

1

Which of the following is a combined audio/video interface for transmission of digital data?

Select one of the following:

  • HDMI

  • DVD

  • VGA

  • ATI

Explanation

Question 23 of 40

1

Which of the following commands moves the directory ~/summer-vacation and it content to ~/vacation/2011?

Select one of the following:

  • mv ~/summer-vacation ~/vacation/2011

  • mv -R ~/summer-vacation ~/vacation/2011

  • move -R ~/summer-vacation ~/vacation/2011

  • mv /home/summer-vacation /home/vacation/2011

Explanation

Question 24 of 40

1

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

Select one of the following:

  • copy help

  • whatis copy

  • man l-k copy

  • copy -help

Explanation

Question 25 of 40

1

Which of the following software packages is an email server?

Select one of the following:

  • Postfix

  • Apache

  • MySQL

  • GIMP

Explanation

Question 26 of 40

1

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

Select one of the following:

  • Terminal

  • Firefox

  • BIOS

  • XWindow

Explanation

Question 27 of 40

1

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

Select one of the following:

  • /usr

  • /conf

  • /etc

  • /lib

Explanation

Question 28 of 40

1

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

Select one of the following:

  • 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

Explanation

Question 29 of 40

1

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

Select one of the following:

  • -p

  • -e

  • -n

  • -s

Explanation

Question 30 of 40

1

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

Select one of the following:

  • 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

Explanation

Question 31 of 40

1

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

Select one of the following:

  • /dev/hdb3

  • /dev/hd1b3

  • /dev/hdc1d2p3

  • Dev/hdc1a3

Explanation

Question 32 of 40

1

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

Select one of the following:

  • ls A-Z*

  • ls [A-Z]*

  • ls A-Z

  • ls -uppercase-files

Explanation

Question 33 of 40

1

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

Select one of the following:

  • Command> file2>/dev/null

  • Command /dev/null

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

  • Command>2>discard-error>file

Explanation

Question 34 of 40

1

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

Select one of the following:

  • Ubuntu Vanilla

  • LTS

  • Xubuntu

  • Kubuntu

Explanation

Question 35 of 40

1

The following file is found in which system file?

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

Select one of the following:

  • /usr/bin/shadow

  • /etc/passwd

  • /etc/shadow

  • /etc/password

Explanation

Question 36 of 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?

Select one of the following:

  • /hidden

  • /? hidden

  • CTRL-F hidden

  • Find hidden

Explanation

Question 37 of 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?

Select one of the following:

  • 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

Explanation

Question 38 of 40

1

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

Select one of the following:

  • 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

Explanation

Question 39 of 40

1

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

Select one of the following:

  • ls -a

  • ls --hidden

  • ls -h

  • ls --a

Explanation

Question 40 of 40

1

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

Select one of the following:

  • tail -n 1 foo.txt

  • last -n 1 foo.txt

  • head -n foo.txt

  • tail foo.txt

Explanation