Chapter 8 Flashcards

1
Q
  • Asterisk
A

Ex: echo /etc/t*

Displays all of the files in the /etc directory that begins with the letter T

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

? question mark

A

Depending on the amount used, it would display files with x amount of characters

Ex: echo /etc/t??????? (7 quesiton marks)
etc/terminfo

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

[] brackets

A

matches any file that begins with the letters put inside of brackets

Ex: echo /etc/[gu]

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

! exclamation mark

A

Used to negate a range

Ex: echo /etc/[!a-t]*

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

cp

A

copy

cp source destination
ex: cp /etc/hosts ~

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

cp -v

A

verbose
Produces output if successful

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

mv

A

moving files command
also used to rename

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

additional mv options

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

touch

A

create empty file

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

rm

A

remove/delete files

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

rm -r

A

add recursive to remove directories

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

rmdir

A

remove directory but only if directly is empty

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

mkdir

A

Create directory

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