Linux Essentials 2.0 & 2.21 | Navigating the Filesystem Module 7 | Chapter 07 Exam Answers Full 100%
-
Hidden files are files that begin with what character?
- A plus (+)
- An asterisk (*)
- A period (.)
- A dash (-)
-
What option for the
ls
command will display all files, including hidden files?-a
-H
-w
-L
-
The top-level directory on a Linux system is represented as:
/
/root
/home
C:
-
Is the following path absolute or relative?
/etc/ppp
- Absolute
- Relative
-
Is the following path absolute or relative?
sysadmin/Documents
- Relative
- Absolute
-
Is the following path absolute or relative?
../../home/sysadmin
- Relative
- Absolute
-
The tilde (
~
) is used to represent:- The directory above the current working directory
- Any two single characters
- A user’s home directory
- Nothing; it has no special meaning
-
Which of the following commands can be used to access the home directory of the user “
bob
” while logged in as root? (choose two)cd &&
cd ~bob
cd /home/bob
~bob
-
The double dot (
..
) can be used with thecd
command to represent:- The directory above the current working directory
- A user’s home directory.
- Nothing; it has no special meaning.
- Any two single characters
-
The
cd
command by itself will take you to what directory?- The directory above the current working directory
- The system root directory
- Your home directory
- None; it is not a valid command
-
What command will allow you to change your current working directory?
ls
list
cd
chdir
-
The double dot (
..
) can be used to represent the directory…- …above the current directory.
- …with any two single numbers.
- …below the current directory.
- …above the current directory only when using the cd command.
-
The
ls
command without options or arguments…- …generates an error as this command requires arguments.
- …prompts for a directory to list.
- …lists the contents of a user’s home directory.
- …lists the contents of the current directory.
-
The first character in a long listing (
ls -l
) indicates:- If something is a file, directory, or symbolic link
- The owner
- The size
- The permissions
-
Which option for the
ls
command, when used in conjunction with the-l
option, will display human-readable file sizes?-M
-h
-H
-S
-
Which of the following commands will prevent any aliased options to the
ls
command?/ls
%ls
`ls
\ls
-
The
ls
command color codes results by default.True or False?
- True
- False
-
The command
ls -S
will sort files:- By size, largest to smallest
- By size, smallest to largest
- By number of symlinks, largest to smallest
- By modification date, newest to oldest
Subscribe
Login
0 Comments