Linux Shell

by Felix Kinaro About 2 min reading time

What is the Shell?

The Shell is a program that takes inputs through the keyboard and passes them to the operating system for execution. It is a command-line interface into which users type commands.

Common Examples of Shells

POSIX is a family of standards for maintaining compatibility between operating systems. Compliance to the standard ensures compatibility as you move through various Unix-like systems. The primary focus is on AT&T System V UNIX and BSD UNIX. The specification covers aspects such as network file access, system interfaces, commands and utilities among others. The shell falls in the category of commands and utilities.

How Do You Run the Shell?

You need a terminal emulator to run shell commands. The terminal emulator allows us to run commands that perform desired actions.

The terminal emulator depends on the desktop environment you are using. Gnome users get gnome-terminal, XFCE has XFCE Terminal while KDE has Konsole.

We can run commands on a local machine or a remote device through SSH, copy files with SCP or transfer files using SFTP.

How to Find Installed Shells

Open your terminal emulator program and run cat /etc/shells

The output indicates the various shells you have installed

Available shells

Interactive Shell vs Non-interactive

There are four categories of shells:

Conclusion

We have looked at the basics of what a shell is and why it is necessary.
Stay tuned for more as we explore file manipulation, permissions, and users in the upcoming posts.

Subscribe to receive weekly articles

Your data is handled by Buttondown.