Bash is a scripting language compatible with shell commands. It can be executed either from the standard input or from a file. Bash Scripts are actually executable text files; these files can be edited with any text editor. These scripts are used to execute simple or complex commands.
Bash is a Unix commands interpreter originally written by Brian Fox from the GNU Free Software Foundation. Bash or Bourne Again (Bourne Again SHell): is the standard GNU console, intuitive and flexible. Recommended for beginner users, it is also a powerful tool at the fingertips of advanced or professional users. In Linux, Bash is the standard console for ordinary users. This console is also called the Bourne super console, as it contains many add-ons and modules. So the Bourne Again console is compatible with the Bourne console: commands that go into sh will also work in Bash. The reverse is not always true. The most appropriate image is that the console is a way of communicating with the system, a language.
Writing scripts in Bash requires a text editor. Examples: Gedit, Nano, MidnightCommander.
A Bash script must have the first line of code: #! /Bin/bash, because the operating system must be communicated with the command interpreter to be used.
Most users use another language, that of mouse clicks, developed for the desktop. But in this language the computer conducts the conversation, the user only having a passive role in which he can choose only the tasks that are offered to him. It’s hard for a programmer to include all options and all commands, with their capabilities, in a graphical interface. Therefore, graphical interfaces (GUI`s) are less capable than the command or controls that are included in the system’s backend.
Bash is a scripting language compatible with shell commands. It can be executed either from the standard input or from a file. Bash Scripts are actually executable text files, these files can be edited with any text editor. These scripts are used to execute simple or complex commands.
Some keyboard combinations allow you to do a few things easier on the GNU console, Bash, which comes in almost any Linux system.
Key or key combinations Function
1. Ctrl + A Moves the cursor to the beginning of a command line.
2. Ctrl + C Ends the program that runs and displays the prompt
3. Ctrl + D Close the current session, similar to typing exit or logout.
4. Ctrl + E Moves the cursor to the end of the command line.
5. Ctrl + H Deletes the current position (similar to Backspace).
6. Ctrl + L Erases everything displayed in the console.
7. Ctrl + R Search in order history.
8. Ctrl + Z Suspends a program.
9. Left Arrow and Right Arrow Move the cursor with a character to the left or right on the command line to insert characters elsewhere than the beginning or end of the line.
10. Arrow up or Arrow down Navigate through order history. Go to the line you want to overwrite, edit it if necessary, and press Enter
11. Shift + PageUp or shift + PageDown Navigate through the terminal (to see the text that “came out” from the screen).
12. Tab Completion of orders or filenames; when there are a lot of possibilities, the system warns you with an audio signal or video, if there are too many possibilities, it asks if you want to display them all.
13. Tab Displays the options for completing a command or a name for the file.