DEV Community

Cover image for BASH - What is Shell ____(1)
Israel-Lopes
Israel-Lopes

Posted on • Edited on

2 1

BASH - What is Shell ____(1)

                       ______________
                       |  ╲╭━━━━╮╲╲ |
                       |  ╲┃╭╮╭╮┃╲╲ | 
                       |  ┗┫┏━━┓┣┛╲ |
                       |  ╲┃╰━━╯┃   |
                       |  ╲╰┳━━┳╯╲╲ |
                       [####USER####]
                     [####SHELL####]
                   [###KERNEL####]
                [###HARDWARE###]
Enter fullscreen mode Exit fullscreen mode

The shell is the interface that the user uses to communicate with the system.

Shell Types

  • Bourne Shell (sh): Original and standard Unix shell.
  • Bourne Again Shell (bash): Standard shell on linux, compatible with sh but with improvements. It also incorporates features from csh and ksh.
  • Korn Shell (ksh): Also an enhancement to the bourne shell
  • C Shell (csh): Brings in itself improvements to the features of the C language.

To find out which shell is being used on the system, just type echo $0 or ècho $SHELLortail /etc/passwd`:

machine@machine:~$ echo $0
output: bash

In case you want to install another shell, before installing it let's check:

sudo dpkg -l | grep ksh

If it doesn't return anything, it means that ksh is not installed, so do:

sudo apt-get install ksh

Typing again will see that it will return this time:

sudo dpkg -l | grep ksh

Now to use ksh, just type ksh in the terminal. To exit ksh just type exit.

_____________________next page >>____________________

Texto alternativo da imagem

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay