{"id":664,"date":"2015-10-05T09:15:35","date_gmt":"2015-10-05T09:15:35","guid":{"rendered":"http:\/\/www.tech-g.com\/?p=664"},"modified":"2015-10-05T09:30:37","modified_gmt":"2015-10-05T09:30:37","slug":"cp-overwrite-files-in-destination","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2015\/10\/05\/cp-overwrite-files-in-destination\/","title":{"rendered":"CP overwrite files in destination"},"content":{"rendered":"<p>Although the copy program cp in Linux overwrites without prompting, in practice, it does not, the reason behind that is that the command is aliased with the (cp -i), you can check that by using the alias command<\/p>\n<p>So there are 2 solutions to this to make cp overwrite<\/p>\n<p>The first would be to unalias, while the second would be to execute the command directly with<\/p>\n<p>\\cp<\/p>\n<p>Or you can use the full path to the alias command like<\/p>\n<p>\/usr\/bin\/cp<\/p>\n<p>I personally use <\/p>\n<p>\\cp this that<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although the copy program cp in Linux overwrites without prompting, in practice, it does not, the reason behind that is that the command is aliased with the (cp -i), you can check that by using the alias command So there are 2 solutions to this to make cp overwrite The first would be to unalias, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-664","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=664"}],"version-history":[{"count":1,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/664\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/664\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}