KZH

Friday, November 4, 2011

DOS (Disk Operating System) Commands

DOS (Disk Operating System) Commands
DOS (Disk Operating System)
It is an CUI (Character User Interface) based O/S.

Navigation:-

Start --> Programs -->Accessories --> Command Prompt

(OR)

Start --> Run --> CMD

1. How to create a file?
A. Syntax: copy con
Example: copy con zubar
Ctrl + z = Save (and Enter)

2. To list all file and directory?
A. Syntax: dir

3. How to see date?
A. Syntax: date
For new date: mm-dd-yyyy (04-25-2011)

4. How to see time?
A. Syntax: time
For new time: HH:MM:SS.MS (10:45:23.20)

5. How to create a directory?
A. Syntax: mkdir
Example: mkdir orbit

6. How to Change a Directory (how to enter into an directory)?
A. Syntax: cd
Example: cd orbit (D:\orbit>)

7. How to come back from the directory?
A. Syntax: cd..
Example: cd.. (D:\>)

8. How to copy a file?
A. Syntax: copy
Example: copy zubar d:\orbit

9. How to Delete a file?
A. Syntax: del
Example: del zubar

10. How to move a file?
A. Syntax: move
Example: move zubar d:\orbit

11. How to Clear the screen?
A. Syntax: cls
Example: cls

12. How to see content of a file?
A. Syntax: type
Example: type digital

13. How to Edit a file?
A. Syntax: edit
Example: edit digital (To Save Press Alt+F+S, To Exit Press Alt+X)

14. How to Delete a Directory.
A. Syntax: RD
Example: RD afroz

15. How to change color?
A. Syntax: color <0 to 9 and A - F>
Example: color 7c

16. How to Hide and Unhide a Directory?
A. Syntax: attrib
Example: attrib +h imran (for hide)
attrib -h imran (for unhide)

17. How to see an IP-Address?
A. Syntax: ipconfig

18. How to see an ipaddress and dns?
A. Syntax: ipconfig /all

19. How to communication between two systems?
A. Syntax: ping
Example: ping 10.1.1.1 or ping orbit6

20. How to format a drive(Memory Card or Pendrive)?
A. Syntax: format
Example: format H:

21. How to Starts a separate window to run a specified program.
A. Syntax: START

22. How to view Windows version.
A. Syntax: ver

23. How to view graphically displays the directory structure of a drive or path.
A. Syntax: tree

24. How to delete one or more file?
A. Syntax: erase
Example: erase book1 book2 book3 book4

25. How to rename a file or directory?
A1. Syntax: ren
Example: ren note hyd
A2. Syntax: ren
Example: ren imran waseem

26. How to see MAC(Media Access Controller) ID?
A. Syntax: getmac

27. How to check Host Name or Computer Name of a System?
A. Syntax: hostname

No comments:

Post a Comment