Timeline for How to preserve file creation date when overwriting files?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 7, 2023 at 9:28 | vote | accept | Velent | ||
| Sep 7, 2023 at 7:13 | comment | added | Stephen Kitt |
Yes, it would; hence “one way of achieving” ;-). cp seems simpler to me and is more readily adapted to a variety of situations (for example, sudo cp source target rather than cat source | sudo tee target > /dev/null).
|
|
| Sep 7, 2023 at 7:09 | comment | added | FelixJN |
wouldn't this do the same then: cat source >target?
|
|
| Sep 7, 2023 at 6:41 | history | answered | Stephen Kitt | CC BY-SA 4.0 |