← Back to Bash Course | Chapter 1: Setup & Basics | Lesson 1 of 12

Bash क्या है?

Bash एक chat window जैसा है जहां आप अपने computer को instructions type करते हैं और वह उन्हें तुरंत कर देता है। आप instructions की एक list एक file में भी save कर सकते हैं ताकि computer उन सभी को order में follow करे।

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?

bash
#!/bin/bash
echo "Hello, World!"
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. #}
आम गलतियां
  1. यह मान लेना कि Bash और sh एक जैसे हैं, जब [[ ]] या arrays जैसे Bash-only features उपयोग करने वाले scripts एक plain POSIX sh के under fail हो सकते हैं।
  2. Bash (shell program) को terminal window के साथ confuse करना, जो सिर्फ वह application है जो एक shell display करती है।
  3. यह सोचना कि Bash सिर्फ commands type करने के लिए है, जब यह variables, loops, और functions के साथ एक पूरी scripting language भी है।

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.