Tweak Changing Shell document, eliminate some redundancies in descriptions.
This commit is contained in:
parent
c3a9c4103f
commit
b0cc1dc347
|
@ -3,39 +3,30 @@ title = "Changing Shell"
|
||||||
+++
|
+++
|
||||||
# Changing Shell
|
# Changing Shell
|
||||||
|
|
||||||
When using a terminal session to do stuff from the command-line you're in fact using a Shell. It is an interpreter with an interface for users to interact with. It undertands what you write and processes the command and its related tasks.
|
When using a terminal session to perform command-line activities, a Unix shell is used to interpret commands. The default shell on Solus is Bash, however changing your shell may enable additional features and functionality.
|
||||||
|
|
||||||
A Unix shell is a command-line interpreter that provides an interface and functionalities for your terminal, one of the most fundamental tool in a Operative System.
|
Solus makes available other shells via our repository, with a full list available in `/usr/share/defaults/etc/shells`. Common shells, aside from Bash, are:
|
||||||
With a shell you are able to do a lot of tasks from the command-line :
|
|
||||||
- Listing files in a directory with the command `ls`
|
|
||||||
- Creating a directory with the command `mkdir`
|
|
||||||
- Moving a file with `mv`
|
|
||||||
- Launching a software from the command-line (`firefox` for example)
|
|
||||||
- And a lot more useful things that you can do with a graphical interface
|
|
||||||
|
|
||||||
|
- Dash
|
||||||
|
- [Fish](https://fishshell.com/)
|
||||||
|
- [Zsh](http://zsh.sourceforge.net/)
|
||||||
|
|
||||||
The most known and used shell in Linux is *bash* as it comes installed and activated on most distribution out-of-the-box.
|
## Installation
|
||||||
|
|
||||||
Other shells exist, such as :
|
In order to use a shell different from Bash, you may need to install the respective package for the shell to be able to work. You will find thoses packages in the Software-Center within the *System utilities* category, or via the command-line with `sudo eopkg install <Name of the Shell>`.
|
||||||
- Dash
|
|
||||||
- Fish
|
|
||||||
- Zsh
|
|
||||||
|
|
||||||
A list of available shells on Solus is in `/usr/share/defaults/etc/shells`.
|
|
||||||
|
|
||||||
In order to use a shell different from _Bash_ you will have to install the proper package for the shell to be able to work. You will find thoses packages in the Software-Center within the _System utilities_ category.
|
|
||||||
You can also install those packages from the command-line with `sudo eopkg install <Name of the Shell>`:
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo eopkg install fish
|
sudo eopkg install fish
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to switch from *bash* to another shell in your terminal you have to use the command `chsh` to do that (alongside installing the proper package for your shell).
|
## Switching
|
||||||
|
|
||||||
The command is used with `sudo` rights to change the shell for your user session.
|
To switch to another shell, first install the appropriate package, followed by the command `chsh` (change shell) with `sudo` to change the shell for your user session.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
````
|
|
||||||
|
``` bash
|
||||||
sudo chsh -s /bin/zsh $(whoami)
|
sudo chsh -s /bin/zsh $(whoami)
|
||||||
```
|
```
|
||||||
|
|
Reference in New Issue