CH8 Flashcards

1
Q

Which options can be used to prevent CP from overwriting an existing file? (Choose Two)

  • z
  • n
  • N
  • i
A
  • n

- i

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

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

A
-P
i
-i

A

-i

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

The RM command can delete multiple files at once?

True
False

A

True

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

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

cp
rm
mv
Name

A

mv

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

The TOUCH command can be used to? (Choose Two)

Update the timestamp of existing files
Change ownership of a file
Create New - Empty Files
Change a files name.

A

Update the Timestamp of existing files.

Create New - Empty Files

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

Which of the following are glob characters? (Choose Three)

Square Brackets []
?
-
*

A

Square Brackets []
?
*

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

The main purpose of using glob characters is to be able to provide a list of filenames to a command?

True
False

A

True

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

The asterisk character is used to represent zero or more of any character in a filename?

True
False

A

True

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

Brackets cannot be used to represent a range of characters?

True
False

A

False

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

Which command would list files that do not begin with a “T” or a “W”?

echo /etc/[TW!]
echo /etc/!TW
echo /etc/[!TW}

echo /etc/[*TW]!

A

etcho /etc/[!TW]*

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