Difference between pages "Block device" and "Cp -pr"
From Linuxintro
(Difference between pages)
imported>ThorstenStaerk (Block device moved to Blocks, block devices and block sizes: Here a comprehensive view is needed) |
imported>ThorstenStaerk (New page: 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...) |
||
Line 1: | Line 1: | ||
− | + | 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 |
Revision as of 11:32, 20 December 2008
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