Carlos Alberto Jara Alva
Quiz von , erstellt am more than 1 year ago

Quiz am Examen Simulacro II: Linux Essentials, erstellt von Carlos Alberto Jara Alva am 17/11/2022.

61
0
0
Keine Merkmale angegeben
Carlos Alberto Jara Alva
Erstellt von Carlos Alberto Jara Alva vor mehr als ein Jahr
Schließen

Examen Simulacro II: Linux Essentials

Frage 1 von 40

1

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

Wähle eine der folgenden:

  • find /home -name foo.txt

  • find /home foo.txt

  • search /home -file foo.txt

  • search /home foo.txt

Erklärung

Frage 2 von 40

1

Which function does a shell program server?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 3 von 40

1

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

Wähle eine der folgenden:

  • Actdat='date'

  • Date | acdat

  • Set actdat='date'

  • Actdat=date

Erklärung

Frage 4 von 40

1

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

Wähle eine der folgenden:

  • "$1"

  • "$2"

  • '$2'

  • $1

Erklärung

Frage 5 von 40

1

Which command will display running process information in realtime?

Wähle eine der folgenden:

  • ps current

  • top

  • show current

  • Process

Erklärung

Frage 6 von 40

1

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

Wähle eine der folgenden:

  • NTFS

  • FAT32

  • ext4

  • HFS+

Erklärung

Frage 7 von 40

1

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

Wähle eine der folgenden:

  • 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

Erklärung

Frage 8 von 40

1

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

Wähle eine der folgenden:

  • 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

Erklärung

Frage 9 von 40

1

Where is the BIOS located?

Wähle eine der folgenden:

  • RAM

  • LCD Monitor

  • Hard drive

  • Motherboard

Erklärung

Frage 10 von 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?  

Wähle eine der folgenden:

  • 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

Erklärung

Frage 11 von 40

1

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

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

Wähle eine der folgenden:

  • Endo

  • Do

  • Then

  • Fi

Erklärung

Frage 12 von 40

1

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

Wähle eine der folgenden:

  • Display system boot

  • Messages

  • dmesg

  • lspci

Erklärung

Frage 13 von 40

1

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

Wähle eine der folgenden:

  • CentOS

  • Debian

  • Android

  • Fedora

Erklärung

Frage 14 von 40

1

Which network interface always exists in a Linux system?

Wähle eine der folgenden:

  • lo

  • wlan0

  • vlan0

  • eth0

Erklärung

Frage 15 von 40

1

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

Wähle eine der folgenden:

  • cat $PATH

  • echo %PATH

  • echo $PATH

  • echo %PATH%

Erklärung

Frage 16 von 40

1

What are the three sets of permission for a file?

Wähle eine der folgenden:

  • Administrator, standard user, others

  • User, group, others

  • Administrator, group, others

  • User, standard user, others

Erklärung

Frage 17 von 40

1

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

Wähle eine der folgenden:

  • Chrome

  • Konqueror

  • Links

  • Firefox

Erklärung

Frage 18 von 40

1

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

Wähle eine der folgenden:

  • /etc

  • /conf

  • /usr

  • /lib

Erklärung

Frage 19 von 40

1

What are the three sets of permission for a file?

Wähle eine der folgenden:

  • Administrator, group, others

  • User, group, others

  • User, standard user, others

  • Administrator, standard user, others

Erklärung

Frage 20 von 40

1

Which of the following is true about open source software?

Wähle eine der folgenden:

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

Erklärung

Frage 21 von 40

1

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

Wähle eine der folgenden:

  • The distribution's package repository

  • A CD-ROM disk

  • A retail store

  • The vendor's website

Erklärung

Frage 22 von 40

1

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

Wähle eine der folgenden:

  • HDMI

  • DVD

  • VGA

  • ATI

Erklärung

Frage 23 von 40

1

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

Wähle eine der folgenden:

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

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

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

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

Erklärung

Frage 24 von 40

1

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

Wähle eine der folgenden:

  • copy help

  • whatis copy

  • man l-k copy

  • copy -help

Erklärung

Frage 25 von 40

1

Which of the following software packages is an email server?

Wähle eine der folgenden:

  • Postfix

  • Apache

  • MySQL

  • GIMP

Erklärung

Frage 26 von 40

1

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

Wähle eine der folgenden:

  • Terminal

  • Firefox

  • BIOS

  • XWindow

Erklärung

Frage 27 von 40

1

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

Wähle eine der folgenden:

  • /usr

  • /conf

  • /etc

  • /lib

Erklärung

Frage 28 von 40

1

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

Wähle eine der folgenden:

  • 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

Erklärung

Frage 29 von 40

1

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

Wähle eine der folgenden:

  • -p

  • -e

  • -n

  • -s

Erklärung

Frage 30 von 40

1

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

Wähle eine der folgenden:

  • 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

Erklärung

Frage 31 von 40

1

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

Wähle eine der folgenden:

  • /dev/hdb3

  • /dev/hd1b3

  • /dev/hdc1d2p3

  • Dev/hdc1a3

Erklärung

Frage 32 von 40

1

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

Wähle eine der folgenden:

  • ls A-Z*

  • ls [A-Z]*

  • ls A-Z

  • ls -uppercase-files

Erklärung

Frage 33 von 40

1

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

Wähle eine der folgenden:

  • Command> file2>/dev/null

  • Command /dev/null

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

  • Command>2>discard-error>file

Erklärung

Frage 34 von 40

1

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

Wähle eine der folgenden:

  • Ubuntu Vanilla

  • LTS

  • Xubuntu

  • Kubuntu

Erklärung

Frage 35 von 40

1

The following file is found in which system file?

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

Wähle eine der folgenden:

  • /usr/bin/shadow

  • /etc/passwd

  • /etc/shadow

  • /etc/password

Erklärung

Frage 36 von 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?

Wähle eine der folgenden:

  • /hidden

  • /? hidden

  • CTRL-F hidden

  • Find hidden

Erklärung

Frage 37 von 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?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 38 von 40

1

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

Wähle eine der folgenden:

  • 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

Erklärung

Frage 39 von 40

1

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

Wähle eine der folgenden:

  • ls -a

  • ls --hidden

  • ls -h

  • ls --a

Erklärung

Frage 40 von 40

1

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

Wähle eine der folgenden:

  • tail -n 1 foo.txt

  • last -n 1 foo.txt

  • head -n foo.txt

  • tail foo.txt

Erklärung