Basic Commands Flashcards
1
Q
Rename a directory
A
mv
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)
3
Q
how would you mount the virtual box shared directory called blah
A
sudo mount -t vboxsf blah ~/[my shared directory name]
4
Q
how do you find files that contain the phrase ‘My Word’
A
grep -rnw ‘/path/to/somewhere/’ -e ‘My Word’