{"id":378,"date":"2009-05-27T10:44:52","date_gmt":"2009-05-27T15:44:52","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=378"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"how-to-change-the-shell-in-linux-or-unix","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=378","title":{"rendered":"How to change the shell in Linux or Unix."},"content":{"rendered":"<p>Linux and Unix have a vairety of shells.  A shell is a program that provides the text interface, it reads the interactive or non interactive commands, interprets and executes the instructions.  Depending on your version of Linux or Unix, a number of shells may be available.  The default shell for Linux is bash.<\/p>\n<p>Here is the command to find out what shell you are currently in.<br \/>\necho $0 \u2013 this will list the current shell.<br \/>\necho $SHELL \u2013 this will provide the path of the current shell.<\/p>\n<div style=\"float: right;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 234;\ngoogle_ad_height = 60;\ngoogle_ad_format = \"234x60_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>You can swith to a different shell temporarily, for example you may have a program that is more compatible with the csh shell.  Below is an example.<br \/>\nchs \u2013 this will change the shell to csh.<br \/>\necho $0 \u2013 To check and see what your current shell is.<\/p>\n<p>If you wanted to find out what shells are installed, then check the contents of the file \/etc\/shells.<\/p>\n<p>cat \/etc\/shells<\/p>\n<p>Below is the output from the above cat command. These are the shells available on Redhat Enterprise 5 Linux.<br \/>\n\/bin\/sh<br \/>\n\/bin\/bash<br \/>\n\/sbin\/nologin<br \/>\n\/bin\/tcsh<br \/>\n\/bin\/csh<br \/>\n\/bin\/ksh<\/p>\n<p>To change the shell permanently for a user in RedHat linux using the GUI, simply goto Systems \u2013 Administration \u2013 Users and Groups. Edit the users profile and click on the drop down next to Login shell, then select the new default shell.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux and Unix have a vairety of shells. A shell is a program that provides the text interface, it reads the interactive or non interactive commands, interprets and executes the instructions. Depending on your version of Linux or Unix, a&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=378\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[55,35],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/378"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=378"}],"version-history":[{"count":1,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":379,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions\/379"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}