This article covers how to create and run a simple shell script in CentOS 8 system. With this, you can easily create and run even complex scripts and automate repetitive tasks. If you are using other Linux distributions, you can visit our posts on how to create and run a shell script in Ubuntu , Debian , and Linux Mint .An SH file is a script programmed for bash, a type of Unix shell (Bourne-Again SHell). It contains instructions written in the Bash language and can be executed by typing text commands within the shell's command-line interface.To write and execute a script:1. Open the terminal. Go to the directory where you want to create your script.2. Create a file with . sh extension.3. Write the script in the file using an editor.4. Make the script executable with command chmod +x .5. Run the script using ./.