Deck 2: Linux Essentials Certificate Exam, version 1.6

Full screen (f)
exit full mode
Question
Which of the following is a protocol used for automatic IP address configuration?

A) NFS
B) LDAP
C) SMTP
D) DNS
E) DHCP
Use Space or
up arrow
down arrow
to flip the card.
Question
A directory contains the following three files: texts 1.txt texts 2.txt texts 3.csv Which command copies the two files ending in .txt to the /tmp/ directory?

A) cp ??.txt /tmp/
B) cp *.txt /tmp/
C) cp. \.txt /tmp/
D) cp ?.txt /tmp/
E) cp $?.txt /tmp/
Question
Which of the following statements regarding Linux hardware drivers is correct?

A) Drivers are regular Linux programs which have to be run by the user who wants to use a device.
B) Drivers are not used by Linux because the BIOS handles all access to hardware on behalf of Linux.
C) Drivers are stored on their devices and are copied by the Linux kernel when a new device is attached
D) Drivers are downloaded from the vendor's driver repository when a new device is attached.
E) Drivers are either compiled into the Linux kernel or are loaded as kernel modules.
Question
Which of the following commands are used to get information on the proper use of ls?

A) option ls
B) usage ls
C) manual ls
D) man ls
E) info ls
Question
What can be found in the /proc/ directory?

A) One directory per installed program.
B) One device file per hardware device.
C) One file per existing user account.
D) One directory per running process.
E) One log file per running service.
Question
What information is stored in /etc/passwd ?

A) The user's storage space limit
B) The numerical user ID
C) The username
D) The encrypted password
E) The user\s default shell
Question
Which of the following commands sorts the output of the command export-logs ?

A) export-logs < sort
B) export-logs > sort
C) export-logs & sort
D) export-logs | sort
E) export-logs <> sort
Question
Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project, the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?

A) Ubuntu Linux LTS
B) Raspbian
C) Debian GNU/Linux
D) CentOS
E) openSUSE
Question
Which of the following directories contains information, documentation and example configuration files for installed software packages?

A) /usr/share/doc/
B) /etc/defaults / /etc/defaults /
C) /var/info/
D) /doc/
E) /usr/examples/
Question
Which of the following keys can be pressed to exit less ?

A) l
B) x
C) e
D) q
E) !
Question
What is true about the dmesg command?

A) It traces the execution of a command and shows each step the program carries out.
B) It sends messages to the command lines of all current user sessions.
C) It displays the content of the Linux kernel's ring buffer.
D) It immediately outputs all new messages written to the system journal.
E) It might not display older information because it was overwritten by newer information.
Question
What information can be displayed by top ?

A) Existing files, ordered by their size.
B) Running processes, ordered by CPU or RAM consumption.
C) User accounts, ordered by the number of logins.
D) User groups, ordered by the number of members.
E) User accounts, ordered by the number of files.
Question
Which of the following characters in a shell prompt indicates the shell is running with root privileges?

A) !
B) #
C) *
D) &
E) $
Question
Which command adds the new user tux and creates the user's home directory with default configuration files?

A) defaultuser tux
B) useradd -m tux
C) usercreate tux
D) useradd -o default tux
E) passwd -a tux
Question
Which of the following commands can be used to resolve a DNS name to an IP address?

A) dnsname
B) dns
C) query
D) host
E) iplookup
Question
A new server needs to be installed to host services for a period of several years. Throughout this time, the server should receive important security updates from its Linux distribution. Which of the following Linux distributions meet these requirements?

A) Ubuntu Linux LTS
B) Fedora Linux
C) Debian GNU/Linux Unstable
D) Ubuntu Linux non-LTS
E) Red Hat Enterprise Linux
Question
Why are web browser cookies considered dangerous?

A) Cookies support identification and tracking of users.
B) Cookies are always public and accessible to anyone on the internet.
C) Cookies consume significant amounts of storage and can exhaust disk space.
D) Cookies store critical data which is lost when a cookie is deleted.
E) Cookies can contain and execute viruses and malware.
Question
Which of the following are typical services offered by public cloud providers?

A) Platform as a Service(PaaS)
B) Infrastructure as a Service(IaaS)
C) Internet as a Service(IaaS)
D) Graphics as a Service (GaaS)
E) Software as a Service (SaaS)
Question
Running the command rm Downloads leads to the following error: rm: cannot remove 'Downloads/': Is a directory Which of the following commands can be used instead to remove Downloads , assuming is empty?

A) undir Downloads
B) rmdir Downloads
C) dir -r Downloads
D) rem Downloads
E) rm -r Downloads
Question
Which of the following tar options handle compression?

A) -bz
B) -z
C) -g
D) -j
E) -z2
Question
What is the preferred source for the installation of new applications in a Linux based operating system?

A) The vendor's version management system
B) A CD-ROM disk
C) The distribution's package repository
D) The vendor's website
E) A retail store
Question
Which one of the following statements concerning Linux passwords is true?

A) All passwords can be decrypted using the system administrator's master password.
B) Passwords may never start with a non-letter.
C) Users cannot change their password once it has been set.
D) Passwords are only stored in hashed form.
E) Passwords may be at most six characters long.
Question
Which of the following Linux Distributions is derived from Red Hat Enterprise Linux?

A) Raspbian
B) openSUSE
C) Debian
D) Ubuntu
E) CentOS
Question
Which files are the source of the information in the following output? uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt)

A) /etc/id
B) /etc/passwd
C) /etc/group
D) /home/index
E) /var/db/ users
Question
Which of the following commands shows the absolute path to the current working directory?

A) who
B) cd ..
C) pwd
D) ls -l
E) cd ~/home
Question
Which of the following programs are web servers?

A) Apache HTTPD
B) Postfix
C) Curl
D) Dovecot
E) NGINX
Question
The ownership of the file doku.odt should be changed. The new owner is named tux . Which command accomplishes this change?

A) chmod u=tux doku.odt
B) newuser doku.odt tux
C) chown tux doku.odt
D) transfer tux: doku.odt
E) passwd doku.odt:tux
Question
What is the return value of a shell script after successful execution?

A) 1
B) 0
C) -1
D) -255
E) 255
Question
What happens to a file residing outside the home directory when the file owner's account is deleted?

A) During a file system check, the file is moved to /lost +found . During a file system check, the file is moved to /lost +found .
B) The file is removed from the file system.
C) The UID of the former owner is shown when listing the file's details.
D) The user root is set as the new owner of the file.
E) Ownership and permissions of the file remain unchanged.
Question
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?

A) In the A record for 165.100.51.198.ipv4.arpa. In the A record for 165.100.51.198.ipv4.arpa.
B) In the PTR record for 165.100.51.198.in-addr.arpa . In the PTR record for 165.100.51.198.in-addr.arpa .
C) In the RNAME record for 198-51-100-165.rev.arpa. In the RNAME record for 198-51-100-165.rev.arpa.
D) In the ARPA record for 165.100.51.198.rev. In the ARPA record for 165.100.51.198.rev.
E) In the REV record for arpa.in-addr.198.51.100.165. In the REV record for arpa.in-addr.198.51.100.165.
Question
Most commands on Linux can display information on their usage. How can this information typically be displayed?

A) By running the command with the option /? or /?? . By running the command with the option /? or /?? .
B) By running the command with the option ?! or ?=! . ?! ?=!
C) By running the command with the option /doc or /documentation . /doc /documentation
D) By running the command with the option -h or --help . -h --help
E) By running the command with the option -m or --manpage . -m --manpage
Question
What are the differences between hard disk drives and solid state disks?

A) Hard disks have a motor and moving parts, solid state disks do not.
B) Hard disks can fail due to physical damage, while solid state disks cannot fail.
C) Solid state disks can store many times as much data as hard disk drives.
D) / dev/sda is a hard disk device while /dev/ssda is a solid state disk. / dev/sda is a hard disk device while /dev/ssda is a solid state disk.
E) Solid state disks provide faster access to stored data than hard disks.
Question
What is the purpose of the PATH environment variable?

A) It allows the execution of commands without the need to know the location of the executable.
B) It increases security by preventing commands from running in certain locations.
C) It specifies the location of a user's home directory.
D) It indicates the location of the default shell to be used when a user logs in.
E) It contains the absolute path to the current directory.
Question
Which of the following statements are true regarding a typical shell script?

A) It has the executable permission bit set.
B) It starts with the two character sequence #! . It starts with the two character sequence #! .
C) It is located in /usr/local/scripts/ . It is located in /usr/local/scripts/
D) It is located in /etc/bash/scripts/ . /etc/bash/scripts/
E) It is compiled into a binary file compatible with the current machine architecture.
Question
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/ ?

A) tar --new work.tar ./work/
B) tar -cf work.tar ./work/
C) tar -create work.tgz -content ./work/
D) tar work.tar < ./work/
E) tar work > work.tar
Question
What information is stored in /etc/passwd ?

A) The user's storage space limit
B) The numerical user ID
C) The username
D) The encrypted password
E) The user\s default shell
Question
Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?

A) /opt
B) /lib
C) /etc
D) /var
E) /usr
Question
What is true about the su command?

A) It is the default shell of the root account.
B) It can only be used by the user root.
C) It runs a shell or command as another user.
D) It changes the name of the main administrator account.
E) It locks the root account in specific time frames.
Question
What is the UID of the user root?

A) 1
B) -1
C) 255
D) 65536
E) 0
Question
Which command displays file names only and no additional information?

A) ls -a
B) ls -lh
C) ls -l
D) ls -alh
E) ls -nl
Question
Which of the following programs is a graphical editor for vector graphics?

A) Python
B) NGINX
C) Samba
D) Inkscape
E) MySQL
Question
Which of the following permissions are set on the /tmp/ directory?

A) rwxrwxrwt
B) ------rwX
C) rwSrw-rw - rwSrw-rw -
D) rwxrwS---
E) r-xr-X--t
Question
Which of the following commands adds the directory /new/dir/ to the PATH environment variable?

A) $PATH=/new/dir: $PATH
B) PATH=/new/dir: PATH
C) export PATH=/new/dir: PATH
D) export $PATH=/new/dir: $PATH
E) export PATH=/new/dir: $PATH
Question
What is a Linux distribution?

A) The Linux file system as seen from the root account after mounting all file systems.
B) A bundling of the Linux kernel, system utilities and other software.
C) The set of rules which governs the distribution of Linux kernel source code.
D) An operating system based on Linux but incompatible to the regular Linux kernel.
E) A set of changes to Linux which enable Linux to run on another processor architecture.
Question
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt ?

A) drw-r-xr--
B) d-wxr-x--
C) -wxr-x--x
D) -rwxrw---x
E) - rw-r-xr-- - rw-r-xr--
Question
What is defined by a Free Software license?

A) Details of the technical documentation each contributor has to provide.
B) The programming languages which may be used to extend the licensed program.
C) A complete list of libraries required to compile the licensed software.
D) Limits on the purposes for which the licensed software may be used.
E) Conditions for modifying and distributing the licensed software.
Question
A user is currently in the directory /home/ user/Downloads/ and runs the command ls ../Documents/ Assuming it exists, which directory's content is displayed?

A) /home/ user/Documents/
B) /home/ user/Documents/Downloads/
C) /home/ user/Downloads/Documents/
D) /Documents/
E) /home/Documents
Question
Running the command rm Downloads leads to the following error: rm: cannot remove 'Downloads/': Is a directory Which of the following commands can be used instead to remove Downloads , assuming is empty?

A) undir Downloads
B) rmdir Downloads
C) dir -r Downloads
D) rem Downloads
E) rm -r Downloads
Question
What is true about a recursive directory listing?

A) It includes the content of sub-directories.
B) It includes the permissions of the directory listed.
C) It includes details of file system internals, such as inodes.
D) It includes ownership information for the files.
E) It includes a preview of content for each file in the directory.
Question
Which of the following commands are used to get information on the proper use of ls?

A) option ls
B) usage ls
C) manual ls
D) man ls
E) info ls
Question
A directory contains the following files: <strong>A directory contains the following files:   What would be the output of the following shell script? for file in *.txt  </strong> A) *.txt B) a b C) c.cav D) a.txt E) a. txt b. txt <div style=padding-top: 35px> What would be the output of the following shell script? for file in *.txt <strong>A directory contains the following files:   What would be the output of the following shell script? for file in *.txt  </strong> A) *.txt B) a b C) c.cav D) a.txt E) a. txt b. txt <div style=padding-top: 35px>

A) *.txt
B) a b
C) c.cav
D) a.txt
E) a. txt b. txt
Question
Which of the following types of bus can connect hard disk drives with the motherboard?

A) The RAM bus
B) The NUMA bus
C) The CPU bus
D) The SATA bus
E) The Auto bus
Question
What is true about the dmesg command?

A) It traces the execution of a command and shows each step the program carries out.
B) It sends messages to the command lines of all current user sessions.
C) It displays the content of the Linux kernel's ring buffer.
D) It immediately outputs all new messages written to the system journal.
E) It might not display older information because it was overwritten by newer information.
Question
Which of the following are typical services offered by public cloud providers?

A) Platform as a Service(PaaS)
B) Infrastructure as a Service(IaaS)
C) Internet as a Service(IaaS)
D) Graphics as a Service (GaaS)
E) Software as a Service (SaaS)
Question
The current directory contains the following file: -rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh Given that the file is a valid shell script, how can this script be executed?

A) run test.sh
B) ${test.sh}
C) cmd ./test.sh
D) ./test.sh
E) bash test.sh
Question
Which of the following outputs could stem from the command last?

A) 1 ls 2 cat text.txt 3 logout
B) Password for user last changed at Sat Mar 31 16:38:57 EST 2018
C) Last login: Fri Mar 23 10:56:39 2018 from server.example.com
D) EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)
E) root    tty2    Wed May 17 21:11 - 21:11    (00:00)
Question
What are the differences between hard disk drives and solid state disks?

A) Hard disks have a motor and moving parts, solid state disks do not.
B) Hard disks can fail due to physical damage, while solid state disks cannot fail.
C) Solid state disks can store many times as much data as hard disk drives.
D) / dev/sda is a hard disk device while /dev/ssda is a solid state disk. / dev/sda is a hard disk device while /dev/ssda is a solid state disk.
E) Solid state disks provide faster access to stored data than hard disks.
Question
Which of the following commands will search for the file foo.txt under the directory /home ?

A) search /home -file foo.txt
B) search /home foo. txt
C) find /home - file foo.txt
D) find /home -name foo.txt
E) find /home foo.txt
Question
The current directory contains the following file: -rw-r-r- 1 root exec 24551 Apr 2 12:36 test.sh The file contains a valid shell script, but executing this file using ./test.sh leads to this error: bash: ./test.sh: Permission denied What should be done in order to successfully execute the script?

A) The file's extension should be changed from . sh to .bin. The file's extension should be changed from . sh to .bin.
B) The execute bit should be set in the file's permissions.
C) The user executing the script should be added to the exec group. The user executing the script should be added to the exec group.
D) The SetUID bit should be set in the file's permissions
E) The script should be run using #!./test. sh instead of ./test.sh. The script should be run using #!./test. sh instead of ./test.sh.
Question
Which package management tool is used in Red Hat-based Linux Systems?

A) portage
B) rpm
C) apt-get
D) dpkg
E) packagectl
Question
Which of the following commands output the content of the file Texts 2.txt ?

A) cat 'Texts 2.txt'
B) cat -- Texts 2.txt
C) cat |Texts 2.txt|
D) cat 'Texts\ 2.txt'
E) cat Texts\ 2.txt
Question
Which of the following outputs comes from the command free ?

A) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)   <div style=padding-top: 35px>
B) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)   <div style=padding-top: 35px>
C) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)   <div style=padding-top: 35px>
D) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)   <div style=padding-top: 35px>
E) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)   <div style=padding-top: 35px>
Question
What are the differences between a private web browser window and a regular web browser window?

A) Private web browser windows do not allow printing or storing websites.
B) Private web browser windows do not store cookies persistently.
C) Private web browser windows do not support logins into websites.
D) Private web browser windows do not keep records in the browser history.
E) Private web browser windows do not send regular stored cookies.
Question
Which of the following DNS record types hold an IP address?

A) NS
B) AAAA
C) MX
D) A
E) CNAME
Question
How is a new Linux computing instance provisioned in an laaS cloud?

A) The standard Linux installer has to be run through a remote console.
B) After buying a Linux distribution, its vendor delivers it to a cloud instance.
C) The installation has to be prepared in a local virtual machine which is then copied to the cloud.
D) The cloud hosting organization provides a set of pre-prepared images of popular Linux distributions.
E) A provider-specific configuration file describing the desired installation is uploaded to the cloud provider.
Question
Which of the following commands puts the lines of the file data.csv into alphabetical order?

A) a..z data.csv
B) sort data.csv
C) abc data.csv
D) wc -s data.csv
E) grep --sort data.csv
Question
Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt ?

A) zip *.txt > poems.zip
B) zcat *.txt poems.zip
C) zip poems.zip *.txt
D) zip cfz poems.zip *.txt
E) cat *.txt | zip poems.zip
Question
What is true about links in a Linux file system?

A) A symbolic link can only point to a file and not to a directory.
B) A hard link can only point to a directory and never to a file.
C) When the target of the symbolic link is moved, the link is automatically updated.
D) A symbolic link can point to a file on another file system.
E) Only the root user can create hard links.
Question
Which of the following tasks can the command passwd accomplish?

A) Change a user's username.
B) Change a user's password.
C) Create a new user account.
D) Create a new user group.
E) Lock a user account.
Question
What is true about the owner of a file?

A) Each file is owned by exactly one user and one group.
B) The owner of a file always has full permissions when accessing the file.
C) The user owning a file must be a member of the file's group.
D) When a user is deleted, all files owned by the user disappear.
E) The owner of a file cannot be changed once it is assigned to an owner.
Question
Where is the operating system of a Raspberry Pi stored?

A) On the master device attached to the Raspberry Pi's IDE bus.
B) On a read only partition on the Raspberry Pi's firmware, next to the BIOS.
C) On a removable SD card which is put into the Raspberry Pi.
D) On a Linux extension module connected to the Raspberry Pi's GPIO pins.
E) On rewritable flash storage which is built into the Raspberry Pi.
Question
Which command copies the contents of the directory /etc/ , including all sub-directories, to /root/ ?

A) copy /etc /root
B) cp -r /etc/* /root
C) cp -v /etc/* /root
D) rcp /etc/* /root
E) cp -R /etc/*.* /root
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/72
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Linux Essentials Certificate Exam, version 1.6
1
Which of the following is a protocol used for automatic IP address configuration?

A) NFS
B) LDAP
C) SMTP
D) DNS
E) DHCP
DHCP
2
A directory contains the following three files: texts 1.txt texts 2.txt texts 3.csv Which command copies the two files ending in .txt to the /tmp/ directory?

A) cp ??.txt /tmp/
B) cp *.txt /tmp/
C) cp. \.txt /tmp/
D) cp ?.txt /tmp/
E) cp $?.txt /tmp/
cp *.txt /tmp/
3
Which of the following statements regarding Linux hardware drivers is correct?

A) Drivers are regular Linux programs which have to be run by the user who wants to use a device.
B) Drivers are not used by Linux because the BIOS handles all access to hardware on behalf of Linux.
C) Drivers are stored on their devices and are copied by the Linux kernel when a new device is attached
D) Drivers are downloaded from the vendor's driver repository when a new device is attached.
E) Drivers are either compiled into the Linux kernel or are loaded as kernel modules.
Drivers are either compiled into the Linux kernel or are loaded as kernel modules.
4
Which of the following commands are used to get information on the proper use of ls?

A) option ls
B) usage ls
C) manual ls
D) man ls
E) info ls
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
5
What can be found in the /proc/ directory?

A) One directory per installed program.
B) One device file per hardware device.
C) One file per existing user account.
D) One directory per running process.
E) One log file per running service.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
6
What information is stored in /etc/passwd ?

A) The user's storage space limit
B) The numerical user ID
C) The username
D) The encrypted password
E) The user\s default shell
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following commands sorts the output of the command export-logs ?

A) export-logs < sort
B) export-logs > sort
C) export-logs & sort
D) export-logs | sort
E) export-logs <> sort
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
8
Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project, the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?

A) Ubuntu Linux LTS
B) Raspbian
C) Debian GNU/Linux
D) CentOS
E) openSUSE
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following directories contains information, documentation and example configuration files for installed software packages?

A) /usr/share/doc/
B) /etc/defaults / /etc/defaults /
C) /var/info/
D) /doc/
E) /usr/examples/
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following keys can be pressed to exit less ?

A) l
B) x
C) e
D) q
E) !
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
11
What is true about the dmesg command?

A) It traces the execution of a command and shows each step the program carries out.
B) It sends messages to the command lines of all current user sessions.
C) It displays the content of the Linux kernel's ring buffer.
D) It immediately outputs all new messages written to the system journal.
E) It might not display older information because it was overwritten by newer information.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
12
What information can be displayed by top ?

A) Existing files, ordered by their size.
B) Running processes, ordered by CPU or RAM consumption.
C) User accounts, ordered by the number of logins.
D) User groups, ordered by the number of members.
E) User accounts, ordered by the number of files.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following characters in a shell prompt indicates the shell is running with root privileges?

A) !
B) #
C) *
D) &
E) $
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
14
Which command adds the new user tux and creates the user's home directory with default configuration files?

A) defaultuser tux
B) useradd -m tux
C) usercreate tux
D) useradd -o default tux
E) passwd -a tux
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following commands can be used to resolve a DNS name to an IP address?

A) dnsname
B) dns
C) query
D) host
E) iplookup
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
16
A new server needs to be installed to host services for a period of several years. Throughout this time, the server should receive important security updates from its Linux distribution. Which of the following Linux distributions meet these requirements?

A) Ubuntu Linux LTS
B) Fedora Linux
C) Debian GNU/Linux Unstable
D) Ubuntu Linux non-LTS
E) Red Hat Enterprise Linux
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
17
Why are web browser cookies considered dangerous?

A) Cookies support identification and tracking of users.
B) Cookies are always public and accessible to anyone on the internet.
C) Cookies consume significant amounts of storage and can exhaust disk space.
D) Cookies store critical data which is lost when a cookie is deleted.
E) Cookies can contain and execute viruses and malware.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following are typical services offered by public cloud providers?

A) Platform as a Service(PaaS)
B) Infrastructure as a Service(IaaS)
C) Internet as a Service(IaaS)
D) Graphics as a Service (GaaS)
E) Software as a Service (SaaS)
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
19
Running the command rm Downloads leads to the following error: rm: cannot remove 'Downloads/': Is a directory Which of the following commands can be used instead to remove Downloads , assuming is empty?

A) undir Downloads
B) rmdir Downloads
C) dir -r Downloads
D) rem Downloads
E) rm -r Downloads
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following tar options handle compression?

A) -bz
B) -z
C) -g
D) -j
E) -z2
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
21
What is the preferred source for the installation of new applications in a Linux based operating system?

A) The vendor's version management system
B) A CD-ROM disk
C) The distribution's package repository
D) The vendor's website
E) A retail store
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
22
Which one of the following statements concerning Linux passwords is true?

A) All passwords can be decrypted using the system administrator's master password.
B) Passwords may never start with a non-letter.
C) Users cannot change their password once it has been set.
D) Passwords are only stored in hashed form.
E) Passwords may be at most six characters long.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
23
Which of the following Linux Distributions is derived from Red Hat Enterprise Linux?

A) Raspbian
B) openSUSE
C) Debian
D) Ubuntu
E) CentOS
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
24
Which files are the source of the information in the following output? uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt)

A) /etc/id
B) /etc/passwd
C) /etc/group
D) /home/index
E) /var/db/ users
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following commands shows the absolute path to the current working directory?

A) who
B) cd ..
C) pwd
D) ls -l
E) cd ~/home
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following programs are web servers?

A) Apache HTTPD
B) Postfix
C) Curl
D) Dovecot
E) NGINX
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
27
The ownership of the file doku.odt should be changed. The new owner is named tux . Which command accomplishes this change?

A) chmod u=tux doku.odt
B) newuser doku.odt tux
C) chown tux doku.odt
D) transfer tux: doku.odt
E) passwd doku.odt:tux
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
28
What is the return value of a shell script after successful execution?

A) 1
B) 0
C) -1
D) -255
E) 255
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
29
What happens to a file residing outside the home directory when the file owner's account is deleted?

A) During a file system check, the file is moved to /lost +found . During a file system check, the file is moved to /lost +found .
B) The file is removed from the file system.
C) The UID of the former owner is shown when listing the file's details.
D) The user root is set as the new owner of the file.
E) Ownership and permissions of the file remain unchanged.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
30
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?

A) In the A record for 165.100.51.198.ipv4.arpa. In the A record for 165.100.51.198.ipv4.arpa.
B) In the PTR record for 165.100.51.198.in-addr.arpa . In the PTR record for 165.100.51.198.in-addr.arpa .
C) In the RNAME record for 198-51-100-165.rev.arpa. In the RNAME record for 198-51-100-165.rev.arpa.
D) In the ARPA record for 165.100.51.198.rev. In the ARPA record for 165.100.51.198.rev.
E) In the REV record for arpa.in-addr.198.51.100.165. In the REV record for arpa.in-addr.198.51.100.165.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
31
Most commands on Linux can display information on their usage. How can this information typically be displayed?

A) By running the command with the option /? or /?? . By running the command with the option /? or /?? .
B) By running the command with the option ?! or ?=! . ?! ?=!
C) By running the command with the option /doc or /documentation . /doc /documentation
D) By running the command with the option -h or --help . -h --help
E) By running the command with the option -m or --manpage . -m --manpage
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
32
What are the differences between hard disk drives and solid state disks?

A) Hard disks have a motor and moving parts, solid state disks do not.
B) Hard disks can fail due to physical damage, while solid state disks cannot fail.
C) Solid state disks can store many times as much data as hard disk drives.
D) / dev/sda is a hard disk device while /dev/ssda is a solid state disk. / dev/sda is a hard disk device while /dev/ssda is a solid state disk.
E) Solid state disks provide faster access to stored data than hard disks.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
33
What is the purpose of the PATH environment variable?

A) It allows the execution of commands without the need to know the location of the executable.
B) It increases security by preventing commands from running in certain locations.
C) It specifies the location of a user's home directory.
D) It indicates the location of the default shell to be used when a user logs in.
E) It contains the absolute path to the current directory.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
34
Which of the following statements are true regarding a typical shell script?

A) It has the executable permission bit set.
B) It starts with the two character sequence #! . It starts with the two character sequence #! .
C) It is located in /usr/local/scripts/ . It is located in /usr/local/scripts/
D) It is located in /etc/bash/scripts/ . /etc/bash/scripts/
E) It is compiled into a binary file compatible with the current machine architecture.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
35
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/ ?

A) tar --new work.tar ./work/
B) tar -cf work.tar ./work/
C) tar -create work.tgz -content ./work/
D) tar work.tar < ./work/
E) tar work > work.tar
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
36
What information is stored in /etc/passwd ?

A) The user's storage space limit
B) The numerical user ID
C) The username
D) The encrypted password
E) The user\s default shell
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?

A) /opt
B) /lib
C) /etc
D) /var
E) /usr
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
38
What is true about the su command?

A) It is the default shell of the root account.
B) It can only be used by the user root.
C) It runs a shell or command as another user.
D) It changes the name of the main administrator account.
E) It locks the root account in specific time frames.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
39
What is the UID of the user root?

A) 1
B) -1
C) 255
D) 65536
E) 0
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
40
Which command displays file names only and no additional information?

A) ls -a
B) ls -lh
C) ls -l
D) ls -alh
E) ls -nl
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
41
Which of the following programs is a graphical editor for vector graphics?

A) Python
B) NGINX
C) Samba
D) Inkscape
E) MySQL
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following permissions are set on the /tmp/ directory?

A) rwxrwxrwt
B) ------rwX
C) rwSrw-rw - rwSrw-rw -
D) rwxrwS---
E) r-xr-X--t
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
43
Which of the following commands adds the directory /new/dir/ to the PATH environment variable?

A) $PATH=/new/dir: $PATH
B) PATH=/new/dir: PATH
C) export PATH=/new/dir: PATH
D) export $PATH=/new/dir: $PATH
E) export PATH=/new/dir: $PATH
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
44
What is a Linux distribution?

A) The Linux file system as seen from the root account after mounting all file systems.
B) A bundling of the Linux kernel, system utilities and other software.
C) The set of rules which governs the distribution of Linux kernel source code.
D) An operating system based on Linux but incompatible to the regular Linux kernel.
E) A set of changes to Linux which enable Linux to run on another processor architecture.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
45
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt ?

A) drw-r-xr--
B) d-wxr-x--
C) -wxr-x--x
D) -rwxrw---x
E) - rw-r-xr-- - rw-r-xr--
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
46
What is defined by a Free Software license?

A) Details of the technical documentation each contributor has to provide.
B) The programming languages which may be used to extend the licensed program.
C) A complete list of libraries required to compile the licensed software.
D) Limits on the purposes for which the licensed software may be used.
E) Conditions for modifying and distributing the licensed software.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
47
A user is currently in the directory /home/ user/Downloads/ and runs the command ls ../Documents/ Assuming it exists, which directory's content is displayed?

A) /home/ user/Documents/
B) /home/ user/Documents/Downloads/
C) /home/ user/Downloads/Documents/
D) /Documents/
E) /home/Documents
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
48
Running the command rm Downloads leads to the following error: rm: cannot remove 'Downloads/': Is a directory Which of the following commands can be used instead to remove Downloads , assuming is empty?

A) undir Downloads
B) rmdir Downloads
C) dir -r Downloads
D) rem Downloads
E) rm -r Downloads
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
49
What is true about a recursive directory listing?

A) It includes the content of sub-directories.
B) It includes the permissions of the directory listed.
C) It includes details of file system internals, such as inodes.
D) It includes ownership information for the files.
E) It includes a preview of content for each file in the directory.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
50
Which of the following commands are used to get information on the proper use of ls?

A) option ls
B) usage ls
C) manual ls
D) man ls
E) info ls
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
51
A directory contains the following files: <strong>A directory contains the following files:   What would be the output of the following shell script? for file in *.txt  </strong> A) *.txt B) a b C) c.cav D) a.txt E) a. txt b. txt What would be the output of the following shell script? for file in *.txt <strong>A directory contains the following files:   What would be the output of the following shell script? for file in *.txt  </strong> A) *.txt B) a b C) c.cav D) a.txt E) a. txt b. txt

A) *.txt
B) a b
C) c.cav
D) a.txt
E) a. txt b. txt
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following types of bus can connect hard disk drives with the motherboard?

A) The RAM bus
B) The NUMA bus
C) The CPU bus
D) The SATA bus
E) The Auto bus
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
53
What is true about the dmesg command?

A) It traces the execution of a command and shows each step the program carries out.
B) It sends messages to the command lines of all current user sessions.
C) It displays the content of the Linux kernel's ring buffer.
D) It immediately outputs all new messages written to the system journal.
E) It might not display older information because it was overwritten by newer information.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
54
Which of the following are typical services offered by public cloud providers?

A) Platform as a Service(PaaS)
B) Infrastructure as a Service(IaaS)
C) Internet as a Service(IaaS)
D) Graphics as a Service (GaaS)
E) Software as a Service (SaaS)
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
55
The current directory contains the following file: -rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh Given that the file is a valid shell script, how can this script be executed?

A) run test.sh
B) ${test.sh}
C) cmd ./test.sh
D) ./test.sh
E) bash test.sh
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following outputs could stem from the command last?

A) 1 ls 2 cat text.txt 3 logout
B) Password for user last changed at Sat Mar 31 16:38:57 EST 2018
C) Last login: Fri Mar 23 10:56:39 2018 from server.example.com
D) EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)
E) root    tty2    Wed May 17 21:11 - 21:11    (00:00)
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
57
What are the differences between hard disk drives and solid state disks?

A) Hard disks have a motor and moving parts, solid state disks do not.
B) Hard disks can fail due to physical damage, while solid state disks cannot fail.
C) Solid state disks can store many times as much data as hard disk drives.
D) / dev/sda is a hard disk device while /dev/ssda is a solid state disk. / dev/sda is a hard disk device while /dev/ssda is a solid state disk.
E) Solid state disks provide faster access to stored data than hard disks.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following commands will search for the file foo.txt under the directory /home ?

A) search /home -file foo.txt
B) search /home foo. txt
C) find /home - file foo.txt
D) find /home -name foo.txt
E) find /home foo.txt
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
59
The current directory contains the following file: -rw-r-r- 1 root exec 24551 Apr 2 12:36 test.sh The file contains a valid shell script, but executing this file using ./test.sh leads to this error: bash: ./test.sh: Permission denied What should be done in order to successfully execute the script?

A) The file's extension should be changed from . sh to .bin. The file's extension should be changed from . sh to .bin.
B) The execute bit should be set in the file's permissions.
C) The user executing the script should be added to the exec group. The user executing the script should be added to the exec group.
D) The SetUID bit should be set in the file's permissions
E) The script should be run using #!./test. sh instead of ./test.sh. The script should be run using #!./test. sh instead of ./test.sh.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
60
Which package management tool is used in Red Hat-based Linux Systems?

A) portage
B) rpm
C) apt-get
D) dpkg
E) packagectl
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following commands output the content of the file Texts 2.txt ?

A) cat 'Texts 2.txt'
B) cat -- Texts 2.txt
C) cat |Texts 2.txt|
D) cat 'Texts\ 2.txt'
E) cat Texts\ 2.txt
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
62
Which of the following outputs comes from the command free ?

A) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)
B) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)
C) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)
D) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)
E) <strong>Which of the following outputs comes from the command free ?</strong> A)   B)   C)   D)   E)
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
63
What are the differences between a private web browser window and a regular web browser window?

A) Private web browser windows do not allow printing or storing websites.
B) Private web browser windows do not store cookies persistently.
C) Private web browser windows do not support logins into websites.
D) Private web browser windows do not keep records in the browser history.
E) Private web browser windows do not send regular stored cookies.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following DNS record types hold an IP address?

A) NS
B) AAAA
C) MX
D) A
E) CNAME
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
65
How is a new Linux computing instance provisioned in an laaS cloud?

A) The standard Linux installer has to be run through a remote console.
B) After buying a Linux distribution, its vendor delivers it to a cloud instance.
C) The installation has to be prepared in a local virtual machine which is then copied to the cloud.
D) The cloud hosting organization provides a set of pre-prepared images of popular Linux distributions.
E) A provider-specific configuration file describing the desired installation is uploaded to the cloud provider.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
66
Which of the following commands puts the lines of the file data.csv into alphabetical order?

A) a..z data.csv
B) sort data.csv
C) abc data.csv
D) wc -s data.csv
E) grep --sort data.csv
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt ?

A) zip *.txt > poems.zip
B) zcat *.txt poems.zip
C) zip poems.zip *.txt
D) zip cfz poems.zip *.txt
E) cat *.txt | zip poems.zip
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
68
What is true about links in a Linux file system?

A) A symbolic link can only point to a file and not to a directory.
B) A hard link can only point to a directory and never to a file.
C) When the target of the symbolic link is moved, the link is automatically updated.
D) A symbolic link can point to a file on another file system.
E) Only the root user can create hard links.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following tasks can the command passwd accomplish?

A) Change a user's username.
B) Change a user's password.
C) Create a new user account.
D) Create a new user group.
E) Lock a user account.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
70
What is true about the owner of a file?

A) Each file is owned by exactly one user and one group.
B) The owner of a file always has full permissions when accessing the file.
C) The user owning a file must be a member of the file's group.
D) When a user is deleted, all files owned by the user disappear.
E) The owner of a file cannot be changed once it is assigned to an owner.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
71
Where is the operating system of a Raspberry Pi stored?

A) On the master device attached to the Raspberry Pi's IDE bus.
B) On a read only partition on the Raspberry Pi's firmware, next to the BIOS.
C) On a removable SD card which is put into the Raspberry Pi.
D) On a Linux extension module connected to the Raspberry Pi's GPIO pins.
E) On rewritable flash storage which is built into the Raspberry Pi.
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
72
Which command copies the contents of the directory /etc/ , including all sub-directories, to /root/ ?

A) copy /etc /root
B) cp -r /etc/* /root
C) cp -v /etc/* /root
D) rcp /etc/* /root
E) cp -R /etc/*.* /root
Unlock Deck
Unlock for access to all 72 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 72 flashcards in this deck.