Multiple choice technology programming languages

How can preserve timestamps of a file while copying

  1. bydeflut it preserves

  2. cp -in

  3. cp -p

  4. cp -t

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The 'cp -p' command preserves file attributes including timestamps when copying files. The -p flag explicitly tells cp to maintain the modification time, access time, file modes, and other attributes. By default, cp updates timestamps to the current time, so -p is required to preserve the original file's timestamps.