{"id":15,"date":"2008-10-14T09:19:59","date_gmt":"2008-10-14T17:19:59","guid":{"rendered":"http:\/\/blog.gerrior.com\/?p=15"},"modified":"2011-11-04T09:57:41","modified_gmt":"2011-11-04T17:57:41","slug":"beware-alias-command-in-fedora-8","status":"publish","type":"post","link":"https:\/\/blog.gerrior.com\/?p=15","title":{"rendered":"Beware: alias command in Fedora 8"},"content":{"rendered":"<p style=\"text-align: left;\">I&#8217;d been doing a lot of work in Fedora 8&#8217;s Terminal.\u00a0 I&#8217;m copying files often.\u00a0 My work with <tt>cp<\/tt> caused me to get the overwrite prompt frequently and in an effort to increase productivity I was looking for a way to supress it.\u00a0 The option I needed was <tt>--force<\/tt>.\u00a0 When I invoked cp with <tt>-f<\/tt> it was still prompting me to overwrite the file.\u00a0 Hmmm. What do I not understand about force?\u00a0 I sheepishly asked a colleague what is doing on.\u00a0 He said to type <tt>alias<\/tt> and see what I get.\u00a0 Low and behold alias has <tt>cp='cp -i'<\/tt> effectively negating my <tt>-f<\/tt>.\u00a0 Ugh.\u00a0 Going direct with <tt>\/bin\/cp -f<\/tt> bypasses the alias.\u00a0 Editing the alias is an option too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d been doing a lot of work in Fedora 8&#8217;s Terminal.\u00a0 I&#8217;m copying files often.\u00a0 My work with cp caused me to get the overwrite prompt frequently and in an effort to increase productivity I was looking for a way to supress it.\u00a0 The option I needed was &#8211;force.\u00a0 When I invoked cp with -f &hellip; <a href=\"https:\/\/blog.gerrior.com\/?p=15\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Beware: alias command in Fedora 8<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-fedora-8"],"_links":{"self":[{"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":4,"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":414,"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/414"}],"wp:attachment":[{"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gerrior.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}