More commands Flashcards

1
Q

How to update a timestamp of a file to the current time

A

touch

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

How to update timestamp but prevent file from being accidentally created

A

touch -c

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

update timestamp to a custom date

A

touch -d

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

how to copy a file and preserve original owner

A

cp -p

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

how to copy all things in a fuldore (flag

A

-r

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

copy lots of stuff and preserve owners of folders, and preserve symbolic links as well

A

cp -a

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