From c4e19082bc34571838b852008a510a2dc4ea4741 Mon Sep 17 00:00:00 2001 From: Bridouz Date: Thu, 25 May 2017 11:51:53 +0200 Subject: [PATCH 1/2] Create en.md for Changing Shell page --- configuration/changing-shell/en.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 configuration/changing-shell/en.md diff --git a/configuration/changing-shell/en.md b/configuration/changing-shell/en.md new file mode 100644 index 0000000..53720f9 --- /dev/null +++ b/configuration/changing-shell/en.md @@ -0,0 +1,25 @@ ++++ +title = "Changing Shell" ++++ +# Changing Shell + +A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and for Unix-like systems. +Users direct the operation of the computer by entering commands as text for a command line interpreter to execute or by creating text scripts of one or more such commands. + +A Unix shell is a command-line interpreter that provides an interface and functionalities for your terminal. The most known and used shell in Linux is *bash* as it comes installed and activated on most distribution out-of-the-box. + +Other shells exist, such as : + - Dash + - Fish + - Zsh + +A list of available shells on Solus is in `/usr/share/defaults/etc/shells`. + +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). + +The command is used with `sudo` rights to change the shell for your user session. + +Exemple: +```` +sudo chsh -s /bin/zsh $(whoami) +``` From 06a00a63baef7b3992a3fe3536a12d5f1047f673 Mon Sep 17 00:00:00 2001 From: Bridouz Date: Thu, 25 May 2017 14:47:58 +0200 Subject: [PATCH 2/2] Update en.md - Rework first paragraph - Add example to install a shell --- configuration/changing-shell/en.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/configuration/changing-shell/en.md b/configuration/changing-shell/en.md index 53720f9..8de2a5b 100644 --- a/configuration/changing-shell/en.md +++ b/configuration/changing-shell/en.md @@ -3,10 +3,18 @@ title = "Changing Shell" +++ # Changing Shell -A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and for Unix-like systems. -Users direct the operation of the computer by entering commands as text for a command line interpreter to execute or by creating text scripts of one or more such commands. +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. -A Unix shell is a command-line interpreter that provides an interface and functionalities for your terminal. The most known and used shell in Linux is *bash* as it comes installed and activated on most distribution out-of-the-box. +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. +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 + + +The most known and used shell in Linux is *bash* as it comes installed and activated on most distribution out-of-the-box. Other shells exist, such as : - Dash @@ -15,11 +23,19 @@ Other shells exist, such as : 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 `: + +Example: +``` +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). The command is used with `sudo` rights to change the shell for your user session. -Exemple: +Example: ```` sudo chsh -s /bin/zsh $(whoami) ```