Introduction to Shells and scripts
- The Gnu/linux Shell is an interactive tool that provides users with the means to start programs, manage files on file systems, and manage processes running on Linux systems.
- At the heart of the shell is the command line prompt
- It's the interactive part of the shell.
- It allows you to enter a text command, which will then interpret the command and execute it in the kernel.
- The shell contains a set of built-in commands that can be used to perform operations such as copying files, moving files, renaming files, and displaying and terminating programs that are running on the system (PS: I've been using Ubuntu, Just updated to ubuntu16.04 a while ago, by looking at the Linux command line and Shell Scripting Encyclopedia This book learned that Ubuntu is a professional Linux distribution, not a core Linux distribution, Common commands like those used in Linux code are the shell's built-in commands.
- Shell script: Placing a shell command into a file as a program execution file
- Any command executed at the command line can be put into a shell script to execute as a set of commands
- The shell category
- Linux systems typically have several types of Linux shells
- Different shells have different characteristics, some of which are beneficial to the management process and more conducive to creating scripts
- The default shell for all Linux distributions is essentially the bash shell
- Bash Shell as an alternative to the standard UNIX Shell–bourne shell
- Developed by the GNU Project
- The name of the bash shell is the word game for this Bourne shell, called The Bourne again shell
- Several other shells
- Ash: simple, lightweight shell running in a kernel-constrained environment, but fully compatible with bash shell
- Korn: Programming shell compatible with Bourne Shell, but supports some advanced programming features such as associative arrays and floating-point operations
- TCSH: Introducing some elements of C into the shell of a shell script
- ZSH: Introducing Bash, TCSH, and Korn features, advanced shell with advanced programming features, shared history files, and a themed prompt
Linux can be divided into the following four parts:
1. Linux kernel
2. GNC Tool Components
3. Graphical Desktop Environment
4. Application software
we refer to the complete Linux System package as a release. (Put the above four parts together to build a Linux system)
Linux command Line – First knowledge of Linux shell