{"id":13960,"date":"2023-08-02T07:26:38","date_gmt":"2023-08-02T07:26:38","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=13960"},"modified":"2024-01-16T10:37:07","modified_gmt":"2024-01-16T10:37:07","slug":"bash-the-hash","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/","title":{"rendered":"Bash the Hash! &#8211; a Symbolic Feature of Bash Comment"},"content":{"rendered":"<p style=\"text-align: justify;\">Hashing is the main piece of the solution in a Bash-coded puzzle. The <strong>hash (#)<\/strong> symbol put on the initial point of any line resembles an explanatory statement of any complicated program in Bash script. In this article, I will explain the term <strong>\u2018Bash the hash\u2019<\/strong> with its practical execution. Let\u2019s explore!<\/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' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#Key_Takeaways\" >Key Takeaways<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#What_is_Bash_Hashing\" >What is Bash Hashing?<\/a><\/li><\/ul><\/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\/comments\/bash-the-hash\/#Execution_of_Bash_Hashing\" >Execution of Bash Hashing<\/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\/comments\/bash-the-hash\/#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\/comments\/bash-the-hash\/#People_Also_Ask\" >People Also Ask<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Key_Takeaways\"><\/span>Key Takeaways<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>Learning what is hashing in Bash script.<\/li>\n<li>Getting ideas about the execution of Bash hashing.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"What_is_Bash_Hashing\"><\/span>What is Bash Hashing?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\"><strong>Bash hashing<\/strong> is the symbolic formula for marking out <strong><a href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/single-line\/\" target=\"_blank\" rel=\"noopener\">single-line comments<\/a> &amp; <a href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/multiple-line\/\" target=\"_blank\" rel=\"noopener\">multiple-line comments<\/a><\/strong> in Bash script. With some exceptions, putting a <strong>hash(#) symbol<\/strong> before any line is enough to call it a <a href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/\" target=\"_blank\" rel=\"noopener\"><strong>Bash comment<\/strong><\/a>. Apparently, it makes the compiler bound to skip the hashed line from the script execution. Thus, hashing turns a line into a <strong>non-executable code<\/strong>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Execution_of_Bash_Hashing\"><\/span>Execution of Bash Hashing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In the following section, you\u2019ll get a visual concept of what happens to a hashed line during any script execution. So, move on to the steps below:<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open your <strong>Ubuntu <\/strong>Terminal.<\/p>\n<p>\u278b To open a script in the <a href=\"https:\/\/linuxsimply.com\/nano-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>nano<\/strong><\/a> text editor, write the following command:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">nano hash.sh<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>nano<\/strong>: A text editor.<\/li>\n<li><strong>hash.sh<\/strong>: This is a script that you can name by any of your choices. Here, I have named the script by <strong>\u2018hash.sh\u2019<\/strong>.<\/li>\n<\/ul>\n<\/div><\/div><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-13962\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img1-opening-nano-text-editor-1.png\" alt=\"Opening the script in Nano text editor\" width=\"700\" height=\"182\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img1-opening-nano-text-editor-1.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img1-opening-nano-text-editor-1-300x78.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img1-opening-nano-text-editor-1-765x199.png 765w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/>\u278cThen, write the following script in the <strong>nano <\/strong>editor:<\/p>\n<p><span style=\"color: #800080;\"><strong>Script (hash.sh) &gt;<\/strong><\/span><\/p>\n<pre><code class=\"language-bash\" data-line=\"\">#!\/bin\/bash\n\n#echo &quot;This is a comment.&quot;\n\necho &quot;This is not a comment. So, it is printed.&quot;<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<p style=\"text-align: justify;\">Here<strong>, #! \/bin\/bash: \u2018#!\u2019<\/strong>, is called <strong>shebang<\/strong>. Now, <strong>#echo \u201cThis is a comment.\u201d <\/strong>indicates a comment as the line starts with a hash symbol. Lastly, <strong>echo \u201cThis is not a comment. So, it is printed.\u201d <\/strong>dictates a command that will be executed.<\/p>\n<p style=\"text-align: justify;\"><\/div><\/div><img decoding=\"async\" class=\"aligncenter size-full wp-image-13963\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img2-writing-inside-the-script.png\" alt=\"Writing inside the script 'hash.sh'\" width=\"825\" height=\"259\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img2-writing-inside-the-script.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img2-writing-inside-the-script-300x94.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img2-writing-inside-the-script-768x241.png 768w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>\u278d Then, press <strong>CTRL+S<\/strong> to save the file &amp; press <strong>CTRL+X <\/strong>to exit the <strong>nano <\/strong>editor &amp; back to the terminal.<\/p>\n<p>\u278e Afterward, use the following command to make the script <strong>executable<\/strong>:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">chmod u+x hash.sh<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><a href=\"https:\/\/linuxsimply.com\/chmod-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>chmod<\/strong><\/a><strong>: <\/strong>Changes the permission of the files and directories.<\/li>\n<li><strong>u+x: <\/strong>It\u2019s an argument that is used to add the executable permission for the user.<\/li>\n<li><strong>hash.sh: <\/strong>The file which you want to make executable. Here, I have used a file named <strong>\u2018hash.sh\u2019<\/strong>.<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><\/div><\/div><\/span><img decoding=\"async\" class=\"aligncenter size-full wp-image-13964\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img3-adding-executable-permission.png\" alt=\"Adding executable permission to the script\" width=\"825\" height=\"142\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img3-adding-executable-permission.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img3-adding-executable-permission-300x52.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img3-adding-executable-permission-767x132.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>\u278f Finally, run the <strong>script <\/strong>by the following command:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">.\/hash.sh<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13965\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img4-running-the-script.png\" alt=\"Running the script to see the output\" width=\"825\" height=\"183\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img4-running-the-script.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img4-running-the-script-300x67.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/img4-running-the-script-766x170.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>From the above image, you can see that when I ran the script \u2018<strong>hash.sh<\/strong>\u2019, it displayed only one line which was written inside the <a href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/input-output\/output\/echo-command\/\" target=\"_blank\" rel=\"noopener\"><strong>echo command<\/strong><\/a> &amp; there was no hash symbol before this line on the script. On the contrary, the line that started with a hash symbol did not execute as it refers only to a statement.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Bash hashing is nothing but a commenting-out feature of a Bash script. Though this is not executable, it participates in making the script more readable and accessible.<\/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<div class=\"su-accordion su-u-trim\">\n<p style=\"text-align: justify;\"><div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span><strong>Can I comment out any single-line in Bash without using the hash(#) symbol?<\/strong><\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\"><strong>No<\/strong>, to comment a single-line out, it is mandatory to use a hash(#) symbol at the beginning of a line in Bash script.<\/div><\/div>\n<p style=\"text-align: justify;\"><div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span><strong>Can I use the hash(#) symbol for any purpose other than commenting out in Bash?<\/strong><\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\"><strong>Yes,<\/strong> you can use the hash symbol for other purposes too. For example, when you use the hash symbol in a variable expansion like \u2018<strong>${#variable}<\/strong>\u2019, it indicates the length of the variable.<\/div><\/div>\n<p style=\"text-align: justify;\"><div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span><strong>Can the hash(#) symbol cause any unexpected issue in Bash scripting?<\/strong><\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">If the hash symbol within a string is not properly mentioned, then it may cause a syntax error.<\/div><\/div>\n<p style=\"text-align: justify;\"><div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span><strong>Is there any way to comment out in Bash ignoring the hash(#) symbol?<\/strong><\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\"><strong>Yes,<\/strong> you can apply <strong>multiple-line commenting<\/strong> in Bash scripting to avoid the hash symbol.<\/div><\/div>\n<\/div>\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\/comments\/art-of-commenting\/\" target=\"_blank\" rel=\"noopener\">The Art of Commenting in Bash<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/single-line\/\" target=\"_blank\" rel=\"noopener\">What Are Single-line Comments in Bash? [2 Cases With Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/multiple-line\/\" target=\"_blank\" rel=\"noopener\">Multiple Line Comments in Bash [With Shortcut Keys]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/block-comment\/\" target=\"_blank\" rel=\"noopener\">How to Use Block Comment in Bash? [2 Cases]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<p><strong>&lt;&lt; Go Back to <span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Bash Comments&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:1065857,&quot;3&quot;:{&quot;1&quot;:0},&quot;10&quot;:1,&quot;11&quot;:4,&quot;12&quot;:0,&quot;17&quot;:1,&quot;23&quot;:1}\" data-sheets-hyperlink=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/\"><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/\" target=\"_blank\" rel=\"noopener\">Bash Comments<\/a><\/span>\u00a0| <a href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/\" target=\"_blank\" rel=\"noopener\">Bash Scripting Tutorial<\/a><\/strong><\/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;13960&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;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&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;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Bash the Hash! - a Symbolic Feature of Bash Comment&quot;,&quot;width&quot;:&quot;0&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: 0px;\">\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            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hashing is the main piece of the solution in a Bash-coded puzzle. The hash (#) symbol put on the initial &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Bash the Hash! &#8211; a Symbolic Feature of Bash Comment\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#more-13960\" aria-label=\"Read more about Bash the Hash! &#8211; a Symbolic Feature of Bash Comment\">Read more<\/a><\/p>\n","protected":false},"author":314905,"featured_media":13961,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[126],"class_list":["post-13960","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-scripting","tag-bash-comments","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>Bash the Hash! - a Symbolic Feature of Bash Comment<\/title>\n<meta name=\"description\" content=\"Append the ultimate symbolic quotation, the hash (#) symbol to create comments and make the Bash script more viable.\" \/>\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\/comments\/bash-the-hash\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash the Hash! - a Symbolic Feature of Bash Comment\" \/>\n<meta property=\"og:description\" content=\"Append the ultimate symbolic quotation, the hash (#) symbol to create comments and make the Bash script more viable.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/nadiba.rahman?mibextid=ZbWKwL\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-02T07:26:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-16T10:37:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/Feature-image-Bash-the-hash-2.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=\"Nadiba Rahman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nadiba Rahman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 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\\\/comments\\\/bash-the-hash\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/\"},\"author\":{\"name\":\"Nadiba Rahman\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/69b717a03a5d9dc48e683aaffe22d33f\"},\"headline\":\"Bash the Hash! &#8211; a Symbolic Feature of Bash Comment\",\"datePublished\":\"2023-08-02T07:26:38+00:00\",\"dateModified\":\"2024-01-16T10:37:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/\"},\"wordCount\":711,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Feature-image-Bash-the-hash-2.png\",\"keywords\":[\"bash comments\"],\"articleSection\":[\"Bash Scripting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/\",\"name\":\"Bash the Hash! - a Symbolic Feature of Bash Comment\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Feature-image-Bash-the-hash-2.png\",\"datePublished\":\"2023-08-02T07:26:38+00:00\",\"dateModified\":\"2024-01-16T10:37:07+00:00\",\"description\":\"Append the ultimate symbolic quotation, the hash (#) symbol to create comments and make the Bash script more viable.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Feature-image-Bash-the-hash-2.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Feature-image-Bash-the-hash-2.png\",\"width\":400,\"height\":400,\"caption\":\"Feature image- Bash the hash\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/bash-the-hash\\\/#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\":\"Bash Comments\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/bash-scripting-tutorial\\\/comments\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Bash the Hash! &#8211; a Symbolic Feature of Bash Comment\"}]},{\"@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\\\/69b717a03a5d9dc48e683aaffe22d33f\",\"name\":\"Nadiba Rahman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Nadiba-Rahman-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Nadiba-Rahman-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Nadiba-Rahman-II-96x96.png\",\"caption\":\"Nadiba Rahman\"},\"description\":\"Hello, This is Nadiba Rahman, currently working as a Linux Content Developer Executive at SOFTEKO. I have completed my graduation with a bachelor\u2019s degree in Electronics &amp; Telecommunication Engineering from Rajshahi University of Engineering &amp; Technology (RUET).I am quite passionate about crafting. I really adore exploring and learning new things which always helps me to think transparently. And this curiosity led me to pursue knowledge about Linux. My goal is to portray Linux-based practical problems and share them with you. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/nadiba.rahman?mibextid=ZbWKwL\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/nadiba-rahman-443459171\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/nadiba\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bash the Hash! - a Symbolic Feature of Bash Comment","description":"Append the ultimate symbolic quotation, the hash (#) symbol to create comments and make the Bash script more viable.","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\/comments\/bash-the-hash\/","og_locale":"en_US","og_type":"article","og_title":"Bash the Hash! - a Symbolic Feature of Bash Comment","og_description":"Append the ultimate symbolic quotation, the hash (#) symbol to create comments and make the Bash script more viable.","og_url":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/nadiba.rahman?mibextid=ZbWKwL","article_published_time":"2023-08-02T07:26:38+00:00","article_modified_time":"2024-01-16T10:37:07+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/Feature-image-Bash-the-hash-2.png","type":"image\/png"}],"author":"Nadiba Rahman","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nadiba Rahman","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/"},"author":{"name":"Nadiba Rahman","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/69b717a03a5d9dc48e683aaffe22d33f"},"headline":"Bash the Hash! &#8211; a Symbolic Feature of Bash Comment","datePublished":"2023-08-02T07:26:38+00:00","dateModified":"2024-01-16T10:37:07+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/"},"wordCount":711,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/Feature-image-Bash-the-hash-2.png","keywords":["bash comments"],"articleSection":["Bash Scripting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/","url":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/","name":"Bash the Hash! - a Symbolic Feature of Bash Comment","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/Feature-image-Bash-the-hash-2.png","datePublished":"2023-08-02T07:26:38+00:00","dateModified":"2024-01-16T10:37:07+00:00","description":"Append the ultimate symbolic quotation, the hash (#) symbol to create comments and make the Bash script more viable.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/Feature-image-Bash-the-hash-2.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/07\/Feature-image-Bash-the-hash-2.png","width":400,"height":400,"caption":"Feature image- Bash the hash"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/bash-the-hash\/#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":"Bash Comments","item":"https:\/\/linuxsimply.com\/bash-scripting-tutorial\/comments\/"},{"@type":"ListItem","position":4,"name":"Bash the Hash! &#8211; a Symbolic Feature of Bash Comment"}]},{"@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\/69b717a03a5d9dc48e683aaffe22d33f","name":"Nadiba Rahman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Nadiba-Rahman-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Nadiba-Rahman-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Nadiba-Rahman-II-96x96.png","caption":"Nadiba Rahman"},"description":"Hello, This is Nadiba Rahman, currently working as a Linux Content Developer Executive at SOFTEKO. I have completed my graduation with a bachelor\u2019s degree in Electronics &amp; Telecommunication Engineering from Rajshahi University of Engineering &amp; Technology (RUET).I am quite passionate about crafting. I really adore exploring and learning new things which always helps me to think transparently. And this curiosity led me to pursue knowledge about Linux. My goal is to portray Linux-based practical problems and share them with you. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/nadiba.rahman?mibextid=ZbWKwL","https:\/\/www.linkedin.com\/in\/nadiba-rahman-443459171"],"url":"https:\/\/linuxsimply.com\/author\/nadiba\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/13960","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\/314905"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=13960"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/13960\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/13961"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=13960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=13960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=13960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}