« Bash Shell » : différence entre les versions

De Marijan Stajic | Wiki
Aller à la navigation Aller à la recherche
mAucun résumé des modifications
Aucun résumé des modifications
Ligne 21 : Ligne 21 :


'''Bash''' is probably the '''most popular shell''' because of its features.
'''Bash''' is probably the '''most popular shell''' because of its features.
It's possible to '''change the default shell''' using the following command :
<pre class="linux">
marijan$ chsh
Enter the new value, or press enter for the default
        Login Shell [/bin/bash]: /bin/sh
</pre>

Version du 21 mars 2024 à 16:58

old bash shell page (fr)

Types

There exist multiple different types of shells in Linux :

  • Bourne Shell (sh)
  • C Shell (csh or tcsh)
  • Korn Shell (ksh)
  • Z Shell (zsh)
  • Bourne Again Shell (bash)

All of them serve a common purpose, which is to facilitate communication between the user and the operating system.

To check the shell being used, we have to use the following command:

marijan$ echo $SHELL

/bin/bash

Bash is probably the most popular shell because of its features.

It's possible to change the default shell using the following command :

marijan$ chsh

Enter the new value, or press enter for the default
         Login Shell [/bin/bash]: /bin/sh