
{"id":18262,"date":"2019-10-21T14:47:22","date_gmt":"2019-10-21T14:47:22","guid":{"rendered":"http:\/\/beautifulwork.org\/?p=18262"},"modified":"2019-10-21T14:47:22","modified_gmt":"2019-10-21T14:47:22","slug":"fundamental-of-a-bash-builtin-command-named-unalias","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2019\/10\/21\/fundamental-of-a-bash-builtin-command-named-unalias\/","title":{"rendered":"Fundamental of a bash builtin  command named   &#8220;unalias&#8221;"},"content":{"rendered":"<p><u>ABOUT unalias<\/u><\/p>\n<pre>\nRemove each name from the list of defined aliases.  If -a is supplied, all alias definitions\nare removed.  The return  value  is true unless a supplied name is not a defined alias.\n<\/pre>\n<p>\n[bash]<br \/>\n$unalias<br \/>\nunalias: usage: unalias [-a] name [name &#8230;]<br \/>\n$echo $?<br \/>\n2<br \/>\n$unalias -a<br \/>\n$echo $?<br \/>\n0<br \/>\n$unalias  pwd<br \/>\nbash: unalias: pwd: not found<br \/>\n$pwd<br \/>\n\/home\/jeffrin<br \/>\n$alias ls list<br \/>\nbash: alias: ls: not found<br \/>\nbash: alias: list: not found<br \/>\n$alias list ls<br \/>\nbash: alias: list: not found<br \/>\nbash: alias: ls: not found<br \/>\n$alias pwd pwf<br \/>\nbash: alias: pwd: not found<br \/>\nbash: alias: pwf: not found<br \/>\n$alias<br \/>\n$alias list=&quot;ls&quot;<br \/>\n$unalias list<br \/>\n$echo $?<br \/>\n0<br \/>\n$list<br \/>\nbash: list: command not found<br \/>\n$<\/p>\n<p>[\/bash]<br \/>\n<br \/>\nLINK<br \/>\n<a href=\"https:\/\/www.quora.com\/What-is-the-alias-unalias-command-in-Unix\">https:\/\/www.quora.com\/What-is-the-alias-unalias-command-in-Unix<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT unalias Remove each name from the list of defined aliases. If -a is supplied, all alias definitions are removed. The return value is true unless a supplied name is not a defined alias. [bash] $unalias unalias: usage: unalias [-a] name [name &#8230;] $echo $? 2 $unalias -a $echo $? 0 $unalias pwd bash: unalias: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2019\/10\/21\/fundamental-of-a-bash-builtin-command-named-unalias\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fundamental of a bash builtin  command named   &#8220;unalias&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18357,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18262"}],"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=18262"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18262\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}