Chapter 6 Exam Flashcards

1
Q

Hidden files are files that begin with what character?

A dash (-)
A plus (+)
A period (.)
An asterisk (*)
A

A period (.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

  • L
  • H
  • w
  • a
A

-a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

/
C:
/home
/root

A

/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

Absolute
Relative

A

Absolute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

Relative
Absolute

A

Relative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The tilde (~) is used to represent:

A user’s home directory
Any two single characters
The directory above the current working directory
Nothing; it has no special meaning

A

A user’s home directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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 /home/bob
cd ~bob
cd &&
~bob

A

cd /home/bob

cd ~bob

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

The directory above the current working directory
Nothing; it has no special meaning.
Any two single characters
A user’s home directory.

A

The directory above the current working directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is the following path absolute or relative?
sysadmin/Documents

Relative
Absolute

A

Relative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

The system root directory
None; it is not a valid command
The directory above the current working directory
Your home directory

A

Your home directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

chdir
list
cd
ls

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

…above the current directory.
…below the current directory.
…with any two single numbers.
…above the current directory only when using the cd command.

A

…above the current directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The ls command without options or arguments…

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

A

…lists the contents of the current directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

The permissions
If something is a file, directory, or symbolic link
The owner
The size

A

If something is a file, directory, or symbolic link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

  • M
  • S
  • H
  • h
A

-h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

/ls
\ls
%ls
ls

A

\ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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

True
False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The command ls -S will sort files:

By size, smallest to largest
By number of symlinks, largest to smallest
By modification date, newest to oldest
By size, largest to smallest

A

By size, largest to smallest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

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

True
False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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

  • n
  • N
  • z
  • i
A
  • n

- i

21
Q

The command rm -r will…

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.

A

remove a directory along with any files or subdirectories.

22
Q

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

-i
I
-P
A

A

-i

23
Q

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

True
False

A

True

24
Q

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

name
mv
rn
cp

A

mv

25
Q

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

Create new files
Change a file’s name
Update the time stamp of existing files
Change ownership of a file

A

Create new files

Update the time stamp of existing files

26
Q

The whatis command is the same as man -w.

True
False

A

False

27
Q

Which two pager commands are used by the man command to control movement within the document?
(choose two)

grep
less
page
more

A

less

more

28
Q

Commands typically executed by a user are covered in what section of the manual?

5
3
2
1

A

1

29
Q

The statement that describes the difference between a man page and an info page is:

The man page is like a guide; the info page is a more concise reference.

The info page is like a guide; a man page is a more concise reference.

The man page is a long detailed reference; the info page is very terse.

There is very little difference between them.

A

The info page is like a guide; a man page is a more concise reference.

30
Q

Section 5 of the manual pages covers:

System administration commands
Games
User commands
File Formats

A

File Formats

31
Q

To search the man page sections for the keyword example, which of the following command lines could you execute?
(choose two)

man -k example
apropos example
man -f example
whatis example

A

man -k example

apropos example

32
Q

To start searching a man page, the first key you press is:

f
/
s
!

A

/

33
Q

To get help on using the info command, execute:
(choose two)

man info
info -q
info info
help info

A

man info

info info

34
Q

To get help while using the info command, press:

g
A
Shift+H
Shift+z

A

Shift+H

35
Q

When interpreting the SYNOPSIS of a command found on a man page, the “|” means:

The items it separates can be used together
The items it separates cannot be used together

A

The items it separates cannot be used together

36
Q

The _____ command is normally executed daily to update the database of all files that are on the system.

find
locate
search
updatedb

A

updatedb

37
Q

The _____ command is normally executed to search for a command or man page.

updatedb
whereis
find
man -k

A

whereis

38
Q

The _____ command can be used to find any file, not just commands or man pages.

apropos
whereis
whatis
locate

A

locate

39
Q

The info command merges all available documentation into a single “book”.
True or False?

True
False

A

True

40
Q

Section 9 of man pages relates to what?

Library Calls
Games
Kernel Routines
System Calls
Miscellaneous
A

Kernel Routines

41
Q

The man command searches each of the sections in order until it finds a match.
True or False?

True
False

A

True

42
Q

The whatis command will only return the first result for which section a man page is stored in.
True or False?

True
False

A

False

43
Q

What is the standard option to provide a command line program to view its documentation?

-h
–info
–help
–doc

A

–help

44
Q

The command man -k is the same as the command apropos.
True or False?

True
False

A

True

45
Q

The whatis command is the same as man -w.

False
True

A

False

46
Q

The directory where additional documentation for software packages most likely can be found is:

/usr/software/doc
/var/lib/doc
/usr/share/doc
/var/share/doc

A

/usr/share/doc

47
Q

If you are reading the synopsis of a command from a man page, then items in square brackets are:

Required arguments
Comments
Optional
Required options

A

Optional

48
Q

The following sections commonly appear on a man page:
(choose three)

NAME
LICENSE
DESCRIPTION
SYNOPSIS

A

NAME
DESCRIPTION
SYNOPSIS