
{"id":8447,"date":"2013-06-01T17:00:50","date_gmt":"2013-06-01T17:00:50","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8447"},"modified":"2013-06-01T17:00:50","modified_gmt":"2013-06-01T17:00:50","slug":"cp-command-gnu-bash","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/06\/01\/cp-command-gnu-bash\/","title":{"rendered":"cp  command  GNU bash"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$&gt; 1\n$echo hello &gt; 2\n$cat 1\n$\n$cat 2\nhello\n$cp -b 2\ncp: missing destination file operand after \u20182\u2019\nTry 'cp --help' for more information.\n$cp -b 2 2b\n$ls\n1  2  2b\n$cat 2b\nhello\n$cp -x 2b 2c\n$ls\n1  2  2b  2c\n$cat 2c\nhello\n$cp -x 2b \/proc\/\ncp: cannot create regular file \u2018\/proc\/2b\u2019: Permission denied\n$sudo cp -x 2b \/proc\/\ncp: cannot create regular file \u2018\/proc\/2b\u2019: Permission denied\n$cp -s 2c 2d\n$ls -l\ntotal 12\n-rw-r--r-- 1 jeffrin jeffrin 0 Jun  1 22:28 1\n-rw-r--r-- 1 jeffrin jeffrin 6 Jun  1 22:28 2\n-rw-r--r-- 1 jeffrin jeffrin 6 Jun  1 22:28 2b\n-rw-r--r-- 1 jeffrin jeffrin 6 Jun  1 22:29 2c\nlrwxrwxrwx 1 jeffrin jeffrin 2 Jun  1 22:31 2d -&gt; 2c\n$\n\n<\/pre>\n<p><a href=\"http:\/\/pluto.infoclub.in\/wp-content\/uploads\/2013\/06\/cp.c\" target=\"_blank\" rel=\"noopener\">http:\/\/pluto.infoclub.in\/wp-content\/uploads\/2013\/06\/cp.c<\/a><br \/>\n<a href=\"http:\/\/stackoverflow.com\/questions\/5740042\/enum-use-in-a-c-program\" target=\"_blank\" rel=\"noopener\">http:\/\/stackoverflow.com\/questions\/5740042\/enum-use-in-a-c-program<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $&gt; 1 $echo hello &gt; 2 $cat 1 $ $cat 2 hello $cp -b 2 cp: missing destination file operand after \u20182\u2019 Try &#8216;cp &#8211;help&#8217; for more information. $cp -b 2 2b $ls 1 2 2b $cat 2b hello $cp -x 2b 2c $ls 1 2 2b 2c $cat 2c hello $cp -x &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/06\/01\/cp-command-gnu-bash\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;cp  command  GNU bash&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8447"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8447"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8447\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}