top of page

Internal and External commands

  • Writer: Siddharth Sharma
    Siddharth Sharma
  • Sep 24, 2025
  • 6 min read

DOS में दो तरह के commands होते हैं: Internal Commands और External Commands। Internal commands वो होते हैं जो कंप्यूटर के start होते ही COMMAND.COM file में load हो जाते हैं। ये हमेशा memory में रहते हैं और बहुत तेज़ी से काम करते हैं। इसके opposite, External commands अलग-अलग files (.EXE, .COM) में store होते हैं और ज़रूरत पड़ने पर disk से load होते हैं। अगर वो file नहीं मिली, तो error आता है।


Internal Commands (आंतरिक कमांड)

Internal commands को run करने के लिए अलग से कोई file की जरूरत नहीं होती क्योंकि वे पहले से ही RAM में मौजूद होते हैं। ये कमांड्स DOS के basic operations के लिए इस्तेमाल होते हैं।

  • DIR (Directory): किसी folder में मौजूद files और folders की list देखने के लिए।

Example: C:\>DIR


  • CLS (Clear Screen): DOS की screen को साफ करने के लिए। (स्क्रीन पर लिखी हुई सारी जानकारी हटाने के लिए)

Example: C:\>CLS


  • CD (Change Directory): एक directory से दूसरी directory में जाने के लिए। (एक फोल्डर से दूसरे फोल्डर में जाने के लिए)

Example: C:\>CD <directory_name> Example: C:\Users\>CD.. (पिछली directory में वापस जाने के लिए)


  • MD (Make Directory): एक नया directory या folder बनाने के लिए।

Example: C:\>MD <new_folder_name>


  • RD (Remove Directory): किसी खाली directory को delete करने के लिए। (याद रखें, सिर्फ खाली फोल्डर ही delete होते हैं)

Example: C:\>RD <folder_name>


  • COPY: एक या एक से ज़्यादा files को एक जगह से दूसरी जगह copy करने के लिए।

Example: C:\>COPY file1.txt D:\


  • DEL (Delete): किसी file को delete करने के लिए।

Example: C:\>DEL <file_name>


  • REN (Rename): किसी file या directory का नाम बदलने के लिए।

Example: C:\>REN old_name.txt new_name.txt


  • TYPE: किसी text file के अंदर क्या लिखा है, ये देखने के लिए।

Example: C:\>TYPE readme.txt


  • DATE: System की current date देखने या बदलने के लिए।

Example: C:\>DATE


  • TIME: System का current time देखने या बदलने के लिए।

Example: C:\>TIME


  • VER (Version): DOS का version number देखने के लिए।

Example: C:\>VER


  • VOL (Volume): Disk का volume label और serial number देखने के लिए।

Example: C:\>VOL


External Commands (बाहरी कमांड)

External commands को run करने के लिए उनकी executable file (.exe, .com, .bat) hard disk पर होनी चाहिए। ये commands complex tasks के लिए use होते हैं।

  • CHKDSK: Disk में errors check करने और file system की report दिखाने के लिए।

Example: C:\>CHKDSK


  • FORMAT: किसी disk को format करके उसे useable बनाने के लिए।

Example: C:\>FORMAT A:


  • TREE: Directory structure को tree-like format में दिखाने के लिए।

Example: C:\>TREE


  • EDIT: Text files को create या edit करने के लिए एक text editor open करता है।

Example: C:\>EDIT


DOS में External Commands वो commands हैं जो COMMAND.COM का हिस्सा नहीं होते। ये commands अलग-अलग files (.EXE, .COM, .BAT) के रूप में disk पर store होते हैं। जब आप इन्हें run करते हैं, तो DOS उस specific file को ढूँढ़कर memory में load करता है और फिर execute करता है। अगर वो file नहीं मिली, तो "Bad command or file name" error आता है।

Here is an explanation of the external commands you listed, in a mix of Hindi and English.


External Commands (बाहरी कमांड)

  • CHKDSK (Check Disk):

    • Explanation: यह command disk में errors को check करता है, जैसे corrupted files या sectors, और file system की status बताता है। यह disk पर free space और total space भी दिखाता है।

    • Hindi: यह डिस्क में गलतियों को जाँचता है।

    • Example: CHKDSK C:


  • XCOPY (Extended Copy):

    • Explanation: यह command advanced file copying के लिए use होता है। यह सिर्फ files ही नहीं बल्कि directories और subdirectories को भी उनकी structure के साथ copy कर सकता है। COPY command से ज़्यादा powerful है।

    • Hindi: यह फ़ाइलों और फ़ोल्डरों को उनके पूरे structure के साथ copy करता है।

    • Example: XCOPY C:\old_data E:\new_data /S (/S switch subdirectories को भी copy करता है)


  • PRINT:

    • Explanation: यह command text files को background में print करने के लिए use होता है, ताकि आप printing के दौरान भी DOS पर दूसरे काम कर सकें।

    • Hindi: यह text फ़ाइलों को background में प्रिंट करने के लिए इस्तेमाल होता है।

    • Example: PRINT document.txt


  • DISKCOPY:

    • Explanation: यह command एक floppy disk की exact copy दूसरे floppy disk पर बनाता है। यह disk की हर चीज़, including hidden files और bad sectors, को भी copy करता है।

    • Hindi: यह एक floppy डिस्क की exact copy दूसरे पर बनाता है।

    • Example: DISKCOPY A: B:


  • DISKCOMP (Disk Compare):

    • Explanation: यह command दो floppy disks के content को compare करता है और बताता है कि वे identical हैं या नहीं।

    • Hindi: यह दो floppy डिस्क की तुलना करता है।

    • Example: DISKCOMP A: B:


  • DOSKEY:

    • Explanation: यह command keyboard macros और command history को recall करने के लिए use होता है। यह arrow keys से previously-typed commands को access करने की सुविधा देता है।

    • Hindi: यह पहले से टाइप किए गए commands को याद रखता है और उन्हें फिर से इस्तेमाल करने में मदद करता है।

    • Example: DOSKEY /HISTORY


  • TREE:

    • Explanation: यह command directory के structure को graphical format में दिखाता है, जैसे एक पेड़ की शाखाएँ।

    • Hindi: यह फोल्डरों की structure को पेड़ की तरह दिखाता है।

    • Example: TREE C:\


  • MOVE:

    • Explanation: यह command files और directories को एक location से दूसरी location पर move करने के लिए use होता है। यह renaming का काम भी करता है।

    • Hindi: यह फ़ाइलों और फोल्डरों को एक जगह से दूसरी जगह ले जाता है।

    • Example: MOVE C:\data\file1.txt C:\archives\


  • LABEL:

    • Explanation: यह command किसी disk drive (जैसे C: या D:) का volume label (नाम) बनाने, बदलने या delete करने के लिए use होता है।

    • Hindi: यह डिस्क का नाम बदलने के लिए इस्तेमाल होता है।

    • Example: LABEL C: MyDataDisk


  • APPEND:

    • Explanation: यह command DOS को उन directories में non-executable files को search करने की अनुमति देता है जो current directory में नहीं हैं। यह PATH command की तरह काम करता है, लेकिन data files के लिए।

    • Hindi: यह DOS को दूसरी directories में non-executable फ़ाइलें खोजने में मदद करता है।

    • Example: APPEND C:\docs


  • FORMAT:

    • Explanation: यह command किसी disk को useable बनाने के लिए format करता है। Formatting से disk पर मौजूद सारी data delete हो जाती है।

    • Hindi: यह डिस्क को नए सिरे से तैयार करता है और उस पर से सारा डेटा मिटा देता है।

    • Example: FORMAT A:


  • SORT:

    • Explanation: यह command text input को alphabetically या numerically sort करता है। इसे अक्सर दूसरे commands के साथ pipes (|) का use करके इस्तेमाल किया जाता है।

    • Hindi: यह text को alphabet के हिसाब से क्रम में लगाता है।

    • Example: DIR | SORT


  • FDISK (Fixed Disk):

    • Explanation: यह command hard disk पर partitions create, delete, या modify करने के लिए use होता है। Hard disk को use करने से पहले partition करना ज़रूरी है।

    • Hindi: यह हार्ड डिस्क के partitions बनाने, हटाने या बदलने के लिए है।

    • Example: FDISK


  • BACKUP:

    • Explanation: यह command hard disk से floppy disks पर files का backup लेने के लिए use होता था। (अब यह command modern DOS versions में deprecated है)।

    • Hindi: यह फ़ाइलों का backup लेने के लिए इस्तेमाल होता था।

    • Example: BACKUP C:\*.* A:


  • EDIT:

    • Explanation: यह DOS का simple text editor है, जो text files create या modify करने के लिए use होता है।

    • Hindi: यह text फ़ाइलों को बनाने या एडिट करने के लिए एक editor है।

    • Example: EDIT new_file.txt


  • MODE:

    • Explanation: यह command system devices जैसे printer, display, या serial port को configure करने के लिए use होता है।

    • Hindi: यह कंप्यूटर के डिवाइस जैसे प्रिंटर या स्क्रीन को सेट करने के लिए है।

    • Example: MODE CO80 (Screen को 80 columns पर सेट करता है)


  • ATTRIB (Attributes):

    • Explanation: यह command files के attributes (जैसे Read-only, Hidden, System, Archive) को देखने या बदलने के लिए use होता है।

    • Hindi: यह फ़ाइलों के properties (जैसे Read-only) को देखने और बदलने के लिए है।

    • Example: ATTRIB +H file1.txt (file1.txt को hidden बनाता है)


  • HELP:

    • Explanation: यह command DOS commands के बारे में जानकारी दिखाता है। किसी specific command के बारे में help देखने के लिए उसके बाद / और ? लगा सकते हैं।

    • Hindi: यह commands के बारे में जानकारी देता है।

    • Example: HELP DIR or DIR /?


  • SYS (System):

    • Explanation: यह command system files (जैसे IO.SYS और MSDOS.SYS) को एक disk से दूसरी disk पर copy करता है, ताकि वह disk bootable बन जाए।

    • Hindi: यह डिस्क को bootable बनाने के लिए सिस्टम फ़ाइलों को copy करता है।

    • Example: SYS A:

 


·        DOS Commands: Internal vs. External


Internal Commands

External Commands

Storage

Stored in the COMMAND.COM file.

Stored as separate files on the disk (.EXE, .COM, .BAT).

Availability

Available in memory at all times after booting.

Loaded into memory only when they are run.

Execution

Faster, as they're already in RAM.

Slower, as they require disk access to be loaded.

Example

DIR, CLS, CD, COPY, DEL, REN, TYPE, DATE, TIME

CHKDSK, FORMAT, XCOPY, DISKCOPY, FDISK, TREE, EDIT, MOVE, ATTRIB

Error

"Bad command or file name" error is not related to file availability.

"Bad command or file name" error occurs if the command file is not found.

 

 
 
 

Comments


bottom of page