Cp -pr
From Linuxintro
Revision as of 06:06, 2 January 2021 by ThorstenStaerk (talk | contribs)
The command
cp -pr
copies files and preserves it attributes. This is useful if you want to copy special files like devices:
tweedleburg:~ # cp -pr /dev/sda . tweedleburg:~ # ll sda brw-r----- 1 root disk 8, 0 Dec 20 08:39 sda