2.4 Creating, Moving and Deleting Files Flashcards

1
Q

Create | Move | Delete

glob

matches any number of any characters including no characters

A

*

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

Create | Move | Delete

glob

matches any one character

A

?

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

Create | Move | Delete

glob

matches class of characters

A

[]

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

Create | Move | Delete

posix

letters and numbers

A

[:alnum:]

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

Create | Move | Delete

posix

upper and lowercase letters

A

[:alpha:]

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

Create | Move | Delete

posix

spaces and tabs

A

[:blank:]

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

Create | Move | Delete

posix

control characters
backspace, bell, NAK, escape

A

[:cntrl:]

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

Create | Move | Delete

posix

numerals (0123456789)

A

[:digit:]

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

Create | Move | Delete

posix

graphic characters - all except ctrl and space

A

[:graph:]

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

Create | Move | Delete

posix

lowercase letters (a-z)

A

[:lower:]

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

Create | Move | Delete

posix

printable characters (alnum, punct and space characters)

A

[:print:]

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

Create | Move | Delete

posix

punctuation characters - i.e !, &, “ .

A

[:punct:]

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

Create | Move | Delete

posix

whitespace chars - tabs, spaces, newlines

A

[:space:]

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

Create | Move | Delete

posix

uppercase letters (A-Z)

A

[:upper:]

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

Create | Move | Delete

posix

Hexadecimal numerals (usually 0123456789abcdefABCDEF).

A

[:xdigit:]

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

Create | Move | Delete

what will the following command do and should NEVER be run

rm -ri /*

A

remove all files and directories writable by your user account. This includes any
network file systems

17
Q

Create | Move | Delete

Other than using -i, is it possible to prevent mv from overwriting destination files

A

-n
–no-clobber

18
Q

Create | Move | Delete

Explain cp -u

A

causes cp to only copy a file if the destination is missing or is older than the
source file