क्या आपने कभी सोचा है कि Command Prompt (काली स्क्रीन) पर सिर्फ टाइप करके computer से files बनवाना, directories manage करवाना या screen साफ करवाना कैसे संभव है? इसका जवाब है DOS Internal Commands।
ये वे commands हैं जो Command Prompt में हमेशा built-in रहती हैं और बिना किसी अलग program के तुरंत चल जाती हैं। भले ही आज हम Windows जैसे graphical operating systems इस्तेमाल करते हैं, फिर भी इन commands की जानकारी आज भी बहुत ज़रूरी है क्योंकि:
- आज का Windows Command Prompt (CMD) इन्हीं DOS Commands के concept पर आधारित है।
- Computer की basic working और file-management समझने के लिए यह एक बेहतरीन नींव (foundation) है।
इस article में हम DOS Internal Commands को category के हिसाब से — syntax, example, full form और exam-oriented notes के साथ — शुरू से आखिर तक आसान हिंदी में सीखेंगे।
DOS Internal Commands क्या हैं?
DOS Internal Commands वे commands हैं जो Command Interpreter में built-in रूप में पहले से मौजूद रहती हैं। इन्हें चलाने के लिए किसी अलग executable command file (.COM या .EXE) की आवश्यकता नहीं होती। DIR, CD, MD, RD, COPY CON, COPY, DEL, REN, TYPE और CLS इनके सबसे प्रमुख उदाहरण हैं।
आसान शब्दों में समझें तो जैसे आपके स्कूल बैग में पेंसिल और रबर हमेशा साथ रहते हैं, ठीक वैसे ही Internal Commands हमेशा Command Prompt के साथ "built-in" रहती हैं और शुरू होते ही तुरंत उपयोग के लिए तैयार होती हैं। इसके विपरीत External Commands को चलाने के लिए एक अलग file (जैसे FORMAT.COM) डिस्क पर मौजूद होनी चाहिए।
Note: इस article में सभी commands को Windows Operating System in Hindi के Command Prompt (cmd.exe) में run करने के हिसाब से समझाया गया है, न कि मूल/original MS-DOS के Command Interpreter (COMMAND.COM) के हिसाब से। दोनों environments में ज़्यादातर commands एक जैसी ही चलती हैं, लेकिन कुछ options या behavior में हल्का-सा अंतर हो सकता है।
👇Note: नीचे दी गई categories commands को समझने और याद रखने के उद्देश्य से बनाई गई हैं। यह DOS की कोई आधिकारिक classification नहीं है — यह केवल learning को आसान बनाने के लिए किया गया एक व्यवस्थित (organised) तरीका है।
1. File और Directory Management Commands
यह सबसे ज़्यादा इस्तेमाल होने वाली category है, क्योंकि इन्हीं commands की मदद से हम files और folders को देखना, बनाना, नाम बदलना और हटाना सीखते हैं। नीचे दी गई हर command को syntax और example के साथ समझें।
DIR Command
DIR command का काम है वर्तमान directory के अंदर मौजूद सभी files और subdirectories की list दिखाना — ठीक वैसे ही जैसे किसी अलमारी का दरवाज़ा खोलकर देखना कि अंदर क्या-क्या रखा है।
Syntax: DIR [drive:][path]
Example: DIR C:\ — यह C drive की सभी files और folders दिखा देगा।
Exam Point: DIR command files और directories की सूची दिखाने के लिए उपयोग होती है।
CD / CHDIR Command
CD यानी Change Directory का उपयोग एक directory से दूसरी directory में जाने के लिए किया जाता है।
Syntax: CD [directory name]
Example: CD STUDENT STUDENT नाम की directory में ले जाएगा, जबकि CD .. लिखने पर हम एक step पीछे यानी parent directory में वापस पहुँच जाते हैं।
Exam Point: CD command current working directory को बदलने के लिए उपयोग होती है।
MD / MKDIR Command
MD यानी Make Directory का उपयोग नया folder (directory) बनाने के लिए होता है।
Syntax: MD directory_name
Example: MD NOTES इस्तेमाल करने पर NOTES नाम की एक नई directory तैयार हो जाएगी।
Exam Point: MD और MKDIR दोनों एक ही command के दो नाम हैं, और दोनों नई directory बनाती हैं।
RD / RMDIR Command
RD यानी Remove Directory किसी खाली directory को हटाने के काम आती है।
Syntax: RD directory_name
Example: RD NOTES
Exam Point: RD केवल उन directories को हटा पाती है जो खाली हों। अंदर file या folder होने पर पहले उन्हें हटाना ज़रूरी है (Windows cmd.exe में RMDIR /S जैसे extra switches से भरी directory भी हटाई जा सकती है)।
COPY CON Command
COPY CON command का उपयोग Command Prompt के ज़रिए नई text file बनाने और उसमें मैटर (text) लिखने के लिए किया जाता है। यहाँ CON का मतलब Console (Keyboard और Screen) से है।
Syntax: COPY CON filename.txt
Example: COPY CON DEMO.TXT टाइप करके Enter दबाएँ, फिर अपना टेक्स्ट लिखें। फाइल को Save करने के लिए कीबोर्ड से Ctrl + Z या F6 दबाकर Enter दबाएँ।
Exam Point: DOS में बिना किसी editor के डायरेक्ट नई टेक्स्ट फाइल बनाने के लिए COPY CON कमांड का उपयोग होता है। फाइल सेव करने के लिए Ctrl + Z या F6 की (Key) का प्रयोग किया जाता है।
COPY Command
COPY command एक file की नकल (duplicate) बनाकर उसे किसी दूसरे location पर रख देती है, जबकि मूल file अपनी जगह पर बनी रहती है।
Syntax: COPY source destination
Example: COPY A.TXT D: A.TXT फाइल की copy D drive में बना देगा।
Exam Point: COPY से मूल file अपनी जगह बनी रहती है, केवल एक नई copy बनती है।
DEL / ERASE Command
DEL या ERASE command किसी file को delete करने के लिए उपयोग होती है।
Syntax: DEL filename
Example: DEL TEST.TXT
सावधानी: DOS/cmd.exe में सामान्यतः deleted files Recycle Bin में नहीं जातीं, इसलिए कोई भी file DEL करने से पहले दो बार सोचें।
REN / RENAME Command
REN command किसी मौजूदा file या directory का नाम बदलने के काम आती है।
Syntax: REN oldname newname
Example: REN OLD.TXT NEW.TXT
Exam Point: REN और RENAME दोनों एक ही काम करती हैं — नाम बदलना।
TYPE Command
TYPE command किसी text file की पूरी सामग्री को सीधे Command Prompt पर पढ़ने के लिए दिखा देती है, बिना किसी और software को खोले।
Syntax: TYPE filename
Example: TYPE NOTES.TXT
Exam Point: TYPE command बिना कोई software खोले सीधे text file पढ़ने के काम आती है।
2. System और Screen Information Commands
इस category की commands screen को साफ रखने और system से जुड़ी बुनियादी जानकारी (जैसे date, time, version) दिखाने के काम आती हैं।
CLS Command
CLS यानी Clear Screen स्क्रीन पर पहले से दिख रही सारी जानकारी को हटाकर स्क्रीन को खाली कर देती है, ताकि नए काम के लिए जगह बन सके।
Syntax व Example: CLS
Exam Point: CLS का full form Clear Screen है।
DATE Command
DATE command का उपयोग वर्तमान system date को देखने और बदलने (set करने) दोनों के लिए किया जाता है।
Syntax: DATE
Date देखने के लिए: केवल DATE टाइप करके Enter दबाएँ — current date screen पर दिख जाएगी।
Date बदलने के लिए: DATE टाइप करके Enter दबाने पर system नई date पूछता है; वहाँ MM-DD-YYYY (या system के format अनुसार) नई date टाइप करके Enter दबा दें, date update हो जाएगी।
Exam Point: DATE command system की current date देखने और set करने, दोनों के लिए उपयोग होती है।
TIME Command
TIME command का उपयोग भी DATE command जैसा ही है — यह system का current time दिखाने और बदलने (set करने) दोनों के लिए उपयोग होती है।
Syntax: TIME
Time देखने के लिए: केवल TIME टाइप करके Enter दबाएँ — current time screen पर दिख जाएगा।
Time बदलने के लिए: TIME टाइप करके Enter दबाने पर system नया time पूछता है; वहाँ HH:MM:SS format में नया time टाइप करके Enter दबा दें, time update हो जाएगा।
Exam Point: TIME command system की current time देखने और set करने, दोनों के लिए उपयोग होती है।
Note: DATE और TIME दोनों को बदलने के लिए Command Prompt को Administrator के रूप में (Run as Administrator) खोलना ज़रूरी है। बिना administrator rights के DATE और TIME command सिर्फ मौजूदा तारीख/समय दिखा सकती हैं, उन्हें बदल (set) नहीं सकतीं।
VER Command
VER यानी Version — यह command बताती है कि आपके सिस्टम में कौन-सा version चल रहा है।
Syntax व Example: VER
Exam Point: VER का full form Version है।
VOL Command
VOL command किसी drive का Volume Label और Serial Number जैसी जानकारी दिखाती है।
Syntax: VOL [drive:]
Example: VOL C:
Exam Point: VOL command disk की volume information दिखाती है।
3. Command Environment और Batch Commands
यह category उन commands को साथ रखती है जो command-line environment को सेट करती हैं और batch files में control-flow (क्रम) manage करने के काम आती हैं — दोनों मिलकर automation और customization को संभव बनाती हैं।
PATH Command
PATH command उन directories को तय करती है जहाँ system किसी program को ढूँढने की कोशिश करेगा, जब वह program current directory में न मिले।
Syntax: PATH [path]
Example: PATH C:\DOS;C:\TOOLS
Exam Point: PATH command program search path निर्धारित करने के लिए उपयोग होती है।
SET Command
SET command environment variables को बनाने, देखने और उनकी value तय करने के लिए उपयोग होती है।
Syntax: SET variable=value
Example: SET NAME=STUDENT
Exam Point: SET command environment variables से संबंधित है।
PROMPT Command
PROMPT command Command Prompt पर दिखने वाले संकेत (prompt) के रूप-रंग यानी format को बदलने के काम आती है।
Syntax: PROMPT [text]
Example: PROMPT $P$G
Exam Point: PROMPT command prompt के दिखने के तरीके को customise करती है।
ECHO Command
ECHO command स्क्रीन पर कोई संदेश (message) दिखाने के लिए, या batch file में commands के echo होने को on/off करने के लिए उपयोग होती है।
Syntax: ECHO message
Example: ECHO Welcome स्क्रीन पर "Welcome" शब्द दिखा देगा।
Exam Point: ECHO का उपयोग message display और batch file के echo-control दोनों के लिए होता है।
PAUSE Command
PAUSE command batch file के execution को कुछ देर के लिए रोक देती है और user के key press करने का इंतज़ार करती है।
Syntax व Example: PAUSE
Exam Point: PAUSE command batch file को temporarily रोकने के लिए उपयोग होती है।
IF Command
IF command किसी शर्त (condition) की जाँच करने के लिए उपयोग होती है, जैसे कोई file मौजूद है या नहीं।
Example: IF EXIST TEST.TXT ECHO File Found
Exam Point: IF command condition-based decision लेने के लिए उपयोग होती है।
FOR Command
FOR command किसी एक command को कई files या items पर बार-बार (repeat करके) चलाने के लिए उपयोग होती है।
Example: FOR %F IN (*.TXT) DO TYPE %F
Exam Point: FOR command repeated/looping processing के लिए उपयोग होती है।
GOTO Command
GOTO command batch file के execution को किसी निश्चित label पर सीधे भेज देती है, जिससे कुछ lines को बीच में छोड़ा भी जा सकता है।
Example: GOTO END
Exam Point: GOTO command control को किसी दूसरे label पर transfer करती है।
CALL Command
CALL command एक batch file के अंदर से दूसरी batch file को चलाने के लिए उपयोग होती है, और पहली batch file का execution भी उसके बाद जारी रहता है।
Example: CALL TEST.BAT
Exam Point: CALL command के बाद पहली batch file का execution भी जारी रहता है।
DOS Internal Commands की पूरी List
नीचे दी गई table में सभी DOS Internal Commands एक ही जगह उनके Full Form और मुख्य कार्य के साथ दी गई हैं — revision के लिए यह table सबसे उपयोगी है।
| Command | Full Form / Meaning | मुख्य कार्य |
|---|---|---|
| DIR | Directory | Files/Directories की list |
| CD | Change Directory | Directory बदलना |
| MD | Make Directory | Directory बनाना |
| RD | Remove Directory | Directory हटाना |
| COPY CON | Copy Console | नई File बनाना और लिखना |
| COPY | Copy | File की copy बनाना |
| DEL | Delete | File हटाना |
| REN | Rename | नाम बदलना |
| TYPE | Type | Text file देखना |
| CLS | Clear Screen | Screen साफ करना |
| DATE | Date | Date देखना/set करना |
| TIME | Time | Time देखना/set करना |
| VER | Version | DOS version देखना |
| VOL | Volume | Volume information देखना |
| PATH | Path | Search path निर्धारित करना |
| SET | Set | Environment variable सेट करना |
| PROMPT | Prompt | Prompt का format बदलना |
| ECHO | Echo | Message दिखाना / echo control |
| PAUSE | Pause | Execution रोकना |
| IF | If | Condition जाँचना |
| FOR | For | बार-बार काम दोहराना |
| GOTO | Go To | किसी label पर जाना |
| CALL | Call | दूसरी batch file चलाना |
Important DOS Commands Full Forms
ITI COPA जैसे exams में commands के full form सीधे पूछे जाते हैं। नीचे सबसे ज़्यादा पूछे जाने वाले full forms की सूची दी गई है:
- DIR → Directory
- CD → Change Directory
- MD → Make Directory
- RD → Remove Directory
- COPY CON → Copy Console
- DEL → Delete
- REN → Rename
- CLS → Clear Screen
- VER → Version
- VOL → Volume
Internal बनाम External Commands में अंतर
यह difference लगभग हर exam में पूछा जाता है, इसलिएइसे table के रूप में समझना सबसे आसान रहेगा।
| Internal Commands | External Commands |
|---|---|
| Command Processor के साथ पहले से मौजूद रहती हैं | अलग executable file (.COM/.EXE) के रूप में उपलब्ध होती हैं |
| चलाने के लिए किसी अलग program file की ज़रूरत नहीं | संबंधित file उपलब्ध होनी चाहिए, वरना command काम नहीं करेगी |
| शुरू होते ही उपयोग के लिए तैयार रहती हैं | ज़रूरत पड़ने पर संबंधित utility को अलग से चलाया जाता है |
| उदाहरण: DIR, CD, CLS, COPY, COPY CON | उदाहरण: FORMAT, CHKDSK, DISKCOPY |
Exam के लिए एक-लाइन याद रखने वाली Trick
- Internal = हमेशा साथ रहने वाली (Built-in) commands
- External = ज़रूरत पर अलग से इस्तेमाल होने वाली (Separate File) commands