Linux Essentials Chapter 6 Exam

Description

Quiz on Linux Essentials Chapter 6 Exam, created by David Harton on 08/06/2018.
David Harton
Quiz by David Harton, updated more than 1 year ago
David Harton
Created by David Harton over 6 years ago
457
0

Resource summary

Question 1

Question
Hidden files are files that begin with what character?
Answer
  • A dash (-)
  • A plus (+)
  • A period (.)
  • An asterisk (*)

Question 2

Question
What option for the ls command will display all files, including hidden files?
Answer
  • -L
  • -H
  • -w
  • -a

Question 3

Question
The top-level directory on a Linux system is represented as:
Answer
  • /
  • C:
  • /home
  • /root

Question 4

Question
Is the following path absolute or relative? /etc/ppp
Answer
  • Absolute
  • Relative

Question 5

Question
Is the following path absolute or relative? sysadmin/Documents
Answer
  • Relative
  • Absolute

Question 6

Question
Is the following path absolute or relative? ../../home/sysadmin
Answer
  • Relative
  • Absolute

Question 7

Question
The tilde (~) is used to represent:
Answer
  • A user’s home directory
  • Any two single characters
  • The directory above the current working directory
  • Nothing; it has no special meaning

Question 8

Question
Which of the following commands can be used to access the home directory of the user “bob” while logged in as root? (choose two)
Answer
  • cd /home/bob
  • cd ~bob
  • cd &&
  • ~bob

Question 9

Question
The double dot (..) can be used with the cd command to represent:
Answer
  • The directory above the current working directory
  • Nothing; it has no special meaning.
  • Any two single characters
  • A user’s home directory.

Question 10

Question
The cd command by itself will take you to what directory?
Answer
  • The system root directory
  • None; it is not a valid command
  • The directory above the current working directory
  • Your home directory

Question 11

Question
What command will allow you to change your current working directory?
Answer
  • chdir
  • list
  • cd
  • ls

Question 12

Question
The double dot (..) can be used to represent the directory…
Answer
  • …above the current directory.
  • …below the current directory.
  • …with any two single numbers.
  • …above the current directory only when using the cd command.

Question 13

Question
The ls command without options or arguments…
Answer
  • …generates an error as this command requires arguments.
  • …lists the contents of the current directory.
  • …prompts for a directory to list.
  • …lists the contents of a user’s home directory.

Question 14

Question
The first character in a long listing (ls -l) indicates:
Answer
  • The permissions
  • If something is a file, directory, or symbolic link
  • The owner
  • The size

Question 15

Question
Which option for the ls command, when used in conjunction with the -l option, will display human-readable sizes?
Answer
  • -M
  • -S
  • -H
  • -h

Question 16

Question
Which of the following commands will prevent any aliased options to the ls command?
Answer
  • /ls
  • %ls
  • ls

Question 17

Question
The ls command color codes results by default. True or False?
Answer
  • True
  • False

Question 18

Question
The command ls -S will sort files:
Answer
  • By size, smallest to largest
  • By number of symlinks, largest to smallest
  • By modification date, newest to oldest
  • By size, largest to smallest

Question 19

Question
When using the cp command, you must provide both a source and a destination. True or False?
Answer
  • True
  • False

Question 20

Question
Which option(s) can be used to prevent cp from overwriting an existing file? (choose two)
Answer
  • -n
  • -N
  • -z
  • -i

Question 21

Question
The command rm -r will…
Answer
  • remove a directory along with any files or subdirectories.
  • prompt for each confirmation before deleting each file in a directory.
  • remove only empty directories.
  • generate an error; -r isn’t a valid option.

Question 22

Question
Which option can be used with the rm command to prompt before deleting?
Answer
  • -i
  • I
  • -P
  • A

Question 23

Question
The rm command can delete multiple files at once. True or False?
Answer
  • True
  • False

Question 24

Question
Which of the following commands can be used to rename a file?
Answer
  • name
  • mv
  • rn
  • cp

Question 25

Question
The touch command can be used to: (choose two)
Answer
  • Create new files
  • Change a file’s name
  • Update the time stamp of existing files
  • Change ownership of a file
Show full summary Hide full summary

Similar

Economic Growth
Kati Christova
CHEMISTRY C1 7
x_clairey_x
Blues, Beats & More! Quiz
Mike'd
GCSE Music (Edexcel) Quiz
corelledavis
Using YouTube in the Primary Classroom
Tiff B
Physics 1A - Energy
Zaki Rizvi
Variation and evolution Quiz
James Edwards22201
Physics P2
Emmakatewilsonx
Computer Systems
lisawinkler10
Les Aliments
dAnn dAnn
PRINCIPLES OF MARKETING
Greta Morrill