Workbook 2 Filesystem Basics: Chapter 5 File Names and File Globbing Flashcards

1
Q

What is the maximum length of a Linux filename, exclusive of any directory components?

A

Linux filenames can be up to 255 characters long. [45]

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

What is the only character not allowed in a Linux filename?

A

/ (slash).[45]

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

What are the safe filename characters?

A

A-Z a-z 0-9 . _ - + ~ [45]

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

What is the first character in the name of all hidden files?

A

start with a dot are “hidden” files [46]

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

Give a command line that creates a hidden directory named secret

A

mkdir .secret [48]

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

Give a wildcard pattern that matches in that directory:

- all files with a .html extension

A

*html [48]

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

Give a wildcard pattern that matches in that directory:

- all files

A
  • [48]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Give a wildcard pattern that matches in that directory:

- all files that begin with the letter p or s

A

[ps]* (page 48)

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

Give a wildcard pattern that matches in that directory:

- all files whose name begins with page and that have a .htm extension (NOT .html)

A

page* .htm (page 48)

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

Give a wildcard pattern that matches in that directory:

- That is not from the list of range

A

[^pd]* (page 48)

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