{"id":13316,"date":"2023-07-04T02:41:26","date_gmt":"2023-07-04T02:41:26","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=13316"},"modified":"2024-01-02T15:15:56","modified_gmt":"2024-01-02T15:15:56","slug":"what-is-scripting","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/","title":{"rendered":"What is Bash Scripting? [A Quick Overview]"},"content":{"rendered":"<p style=\"text-align: justify;\">A<strong> bash script<\/strong> is a text file containing a series of commands. Thus, bash scripting is the process of <strong>creating and running scripts<\/strong> using the <strong>Bourne Again Shell (Bash)<\/strong> programming language. All of those commands can be included in a Bash script file that you can run from the terminal. Additionally, <strong>Bash scripts<\/strong> support functions, input\/output redirection, error handling, and more, making them versatile for various scripting needs.<\/p>\n<p style=\"text-align: justify;\">To summarize, <strong>Bash scripting<\/strong> often for system administration, software installation and configuration, data processing, log parsing, backup and restore operations, and automation of repetitive tasks. In simple words, bash scripts provide a convenient way to<strong> combine<\/strong> <strong>and execute commands<\/strong>, enabling users to streamline workflows and customize their computing environments.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#How_to_Identify_a_Bash_Script\" >How to Identify a Bash Script?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#Bash_vs_Bash_Scripting\" >Bash vs. Bash Scripting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#How_Bash_Scripting_Works\" >How Bash Scripting Works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#People_Also_Ask\" >People Also Ask<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#What_is_Bash_script_in_Linux\" >What is Bash script in Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#What_is_Bash_script_Used_for\" >What is Bash script Used for?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#Is_Bash_Scripting_the_same_as_Python\" >Is Bash Scripting the same as Python?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#What_is_Bash_Scripting_in_windows\" >What is Bash Scripting in windows?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#Is_Bash_Scripting_hard\" >Is Bash Scripting hard?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Identify_a_Bash_Script\"><\/span>How to Identify a Bash Script?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">You can easily identify a Bash script by looking for a few key characteristics:<\/p>\n<div class=\"su-list\" style=\"margin-left:8px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>File Extension:<\/strong> Generally Bash scripts have a \u201c<strong>.sh<\/strong>\u201d <strong>file extension<\/strong>, although it is not strictly required.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Shebang line:<\/strong> The first line of a Bash script usually starts with a <strong>shebang<\/strong> (\u201c<strong>#!<\/strong>\u201d) followed by the path to the Bash interpreter. For example, \u201c<strong>#!\/bin\/bash<\/strong>\u201d indicates that the script should be executed using the<strong> Bash interpreter<\/strong>.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Script contents:<\/strong> The contents of the file will contain<strong> commands<\/strong> and<strong> instructions<\/strong> written in the Bash scripting language. Bash executes these commands sequentially when you run the script.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Execution permissions:<\/strong> To be able to execute a Bash script, the file must have the execution permissions set. You can check the file permissions using the \u201c<strong>ls -l<\/strong>\u201d command, and if the script lacks execution permissions, you can use the \u201c<strong>chmod +x scriptname.sh<\/strong>\u201d command to grant them. Moreover, the executable bash scripts appear in a different color than other files.<\/li>\n<\/ul>\n<\/div>\n<p>By examining these characteristics, you can easily <strong>identify a Bash script<\/strong>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Bash_vs_Bash_Scripting\"><\/span>Bash vs. Bash Scripting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\"><strong>Bash<\/strong> is a <strong>command language<\/strong> and <a href=\"https:\/\/linuxsimply.com\/what-is-a-shell-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>Unix shell<\/strong><\/a>, widely used in Linux and Unix-based operating systems. It provides a<strong> command-line interface<\/strong> for interacting with the operating system, running programs, and manipulating files and directories. Bash has a number of features, including the ability to edit commands in the command line, manage jobs, run shell scripts, and more. For running commands, controlling processes, and navigating the file system, it functions as a<strong> strong interactive shell<\/strong>.<\/p>\n<p style=\"text-align: justify;\">On the other hand, <strong>Bash scripting <\/strong>is writing and running scripts using the Bash shell. It involves creating scripts in the Bash programming language, a scripting language that enhances the Bash shell&#8217;s functionality. By writing a<strong> series of commands<\/strong>, <strong>statements<\/strong>, and<strong> control structures<\/strong> in a<strong> Bash script<\/strong>, users can automate tasks, carry out system administration tasks, and create complex programs.<\/p>\n<p style=\"text-align: justify;\">In summary, <strong>Bash <\/strong>is the <strong>shell program<\/strong> itself, offering interactive shell functionality and a command-line interface. Contrarily,<strong> bash scripting<\/strong> is the practice of <strong>creating programs <\/strong>and <strong>automating tasks<\/strong> using scripts written specifically in the Bash programming language. So,<strong> Bash scripting<\/strong> is a subset of the larger <strong>Bash<\/strong> <strong>environment<\/strong>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_Bash_Scripting_Works\"><\/span>How Bash Scripting Works<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">All programming languages work in a similar way. A program is a<strong> blob of binary data<\/strong> typically stored on your hard drive and consists of a set of instructions for the CPU and additional resources. When you run a program, it is compiled and turned into<strong> machine code <\/strong>that the computer can understand and execute.<\/p>\n<p style=\"text-align: justify;\">In the case of<strong> Bash scripting<\/strong>, scripts written on Bash are executed by the<strong> Bash interpreter<\/strong>, which reads and interprets the commands in the script, line by line. Each line can contain a command or a series of commands that are executed sequentially by the bash interpreter, much like a program.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Bash scripting is an effective tool for <strong>managing systems<\/strong>, <strong>automating processes<\/strong>, and <strong>developing unique solutions<\/strong>. It enables users to take advantage of the operating system&#8217;s features and efficiently interact with the command-line interface. Users can increase their productivity, <strong>automate repetitive duties<\/strong>, and fully <strong>utilise the command-line interface<\/strong> in Unix-like systems by becoming proficient in<strong> Bash scripting<\/strong>. Furthermore, learning <strong>bash scripting<\/strong> makes it possible to design unique solutions, streamline processes and effectively manage systems.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"People_Also_Ask\"><\/span>People Also Ask<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"What_is_Bash_script_in_Linux\"><\/span>What is Bash script in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">A Bash script is a file containing a series of commands written in the Bash language. These scripts can be executed by the Bash shell to automate tasks, perform system administration, and more. To create a Bash script, you can use a text editor to write a series of Bash commands, save the file with a <strong>.sh<\/strong> extension, and make it executable using the <code class=\"\" data-line=\"\">chmod<\/code> command.<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"What_is_Bash_script_Used_for\"><\/span>What is Bash script Used for?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">A bash script is used to perform a series of tasks. For example, <strong>navigating to a particular directory<\/strong>, <strong>creating new folders or directories<\/strong>, <strong>launching processes and automating tasks<\/strong>.<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Is_Bash_Scripting_the_same_as_Python\"><\/span>Is Bash Scripting the same as Python?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\"><strong>No<\/strong>. Bash is a <strong>shell scripting language<\/strong>, used in Unix-like operating systems. On the other hand, python is a <strong>general-purpose language <\/strong>that you can use in a wide range of applications. Bash has limited syntax compared to Python.<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"What_is_Bash_Scripting_in_windows\"><\/span>What is Bash Scripting in windows?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Bash is a<strong> command line environment<\/strong> through which the users can interact with an operating system. It is the<strong> default shell<\/strong> for many <strong>unix-like operating systems<\/strong> such as <strong>Linux<\/strong> and <strong>MacOS<\/strong>. Similarly, Windows has<strong> Powershell <\/strong>by default, which you can use for<strong> management<\/strong> and <strong>scripting language<\/strong>.<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Is_Bash_Scripting_hard\"><\/span>Is Bash Scripting hard?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">No, Bash Scripting is really <strong>easy<\/strong>, as it has a relatively <strong>simple<\/strong> and <strong>straightforward syntax<\/strong> and uses <strong>simple constructs<\/strong> like variables, loops, conditionals, and command execution. Also, If you are already familiar with using the Bash shell interactively, you may find it easier to transition to <strong>Bash scripting<\/strong>.<\/p>\n<p><span style=\"font-size: 18pt; color: #003366;\"><strong>Related Articles<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/is-bash-a-programming-language\/\" target=\"_blank\" rel=\"noopener\">Is Bash a Programming Language? [Quick Analysis]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/features-of-bash\/\" target=\"_blank\" rel=\"noopener\">Features of Bash [A Comprehensive Review]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/bash-vs-zsh\/\" target=\"_blank\" rel=\"noopener\">Bash vs Zsh [The Ultimate Comparison]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/bash-vs-powershell\/\" target=\"_blank\" rel=\"noopener\">Bash vs PowerShell [Quick Comparison Guide]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<p><strong>&lt;&lt; Go Back to <a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/\" target=\"_blank\" rel=\"noopener\">Introduction to Bash Scripting<\/a> | <a href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/\" target=\"_blank\" rel=\"noopener\">Bash Scripting Tutorial<\/a><\/strong><br \/>\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"What is Bash script in Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"A Bash script is a file containing a series of commands written in the Bash language. These scripts can be executed by the Bash shell to automate tasks, perform system administration, and more. To create a Bash script, you can use a text editor to write a series of Bash commands, save the file with a .sh extension, and make it executable using the chmod command.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is Bash script Used for?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"A bash script is used to perform a series of tasks. For example, navigating to a particular directory, creating new folders or directories, launching processes and automating tasks.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Is Bash Scripting the same as Python?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"No. Bash is a shell scripting language, used in Unix-like operating systems. On the other hand, python is a general-purpose language that you can use in a wide range of applications. Bash has limited syntax compared to Python.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is Bash Scripting in windows?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Bash is a command line environment through which the users can interact with an operating system. It is the default shell for many unix-like operating systems such as Linux and MacOS. Similarly, Windows has Powershell by default, which you can use for management and scripting language.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Is Bash Script hard?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"No,  Scripting is really easy, as it has a relatively simple and straightforward syntax and uses simple constructs like variables, loops, conditionals, and command execution. Also, If you are already familiar with using the Bash shell interactively, you may find it easier to transition to Bash scripting.\"\n    }\n  }]\n}\n<\/script><\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;13316&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;4&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (4 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;What is Bash Scripting? [A Quick Overview]&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (4 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>A bash script is a text file containing a series of commands. Thus, bash scripting is the process of creating &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"What is Bash Scripting? [A Quick Overview]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#more-13316\" aria-label=\"Read more about What is Bash Scripting? [A Quick Overview]\">Read more<\/a><\/p>\n","protected":false},"author":314902,"featured_media":13328,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[124],"class_list":["post-13316","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-scripting","tag-introduction-to-bash","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Bash Scripting? [A Quick Overview] - LinuxSimply<\/title>\n<meta name=\"description\" content=\"In this article, you can get a clear idea of what is Bash scripting and how to identify them and how they work.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Bash Scripting? [A Quick Overview] - LinuxSimply\" \/>\n<meta property=\"og:description\" content=\"In this article, you can get a clear idea of what is Bash scripting and how to identify them and how they work.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/samayra.simi?mibextid=LQQJ4d\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-04T02:41:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-02T15:15:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/06\/1.-What-is-Bash-scripting.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lamisa Musharrat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lamisa Musharrat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/\"},\"author\":{\"name\":\"Lamisa Musharrat\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/6c8ce99861d6ee19a49c62dfad934181\"},\"headline\":\"What is Bash Scripting? [A Quick Overview]\",\"datePublished\":\"2023-07-04T02:41:26+00:00\",\"dateModified\":\"2024-01-02T15:15:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/\"},\"wordCount\":976,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/1.-What-is-Bash-scripting.png\",\"keywords\":[\"introduction to bash\"],\"articleSection\":[\"Bash Scripting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/\",\"name\":\"What is Bash Scripting? [A Quick Overview] - LinuxSimply\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/1.-What-is-Bash-scripting.png\",\"datePublished\":\"2023-07-04T02:41:26+00:00\",\"dateModified\":\"2024-01-02T15:15:56+00:00\",\"description\":\"In this article, you can get a clear idea of what is Bash scripting and how to identify them and how they work.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/1.-What-is-Bash-scripting.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/1.-What-is-Bash-scripting.png\",\"width\":400,\"height\":400,\"caption\":\"What is bash scripting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/what-is-bash-scripting\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bash Scripting Tutorial\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Introduction to Bash Scripting\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/introduction\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"What is Bash Scripting? [A Quick Overview]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/6c8ce99861d6ee19a49c62dfad934181\",\"name\":\"Lamisa Musharrat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Lamisa-Musharrat-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Lamisa-Musharrat-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Lamisa-Musharrat-II-96x96.png\",\"caption\":\"Lamisa Musharrat\"},\"description\":\"Hello there. My name is Lamisa Musharat, and I'm an Linux Content Developer Executive at SOFTEKO. I earned a bachelor's degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology (BUET).I learned Linux out of my curiosity and now I find it useful as automation is easier using Linux. I take great pleasure in assisting others with Linux-related issues. I really want you to enjoy and benefit from my efforts.Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/samayra.simi?mibextid=LQQJ4d\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/lamisa-musharrat-ba1631250\\\/\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/siimi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Bash Scripting? [A Quick Overview] - LinuxSimply","description":"In this article, you can get a clear idea of what is Bash scripting and how to identify them and how they work.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/","og_locale":"en_US","og_type":"article","og_title":"What is Bash Scripting? [A Quick Overview] - LinuxSimply","og_description":"In this article, you can get a clear idea of what is Bash scripting and how to identify them and how they work.","og_url":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/samayra.simi?mibextid=LQQJ4d","article_published_time":"2023-07-04T02:41:26+00:00","article_modified_time":"2024-01-02T15:15:56+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/06\/1.-What-is-Bash-scripting.png","type":"image\/png"}],"author":"Lamisa Musharrat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lamisa Musharrat","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/"},"author":{"name":"Lamisa Musharrat","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/6c8ce99861d6ee19a49c62dfad934181"},"headline":"What is Bash Scripting? [A Quick Overview]","datePublished":"2023-07-04T02:41:26+00:00","dateModified":"2024-01-02T15:15:56+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/"},"wordCount":976,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/06\/1.-What-is-Bash-scripting.png","keywords":["introduction to bash"],"articleSection":["Bash Scripting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/","url":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/","name":"What is Bash Scripting? [A Quick Overview] - LinuxSimply","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/06\/1.-What-is-Bash-scripting.png","datePublished":"2023-07-04T02:41:26+00:00","dateModified":"2024-01-02T15:15:56+00:00","description":"In this article, you can get a clear idea of what is Bash scripting and how to identify them and how they work.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/06\/1.-What-is-Bash-scripting.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/06\/1.-What-is-Bash-scripting.png","width":400,"height":400,"caption":"What is bash scripting"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/what-is-bash-scripting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"Bash Scripting Tutorial","item":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/"},{"@type":"ListItem","position":3,"name":"Introduction to Bash Scripting","item":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/introduction\/"},{"@type":"ListItem","position":4,"name":"What is Bash Scripting? [A Quick Overview]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/6c8ce99861d6ee19a49c62dfad934181","name":"Lamisa Musharrat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Lamisa-Musharrat-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Lamisa-Musharrat-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Lamisa-Musharrat-II-96x96.png","caption":"Lamisa Musharrat"},"description":"Hello there. My name is Lamisa Musharat, and I'm an Linux Content Developer Executive at SOFTEKO. I earned a bachelor's degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology (BUET).I learned Linux out of my curiosity and now I find it useful as automation is easier using Linux. I take great pleasure in assisting others with Linux-related issues. I really want you to enjoy and benefit from my efforts.Read Full Bio","sameAs":["https:\/\/www.facebook.com\/samayra.simi?mibextid=LQQJ4d","https:\/\/www.linkedin.com\/in\/lamisa-musharrat-ba1631250\/"],"url":"https:\/\/linuxsimply.com\/author\/siimi\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/13316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314902"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=13316"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/13316\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/13328"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=13316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=13316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=13316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}