David Harton
Quiz by , created more than 1 year ago

Quiz on Linux Essentials Chapter 6 Exam, created by David Harton on 08/06/2018.

457
0
0
No tags specified
David Harton
Created by David Harton over 6 years ago
Close

Linux Essentials Chapter 6 Exam

Question 1 of 25

1

Hidden files are files that begin with what character?

Select one or more of the following:

  • A dash (-)

  • A plus (+)

  • A period (.)

  • An asterisk (*)

Explanation

Question 2 of 25

1

What option for the ls command will display all files, including hidden files?

Select one or more of the following:

  • -L

  • -H

  • -w

  • -a

Explanation

Question 3 of 25

1

The top-level directory on a Linux system is represented as:

Select one or more of the following:

  • /

  • C:

  • /home

  • /root

Explanation

Question 4 of 25

1

Is the following path absolute or relative?
/etc/ppp

Select one or more of the following:

  • Absolute

  • Relative

Explanation

Question 5 of 25

1

Is the following path absolute or relative?
sysadmin/Documents

Select one or more of the following:

  • Relative

  • Absolute

Explanation

Question 6 of 25

1

Is the following path absolute or relative?
../../home/sysadmin

Select one or more of the following:

  • Relative

  • Absolute

Explanation

Question 7 of 25

1

The tilde (~) is used to represent:

Select one or more of the following:

  • A user’s home directory

  • Any two single characters

  • The directory above the current working directory

  • Nothing; it has no special meaning

Explanation

Question 8 of 25

1

Which of the following commands can be used to access the home directory of the user “bob” while logged in as root?
(choose two)

Select one or more of the following:

  • cd /home/bob

  • cd ~bob

  • cd &&

  • ~bob

Explanation

Question 9 of 25

1

The double dot (..) can be used with the cd command to represent:

Select one or more of the following:

  • The directory above the current working directory

  • Nothing; it has no special meaning.

  • Any two single characters

  • A user’s home directory.

Explanation

Question 10 of 25

1

The cd command by itself will take you to what directory?

Select one or more of the following:

  • The system root directory

  • None; it is not a valid command

  • The directory above the current working directory

  • Your home directory

Explanation

Question 11 of 25

1

What command will allow you to change your current working directory?

Select one or more of the following:

  • chdir

  • list

  • cd

  • ls

Explanation

Question 12 of 25

1

The double dot (..) can be used to represent the directory…

Select one or more of the following:

  • …above the current directory.

  • …below the current directory.

  • …with any two single numbers.

  • …above the current directory only when using the cd command.

Explanation

Question 13 of 25

1

The ls command without options or arguments…

Select one or more of the following:

  • …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.

Explanation

Question 14 of 25

1

The first character in a long listing (ls -l) indicates:

Select one or more of the following:

  • The permissions

  • If something is a file, directory, or symbolic link

  • The owner

  • The size

Explanation

Question 15 of 25

1

Which option for the ls command, when used in conjunction with the -l option, will display human-readable sizes?

Select one or more of the following:

  • -M

  • -S

  • -H

  • -h

Explanation

Question 16 of 25

1

Which of the following commands will prevent any aliased options to the ls command?

Select one or more of the following:

  • /ls

  • %ls

  • ls

Explanation

Question 17 of 25

1

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

Select one or more of the following:

  • True

  • False

Explanation

Question 18 of 25

1

The command ls -S will sort files:

Select one or more of the following:

  • By size, smallest to largest

  • By number of symlinks, largest to smallest

  • By modification date, newest to oldest

  • By size, largest to smallest

Explanation

Question 19 of 25

1

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

Select one or more of the following:

  • True

  • False

Explanation

Question 20 of 25

1

Which option(s) can be used to prevent cp from overwriting an existing file?
(choose two)

Select one or more of the following:

  • -n

  • -N

  • -z

  • -i

Explanation

Question 21 of 25

1

The command rm -r will…

Select one or more of the following:

  • 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.

Explanation

Question 22 of 25

1

Which option can be used with the rm command to prompt before deleting?

Select one or more of the following:

  • -i

  • I

  • -P

  • A

Explanation

Question 23 of 25

1

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

Select one or more of the following:

  • True

  • False

Explanation

Question 24 of 25

1

Which of the following commands can be used to rename a file?

Select one or more of the following:

  • name

  • mv

  • rn

  • cp

Explanation

Question 25 of 25

1

The touch command can be used to:
(choose two)

Select one or more of the following:

  • Create new files

  • Change a file’s name

  • Update the time stamp of existing files

  • Change ownership of a file

Explanation