So I am trying to understand what is the significance of the
-p option for the
I opened the manual of the
cp command and it says
-p same as --preserve=mode,ownership,time stamps.
But what is that supposed to mean>
Like I know what is ownership (Who created the file) and I know timestamps(when was the file last modified or touched) and I also know the mode( permission like 777 ).
But what is the difference between for instance:
cp file1 file2
cp -p file1 file2
I am supposed to create a c program that implement
cp -i -p file1 file2
-i basically will prompt the user if
file2 was already created and is about to be overwritten but for
-p I have no clue.