Difference between revisions of "Cp -pr"

From Linuxintro
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...)
 
imported>ThorstenStaerk
Line 3: Line 3:
 
copies files and preserves it attributes. This is useful if you want to copy special files like devices:
 
copies files and preserves it attributes. This is useful if you want to copy special files like devices:
 
  tweedleburg:~ # cp -pr /dev/sda .
 
  tweedleburg:~ # cp -pr /dev/sda .
  tweedleburg:~ # ll sda
+
  tweedleburg:~ # [[ll]] sda
 
  brw-r----- 1 root disk 8, 0 Dec 20 08:39 sda
 
  brw-r----- 1 root disk 8, 0 Dec 20 08:39 sda

Revision as of 11:36, 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