Basic Commands Flashcards

1
Q

Rename a directory

A

mv

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

what are the flags in rsync -avz . ~/explorer

A
a = archive (a quick way of including recursion and keeping everything as it is)
v = verbose (gives you a list of what it copied)
z = compress (good for slow links)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how would you mount the virtual box shared directory called blah

A

sudo mount -t vboxsf blah ~/[my shared directory name]

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

how do you find files that contain the phrase ‘My Word’

A

grep -rnw ‘/path/to/somewhere/’ -e ‘My Word’

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