Providing a comprehensive list of all MS-DOS commands with examples would be quite extensive. However, I can provide you with a selection of common MS-DOS commands along with brief examples for each:
- dir: List contents of a directory. Example:
dir
- cd: Change directory. Example:
cd C:\Windows
- mkdir: Create a new directory. Example:
mkdir NewFolder
- rmdir: Remove a directory (if empty). Example:
rmdir OldFolder
- copy: Copy files. Example:
copy file.txt destination_folder
- move: Move files or directories. Example:
move file.txt destination_folder
- ren: Rename files or directories. Example:
ren oldfile.txt newfile.txt
- del: Delete files. Example:
del file.txt
- format: Format a disk. Example:
format C:
- type: Display the contents of a text file. Example:
type file.txt
- edit: Open a simple text editor. Example:
edit file.txt
- attrib: View or change file attributes. Example:
attrib +r file.txt
- cls: Clear the screen. Example:
cls
- chkdsk: Check and repair disk errors. Example:
chkdsk C:
- help: Get help about commands. Example:
help dir
- fdisk: Disk partitioning tool. Example:
fdisk
- ping: Send network request to a specific IP. Example:
ping google.com
- netstat: Display active network connections. Example:
netstat -a
- ipconfig: Display IP configuration. Example:
ipconfig
- shutdown: Shutdown the computer. Example:
shutdown /s
Remember that the availability of certain commands and their options may vary depending on the version of MS-DOS you’re using. It’s important to consult the built-in help for detailed information on specific commands and their options.