[{"data":1,"prerenderedAt":182},["ShallowReactive",2],{"term-s\u002Fscript":3,"related-s\u002Fscript":167},{"id":4,"title":5,"acronym":6,"body":7,"category":147,"description":148,"difficulty":149,"extension":150,"letter":151,"meta":152,"navigation":153,"path":154,"related":155,"seo":161,"sitemap":162,"stem":165,"subcategory":6,"__hash__":166},"terms\u002Fterms\u002Fs\u002Fscript.md","Script",null,{"type":8,"value":9,"toc":141},"minimark",[10,15,19,23,26,30,130,134,137],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A script is a file full of commands that run automatically one after another, so you do not have to type them all yourself. It is like a recipe the computer follows. Instead of typing 10 commands every morning, you write a script and run it once.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A script is a program written in an interpreted language (Bash, Python, JavaScript, Ruby) that automates a sequence of tasks. Scripts do not need to be compiled — an interpreter executes them line by line. They are commonly used for build automation, deployment pipelines, data processing, and system administration.",[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# deploy.sh — a deployment script\nnpm run build\ngit add -A\ngit commit -m \"Deploy\"\ngit push origin main\necho \"Deployed successfully!\"\n","bash","",[38,39,40,49,55,69,81,102,116],"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},"# deploy.sh — a deployment script\n",[41,56,58,62,66],{"class":43,"line":57},3,[41,59,61],{"class":60},"sBMFI","npm",[41,63,65],{"class":64},"sfazB"," run",[41,67,68],{"class":64}," build\n",[41,70,72,75,78],{"class":43,"line":71},4,[41,73,74],{"class":60},"git",[41,76,77],{"class":64}," add",[41,79,80],{"class":64}," -A\n",[41,82,84,86,89,92,96,99],{"class":43,"line":83},5,[41,85,74],{"class":60},[41,87,88],{"class":64}," commit",[41,90,91],{"class":64}," -m",[41,93,95],{"class":94},"sMK4o"," \"",[41,97,98],{"class":64},"Deploy",[41,100,101],{"class":94},"\"\n",[41,103,105,107,110,113],{"class":43,"line":104},6,[41,106,74],{"class":60},[41,108,109],{"class":64}," push",[41,111,112],{"class":64}," origin",[41,114,115],{"class":64}," main\n",[41,117,119,123,125,128],{"class":43,"line":118},7,[41,120,122],{"class":121},"s2Zo4","echo",[41,124,95],{"class":94},[41,126,127],{"class":64},"Deployed successfully!",[41,129,101],{"class":94},[11,131,133],{"id":132},"when-youll-hear-this","When You'll Hear This",[16,135,136],{},"\"Write a script to clean up the old log files.\" \u002F \"The CI\u002FCD pipeline runs a build script on every push.\"",[138,139,140],"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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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":142},[143,144,145,146],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":132,"depth":51,"text":133},"general","A script is a file full of commands that run automatically one after another, so you do not have to type them all yourself.","beginner","md","s",{},true,"\u002Fterms\u002Fs\u002Fscript",[156,157,158,159,160],"Bash","Automation","CLI","Shell","Interpreter",{"title":5,"description":148},{"changefreq":163,"priority":164},"weekly",0.7,"terms\u002Fs\u002Fscript","irm3YMPrKgRtnKp5zhgVMfFAaRrf3d25wlnw_15Yq94",[168,171,175,179],{"title":156,"path":169,"acronym":6,"category":147,"difficulty":149,"description":170},"\u002Fterms\u002Fb\u002Fbash","Bash is the most common shell — the language your terminal speaks by default on most Linux and older Mac computers.",{"title":158,"path":172,"acronym":173,"category":147,"difficulty":149,"description":174},"\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":160,"path":176,"acronym":6,"category":147,"difficulty":177,"description":178},"\u002Fterms\u002Fi\u002Finterpreter","intermediate","An interpreter reads your code and runs it line by line in real time, like a live translator at a conference.",{"title":159,"path":180,"acronym":6,"category":147,"difficulty":149,"description":181},"\u002Fterms\u002Fs\u002Fshell","The shell is the program that reads what you type in the terminal and makes things happen.",1776518311194]