Latest revision |
Your text |
Line 26: |
Line 26: |
| | | |
| ==Introduction== | | ==Introduction== |
− | | + | The shell is a program, that provides users with a command prompt. Different shells behave differently. GhostBSD |
− | A shell provides a command line interface for interacting with the operating system. A shell receives commands from the input channel and executes them. Many shells provide built in functions to help with everyday tasks such as file management, file globbing, command line editing, command macros, and environment variables. Different shells behave differently. The default shell on GhostBSD is ''[https://fishshell.com/ fish]''. When you install a shell from a port or a package, it adds an appropriate entry (full path to the shell) in <code>/etc/shells</code>.
| + | comes with different shells. The file <code>/etc/shells</code> contains the following list: |
− | | + | * /bin/sh |
− | ==Shells on GhostBSD==
| + | * /bin/csh |
− | | + | * /bin/tcsh |
− | GhostBSD comes with different shells. The file <code>/etc/shells</code> contains the following list:
| + | * /usr/local/bin/zsh |
− | | + | * /usr/local/bin/rzsh |
− | * /bin/[https://www.freebsd.org/cgi/man.cgi?query=sh&sektion=1&manpath=freebsd-release-ports sh] | + | * /usr/local/bin/ksh93 |
− | * /bin/[https://www.freebsd.org/cgi/man.cgi?query=csh&sektion=1&manpath=freebsd-release-ports csh] | + | * /usr/local/libexec/git-core/git-shell |
− | * /bin/[https://www.freebsd.org/cgi/man.cgi?query=tcsh&sektion=1&manpath=freebsd-release-ports tcsh] | + | * /usr/local/bin/fish |
− | * /usr/local/bin/[https://www.freebsd.org/cgi/man.cgi?query=zsh&apropos=0&sektion=1&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html zsh] | + | * /usr/local/bin/bash |
− | * /usr/local/bin/[https://www.commandlinux.com/man-page/man1/rzsh.1.html rzsh] | + | * /usr/local/bin/rbash |
− | * /usr/local/bin/[https://www.freebsd.org/cgi/man.cgi?query=ksh93&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html ksh93] | + | |
− | * /usr/local/libexec/git-core/[https://git-scm.com/docs/git-shell git-shell] | + | |
− | * /usr/local/bin/[https://www.freebsd.org/cgi/man.cgi?query=fish&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html fish] | + | |
− | * /usr/local/bin/[https://www.freebsd.org/cgi/man.cgi?query=bash&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html bash] | + | |
− | * /usr/local/bin/[https://www.gnu.org/software/bash/manual/html_node/The-Restricted-Shell.html rbash] | + | |
− | | + | |
− | ==Changing the 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'':
| + | |
− | | + | |
− | <code>% chsh -s /usr/local/bin/bash</code>
| + | |
− | | + | |
− | The new shell must be present in <code>/etc/shells</code> with the full path..
| + | |
− | | + | |
− | ==More Information==
| + | |
− | | + | |
− | See: [https://www.freebsd.org/doc/handbook/shells.html Shells]
| + | |
| | | |
| [[Category:Station]] | | [[Category:Station]] |