File management · Question 9 of 12

What does the -p option do in cp source.txt target.txt?

1 answer is correct. Medium Created with AI

Show answer

Answer

  • A Permissions, owner and timestamps are preserved

Explanation

-p (preserve) keeps mode, ownership and timestamps. Without -p, the copy gets the current time and the user's umask.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications