Quiz
Linux Essentials Chapter 6 Exam
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (25)
1Hidden files are files that begin with what character?
- AA dash (-)
- BA plus (+)
- CA period (.)
- DAn asterisk (*)
2What option for the ls command will display all files, including hidden files?
- A-L
- B-H
- C-w
- D-a
3The top-level directory on a Linux system is represented as:
- A/
- BC:
- C/home
- D/root
4Is the following path absolute or relative?
/etc/ppp- AAbsolute
- BRelative
5Is the following path absolute or relative?
sysadmin/Documents- ARelative
- BAbsolute
6Is the following path absolute or relative?
../../home/sysadmin- ARelative
- BAbsolute
7The tilde (~) is used to represent:
- AA user’s home directory
- BAny two single characters
- CThe directory above the current working directory
- DNothing; it has no special meaning
8Which of the following commands can be used to access the home directory of the user “bob” while logged in as root?
(choose two)- Acd /home/bob
- Bcd ~bob
- Ccd &&
- D~bob
9The double dot (..) can be used with the cd command to represent:
- AThe directory above the current working directory
- BNothing; it has no special meaning.
- CAny two single characters
- DA user’s home directory.
10The cd command by itself will take you to what directory?
- AThe system root directory
- BNone; it is not a valid command
- CThe directory above the current working directory
- DYour home directory
11What command will allow you to change your current working directory?
- Achdir
- Blist
- Ccd
- Dls
12The double dot (..) can be used to represent the directory…
- A…above the current directory.
- B…below the current directory.
- C…with any two single numbers.
- D…above the current directory only when using the cd command.
13The ls command without options or arguments…
- A…generates an error as this command requires arguments.
- B…lists the contents of the current directory.
- C…prompts for a directory to list.
- D…lists the contents of a user’s home directory.
14The first character in a long listing (ls -l) indicates:
- AThe permissions
- BIf something is a file, directory, or symbolic link
- CThe owner
- DThe size
15Which option for the ls command, when used in conjunction with the -l option, will display human-readable sizes?
- A-M
- B-S
- C-H
- D-h
16Which of the following commands will prevent any aliased options to the ls command?
- A/ls
- B%ls
- Cls
17The ls command color codes results by default.
True or False?- ATrue
- BFalse
18The command ls -S will sort files:
- ABy size, smallest to largest
- BBy number of symlinks, largest to smallest
- CBy modification date, newest to oldest
- DBy size, largest to smallest
19When using the cp command, you must provide both a source and a destination.
True or False?- ATrue
- BFalse
20Which option(s) can be used to prevent cp from overwriting an existing file?
(choose two)- A-n
- B-N
- C-z
- D-i
21The command rm -r will…
- Aremove a directory along with any files or subdirectories.
- Bprompt for each confirmation before deleting each file in a directory.
- Cremove only empty directories.
- Dgenerate an error; -r isn’t a valid option.
22Which option can be used with the rm command to prompt before deleting?
- A-i
- BI
- C-P
- DA
23The rm command can delete multiple files at once.
True or False?- ATrue
- BFalse
24Which of the following commands can be used to rename a file?
- Aname
- Bmv
- Crn
- Dcp
25The touch command can be used to:
(choose two)- ACreate new files
- BChange a file’s name
- CUpdate the time stamp of existing files
- DChange ownership of a file
Information
- Description
- Quiz on Linux Essentials Chapter 6 Exam, created by David Harton on 08/06/2018.
- Author
- David Harton
- Language
- English
- Views
- 529
- Rating
- 5.0 out of 5 · 1 rating Rate this quiz