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?
Acp ??.txt /tmp/
Bcp *.txt /tmp/
Ccp. .txt /tmp/
Dcp ?.txt /tmp/
Ecp $?.txt /tmp/
FILL BLANK -
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)
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
FILL BLANK -
When typing a long command line at the shell, what single character can be used to split a command across multiple lines?
Question 6
The Power of the Command Line
0
Question 7
The Power of the Command Line
Question 8
Finding Your Way on a Linux System
Question 9
The Power of the Command Line
Question 10
Security and File Permissions
Question 11
The Linux Community and a Career in Open Source
Question 12
Security and File Permissions
Question 13
The Power of the Command Line
Question 14
Security and File Permissions
Question 15
The Power of the Command Line
Question 16
The Power of the Command Line
Question 17
Security and File Permissions
Question 18
The Power of the Command Line
Question 19
Security and File Permissions
Question 20
Finding Your Way on a Linux System
Question 21
The Power of the Command Line
Question 22
The Linux Operating System
Question 23
The Power of the Command Line
Question 24
Security and File Permissions
Question 25
Finding Your Way on a Linux System
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ad
Want a break from the ads?
Become a Supporter and enjoy a completely ad-free experience, plus unlock Learn Mode, Exam Mode, AstroTutor AI, and more.
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Which of the following commands will search for the file foo.txt under the directory /home?
Asearch /home -file foo.txt
Bsearch /home foo. txt
Cfind /home - file foo.txt
Dfind /home -name foo.txt
Efind /home foo.txt
Which of the following commands can be used to resolve a DNS name to an IP address?
Adnsname
Bdns
Cquery
Dhost
Eiplookup
Which of the following commands adds the directory /new/dir/ to the PATH environment variable?
A$PATH=/new/dir: $PATH
BPATH=/new/dir: PATH
Cexport PATH=/new/dir: PATH
Dexport $PATH=/new/dir: $PATH
Eexport PATH=/new/dir: $PATH
Which of the following tasks can the command passwd accomplish? (Choose two.)
AChange a user's username.
BChange a user's password.
CCreate a new user account.
DCreate a new user group.
ELock a user account.
What is true about the su command?
AIt is the default shell of the root account.
BIt can only be used by the user root.
CIt runs a shell or command as another user.
DIt changes the name of the main administrator account.
EIt locks the root account in specific time frames.
Which of the following DNS record types hold an IP address? (Choose two.)
ANS
BAAAA
CMX
DA
ECNAME
Which files are the source of the information in the following output? (Choose two.) 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
Most commands on Linux can display information on their usage. How can this information typically be displayed?
ABy running the command with the option /? or /??.
BBy running the command with the option ?! or ?=!.
CBy running the command with the option /doc or /documentation.
DBy running the command with the option -h or --help.
EBy running the command with the option -m or --manpage.
What information is stored in /etc/passwd? (Choose three.)
AThe user's storage space limit
BThe numerical user ID
CThe username
DThe encrypted password
EThe user's default shell
Which of the following commands output the content of the file Texts 2.txt? (Choose two.)
Acat 'Texts 2.txt'
Bcat -- Texts 2.txt
Ccat |Texts 2.txt|
Dcat 'Texts\ 2.txt'
Ecat Texts\ 2.txt
Which of the following statements are true regarding a typical shell script? (Choose two.)
AIt has the executable permission bit set.
BIt starts with the two character sequence #!.
CIt is located in /usr/local/scripts/.
DIt is located in /etc/bash/scripts/.
EIt is compiled into a binary file compatible with the current machine architecture.
Which command adds the new user tux and creates the user's home directory with default configuration files?
Adefaultuser tux
Buseradd -m tux
Cusercreate tux
Duseradd -o default tux
Epasswd -a tux
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?
Atar --new work.tar ./work/
Btar -cf work.tar ./work/
Ctar -create work.tgz -content ./work/
Dtar work.tar < ./work/
Etar work > work.tar
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 Downloads is empty? (Choose two.)
Aundir Downloads
Brmdir Downloads
Cdir -r Downloads
Drem Downloads
Erm -r Downloads
Which of the following devices represents a hard disk partition?
A/dev/ttyS0
B/dev/sata0
C/dev/part0
D/dev/sda2
E/dev/sda/p2
FILL BLANK -
What parameter of ls prints a recursive listing of a directory's content? (Specify ONLY the option name without any values or parameters.)
How is a new Linux computing instance provisioned in an laaS cloud?
AThe standard Linux installer has to be run through a remote console.
BAfter buying a Linux distribution, its vendor delivers it to a cloud instance.
CThe installation has to be prepared in a local virtual machine which is then copied to the cloud.
DThe cloud hosting organization provides a set of pre-prepared images of popular Linux distributions.
EA provider-specific configuration file describing the desired installation is uploaded to the cloud provider.
Which command displays file names only and no additional information?
Als -a
Bls -lh
Cls -l
Dls -alh
Els -nl
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
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?
AIn the A record for 165.100.51.198.ipv4.arpa.
BIn the PTR record for 165.100.51.198.in-addr.arpa.
CIn the RNAME record for 198-51-100-165.rev.arpa.
DIn the ARPA record for 165.100.51.198.rev.
EIn the REV record for arpa.in-addr.198.51.100.165.