{"id":739,"date":"2014-09-11T15:16:23","date_gmt":"2014-09-11T18:16:23","guid":{"rendered":"http:\/\/blog.abratel.com.br\/?p=739"},"modified":"2014-09-11T15:16:23","modified_gmt":"2014-09-11T18:16:23","slug":"freebsd-install-bash-shell-instalar-shell-como-padrao-do-usuario-no-freebsd","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=739","title":{"rendered":"FreeBSD Install BASH Shell &#8211; Instalar shell como padr\u00e3o do usu\u00e1rio no freebsd"},"content":{"rendered":"<p>in BASH Shell, FreeBSD, Package Management<\/p>\n<p>I&#8217;d like to Bash shell under FreeBSD for bash programming. How do I install bash shell under FreeBSD UNIX operating system?<\/p>\n<p>Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. csh \/ tcsh (C shell with file name completion and command line editing) is the default shell under FreeBSD. However, you can easily install and use bash as shell.<br \/>\nInstall bash under FreeBSD<\/p>\n<p>Login as root and type the following commands to install bash using FreeBSD ports:<br \/>\n# portsnap update extract<br \/>\n# cd \/usr\/ports\/shells\/bash<br \/>\n# make install clean<\/p>\n<p>To install FreeBSD binary package, enter:<br \/>\n# pkg_add -r bash<br \/>\nHow do I use bash under FreeBSD?<\/p>\n<p>To use bash shell, enter:<br \/>\n# bash<br \/>\nOR<br \/>\n# \/usr\/local\/bin\/bash<br \/>\nHow do I set bash as a default shell?<\/p>\n<p>To set bash as default, shell enter:<br \/>\n# chsh -s \/usr\/local\/bin\/bash {username}<br \/>\n# chsh -s bash<\/p>\n<p>Verify that bash is default shell for a user account called vivek, enter:<br \/>\ngrep {username} \/etc\/passwd<\/p>\n<p>OR<\/p>\n<p>egrep &#8211;color &#8216;{username}|zsh&#8217; \/etc\/passwd<\/p>\n<p>OR<br \/>\nfinger {username}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>in BASH Shell, FreeBSD, Package Management I&#8217;d like to Bash shell under FreeBSD for bash programming. How do I install bash shell under FreeBSD UNIX operating system? Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":740,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/739"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=739"}],"version-history":[{"count":1,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":741,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions\/741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/media\/740"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}