Linux Shell
Tarih: 2026-06-09 | Kategori: Linux
Etiketler: Linux
The Linux shell is a unique program that acts as a bridge between the user and the services of the operating system. It takes commands entered in a human-readable format, such as text typed on a keyboard or stored in a file, and translates them into a form that the operating system's kernel can process. The shell functions essentially as a command-language interpreter, executing these instructions. It becomes active automatically when users log into their accounts or start a terminal session.
In Linux, there are two main types of shells: Command Line and Graphical Interface.
Command Line
The command-line shell is accessible to users through a text-based interface. Users can enter commands into a specific application known in Linux as the Terminal. Commands like `cat`, `ls`, and others are written into this interface, processed, and executed. The results of these commands are displayed directly in the terminal window. A terminal on Linux looks like this:
kadir@ubuntu:~/projects$ ls -l
total 36
drwxr-xr-x 2 kadir kadir 4096 May 15 10:15 Documents
drwxr-xr-x 2 kadir kadir 4096 May 15 10:20 Downloads
-rwxr-xr-x 1 kadir kadir 150 May 15 10:35 backup.sh
-rw-r--r-- 1 kadir kadir 891 May 15 10:30 config.yaml
-rw-r--r-- 1 kadir kadir 0 May 15 10:40 test_log.txt
In the given screenshot, the `ls` command is executed with the `-l` option. This command lists all files in the current directory in a long format. Using the command line can be challenging at first because remembering commands might be difficult. However, its power lies in its flexibility and strength; users can compile scripts and execute them simultaneously, making it easy to automate repetitive tasks. In the Linux context, these scripts are often referred to as shell scripts.
Graphical Interface
The graphical interface offers a user-friendly way to interact with programs. It allows users to perform actions like opening, closing, moving, and resizing windows without needing to type commands. Operating systems like Windows or Ubuntu provide a graphical interface to simplify user interaction with the system.
Types of Linux Shells
Linux operating systems offer various shells, each with unique features and command syntax:
While all these shells perform the basic task of command interpretation, they vary in the specific commands they support, built-in functionalities, and scripting capabilities, allowing users to choose the shell that best fits their preferences and needs.
What is a Terminal?
The terminal application serves as a gateway for users to interact with the shell, providing a text-based interface where commands can be entered and their outputs viewed. It is a critical tool for executing commands directly and is also used to run larger scripts designed to automate and perform repetitive and complex tasks.
To open the terminal, you can usually find it by typing 'terminal' into the search box in the graphical interface and launching it by double-clicking the result.