[{"data":1,"prerenderedAt":175},["ShallowReactive",2],{"term-b\u002Fbash":3,"related-b\u002Fbash":161},{"id":4,"title":5,"acronym":6,"body":7,"category":142,"description":143,"difficulty":144,"extension":145,"letter":146,"meta":147,"navigation":102,"path":148,"related":149,"seo":155,"sitemap":156,"stem":159,"subcategory":6,"__hash__":160},"terms\u002Fterms\u002Fb\u002Fbash.md","Bash",null,{"type":8,"value":9,"toc":136},"minimark",[10,15,19,23,26,30,125,129,132],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Bash is the most common shell — the language your terminal speaks by default on most Linux and older Mac computers. When people talk about 'writing a shell script', they usually mean Bash. It is old, a bit ugly, but it runs everywhere and every developer should know the basics.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Bash (Bourne Again SHell) is a Unix shell and command language released in 1989 as a free replacement for the Bourne shell. It is the default login shell on most Linux distributions and was the default on macOS until Catalina (2019). Bash scripts automate tasks through variables, conditionals, loops, functions, and command substitution.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","#!\u002Fbin\u002Fbash\n# A simple bash script:\nNAME=\"World\"\necho \"Hello, $NAME!\"\n\n# Run with:\nbash hello.sh\n# or: chmod +x hello.sh && .\u002Fhello.sh\n","bash","",[38,39,40,49,55,76,97,104,110,119],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","#!\u002Fbin\u002Fbash\n",[41,50,52],{"class":43,"line":51},2,[41,53,54],{"class":47},"# A simple bash script:\n",[41,56,58,62,66,69,73],{"class":43,"line":57},3,[41,59,61],{"class":60},"sTEyZ","NAME",[41,63,65],{"class":64},"sMK4o","=",[41,67,68],{"class":64},"\"",[41,70,72],{"class":71},"sfazB","World",[41,74,75],{"class":64},"\"\n",[41,77,79,83,86,89,92,95],{"class":43,"line":78},4,[41,80,82],{"class":81},"s2Zo4","echo",[41,84,85],{"class":64}," \"",[41,87,88],{"class":71},"Hello, ",[41,90,91],{"class":60},"$NAME",[41,93,94],{"class":71},"!",[41,96,75],{"class":64},[41,98,100],{"class":43,"line":99},5,[41,101,103],{"emptyLinePlaceholder":102},true,"\n",[41,105,107],{"class":43,"line":106},6,[41,108,109],{"class":47},"# Run with:\n",[41,111,113,116],{"class":43,"line":112},7,[41,114,35],{"class":115},"sBMFI",[41,117,118],{"class":71}," hello.sh\n",[41,120,122],{"class":43,"line":121},8,[41,123,124],{"class":47},"# or: chmod +x hello.sh && .\u002Fhello.sh\n",[11,126,128],{"id":127},"when-youll-hear-this","When You'll Hear This",[16,130,131],{},"\"Write a Bash script to back up the database.\" \u002F \"Is this a Bash or Zsh environment?\"",[133,134,135],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":137},[138,139,140,141],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":127,"depth":51,"text":128},"general","Bash is the most common shell — the language your terminal speaks by default on most Linux and older Mac computers.","beginner","md","b",{},"\u002Fterms\u002Fb\u002Fbash",[150,151,152,153,154],"Zsh","Shell","Terminal","Script","CLI",{"title":5,"description":143},{"changefreq":157,"priority":158},"weekly",0.7,"terms\u002Fb\u002Fbash","ESlRVYUUdgBvFOh9BaTflXYj3GolciXzzF3ny1UdNOs",[162,166,169,172],{"title":154,"path":163,"acronym":164,"category":142,"difficulty":144,"description":165},"\u002Fterms\u002Fc\u002Fcli","Command Line Interface","CLI is just the fancy term for any tool you use by typing commands instead of clicking buttons.",{"title":153,"path":167,"acronym":6,"category":142,"difficulty":144,"description":168},"\u002Fterms\u002Fs\u002Fscript","A script is a file full of commands that run automatically one after another, so you do not have to type them all yourself.",{"title":151,"path":170,"acronym":6,"category":142,"difficulty":144,"description":171},"\u002Fterms\u002Fs\u002Fshell","The shell is the program that reads what you type in the terminal and makes things happen.",{"title":152,"path":173,"acronym":6,"category":142,"difficulty":144,"description":174},"\u002Fterms\u002Ft\u002Fterminal","The terminal is a black window where you talk to your computer using text commands instead of clicking buttons.",1776518259589]