DOS
June 3, 2026
2 min read
HEMANT SINGH
Technical Writer & Educator
- CD
- Change the directory
- Example: cd desktop
- CLS
- Clear screen
- Example: cls
- MD
- Make directory
- Example: md capscom
- RD
- Remove directory
- Example: rd capscom
- DEL
- Delete a file
- Example: del data.txt
- DIR
- dir : List all the files and folder of current directory
- dir /s : List all the files and folder and subfolder with files
- dir /a : List all the files with hidden files
- TREE
- Display list of folder and files in the form of tree.
- Example: tree
- REN
- To rename a folder and file
- Example: ren math.txt science.txt
- EDIT or echo
- To edit the file
- Example: edit science.txt
- Example: echo Hello>science.txt
- VER
- Display version of DOS
- Example: ver
- TYPE
- Display content of file
- Example: type science.txt
- VOL
- Display volume of current drive
- Example: vol
- DATE
- Display date
- Example : date
- TIME
- Display time
- Example : time
- EXIT
- Exit from the dos/ close the dos software
- Example: exit
- MEM
- Display memory
- Example: mem
- COPY CON
- Create new file in current directory
- Example : copy con network.txt
- IPCONFIG /ALL
- Display network information
- Example : ipconfig/all
- COPY
- Copy one file to second file
- Example : copy first.txt second.txt
- copy to specific folder (capscom)
- Example:: copy first.txt capscom
- copy all files to specific folder(capscom)
- Example: copy data\* capscom