0% found this document useful (0 votes)
4 views

Annexure-I-DOS Command

The document provides a comprehensive list of DOS commands categorized into Basic Commands, File Management Commands, Disk & System Commands, Networking Commands, and Advanced Commands. Each command includes a brief description and an example of its usage. Users are advised to exercise caution with certain commands highlighted in red.

Uploaded by

Biswajit Datta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Annexure-I-DOS Command

The document provides a comprehensive list of DOS commands categorized into Basic Commands, File Management Commands, Disk & System Commands, Networking Commands, and Advanced Commands. Each command includes a brief description and an example of its usage. Users are advised to exercise caution with certain commands highlighted in red.

Uploaded by

Biswajit Datta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

GCMS

DOS (Disk Operating System) commands

Basic Commands:

1. dir – Lists files and directories in the current directory.

2. cd – Changes the directory (e.g., cd foldername).

3. cd.. – Moves to the previous directory.

4. md or mkdir – Creates a new directory (e.g., mkdir myfolder).

5. rd or rmdir – Removes an empty directory (e.g., rmdir myfolder).

6. del – Deletes a file (e.g., del file.txt).

7. copy – Copies files (e.g., copy file1.txt d:\backup).

8. move – Moves files (e.g., move file1.txt d:\backup).

9. rename or ren – Renames a file (e.g., rename old.txt new.txt).

10. cls – Clears the command prompt screen.

File Management Commands:

11. attrib – Displays or changes file attributes (e.g., attrib +r file.txt makes the file read-only).

12. type – Displays the contents of a text file (e.g., type file.txt).

13. find – Searches for a text string inside a file (e.g., find "word" file.txt).

14. tree – Displays directories in a tree-like structure.

Disk & System Commands:

Page 1 of 2
GCMS
DOS (Disk Operating System) commands

15. vol – Displays disk volume label and serial number.

16. exit – Exits the command prompt.

Networking Commands:

17. ping – Tests network connection (e.g., ping google.com).

18. ipconfig – Displays network configuration details.

19. netstat – Shows active network connections.

20. nslookup – Checks DNS information for a website.

Advanced Commands:

21. tasklist – Displays running processes.

22. shutdown – Shuts down or restarts the computer (e.g., shutdown /s /t 0 for shutdown,
shutdown /r for restart).

23. fc – Compares two files (e.g., fc file1.txt file2.txt).

Note: Please try the commands marked in red colour with caution.

Page 2 of 2

You might also like