Linux Tutorial 05


cp – Copy Files And Directories


  • Copy zikzak_file_01 to zikzak_file_02.
  • If zikzak_file_02 exists, it is overwritten with the contents of zikzak_file_01.
  • If zikzak_file_02 does not exist, it is created.
$ ls -l
total 0
-rw-r----- 1 zikzak u41687 0 Aug  2 17:05 zikzak_file_01

$ cp zikzak_file_01 zikzak_file_02

$ ls -l
total 0
-rw-r----- 1 zikzak u41687 0 Aug  2 17:05 zikzak_file_01
-rw-r----- 1 zikzak u41687 0 Aug  2 17:07 zikzak_file_02

Continue reading

Advertisements