Difference between revisions of "Shell"

From GhostBSD Wiki
Jump to: navigation, search
(Introduction)
(Introduction)
 
(3 intermediate revisions by the same user not shown)
Line 27: Line 27:
 
==Introduction==
 
==Introduction==
  
The shell is a program, that provides users with a command prompt. Different shells behave differently. The standard shell on GhostBSD is ''fish''. When you install a shell  from a port or a package, it adds an appropriate entry in <code>/etc/shells</code>.
+
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>.
  
 
==Shells on GhostBSD==
 
==Shells on GhostBSD==
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>chsh -s</code> which will set the specified shell without opening an editor. For example, to change the shell to ''bash'':
+
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>
 
<code>% chsh -s /usr/local/bin/bash</code>

Latest revision as of 09:26, 1 September 2020

Welcome to theIcon Disti GhostBSD.png Shell
App/Package Abstract Addition or Link
If you don't find a package you are looking for,
we recommend to search the
Icon FreeBSD.pngPorts: Shells.
There are more than 64 ports available.
Back to the Icon Disti GhostBSD.pngApplications


Introduction[edit]

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 fish. When you install a shell from a port or a package, it adds an appropriate entry (full path to the shell) in /etc/shells.

Shells on GhostBSD[edit]

GhostBSD comes with different shells. The file /etc/shells contains the following list:

Changing the Shell[edit]

The easiest way to permanently change the default shell is to use chsh. 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 chsh -s which will set the specified shell without opening an editor. For example, to change the shell to bash:

% chsh -s /usr/local/bin/bash

The new shell must be present in /etc/shells with the full path..

More Information[edit]

See: Shells