Bash क्या है?
Bash एक chat window जैसा है जहां आप अपने computer को instructions type करते हैं और वह उन्हें तुरंत कर देता है। आप instructions की एक list एक file में भी save कर सकते हैं ताकि computer उन सभी को order में follow करे।
In this page:
Bash क्या है?
Bash (Bourne Again SHell) एक command-line interpreter और scripting language है जो ज़्यादातर Linux distributions पर, और हाल तक macOS पर भी, default shell के रूप में काम करता है।
यह आपको commands interactively run करने देता है और scripts लिखकर repetitive tasks automate करने देता है। Bash DevOps, system administration, automation pipelines, और server management के लिए central है -- essentially हर Linux server जिस पर आप कभी काम करेंगे Bash पर depend करता है।
Note:
भले ही आप कभी एक बड़ा Bash script न लिखें, Bash के साथ comfort essential है -- almost हर deployment pipeline, Docker container, और CI/CD system नीचे shell commands पर depend करता है।
उदाहरण: What is Bash?
#!/bin/bash
echo "Hello, World!"
Login to try C/C++/Java/PHP code in the editor
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the
view already swaps in the hi_ translation fields (or blanks these
out if untranslated), so this renders correctly for both languages
without a lang_code check here. #}
आम गलतियां
- यह मान लेना कि Bash और
shएक जैसे हैं, जब[[ ]]या arrays जैसे Bash-only features उपयोग करने वाले scripts एक plain POSIXshके under fail हो सकते हैं। - Bash (shell program) को terminal window के साथ confuse करना, जो सिर्फ वह application है जो एक shell display करती है।
- यह सोचना कि Bash सिर्फ commands type करने के लिए है, जब यह variables, loops, और functions के साथ एक पूरी scripting language भी है।
🔒
Chapter Quiz — Complete all 12 topics to unlock
0/12 topics done
Complete these topics first: