Editing Shell

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 48: Line 48:
 
The easiest way to permanently change the default shell is to use <code>chsh</code>. Running this command will open the editor that is configured in the EDITOR environment variable, which by default is set to vi(1). Change the Shell: line to the full path of the new shell.
 
The easiest way to permanently change the default shell is to use <code>chsh</code>. Running this command will open the editor that is configured in the EDITOR environment variable, which by default is set to vi(1). Change the Shell: line to the full path of the new shell.
  
Alternately, use <code>[https://www.freebsd.org/cgi/man.cgi?query=chsh&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html chsh -s]</code> which will set the specified shell without opening an editor. For example, to change the shell to ''bash'':
+
Alternately, use <code>chsh -s</code> which will set the specified shell without opening an editor. For example, to change the shell to ''bash'':
  
 
<code>% chsh -s /usr/local/bin/bash</code>
 
<code>% chsh -s /usr/local/bin/bash</code>

Please note that all contributions to GhostBSD Wiki are considered to be released under the Creative Commons Attribution (see GhostBSD Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)