Saturday, July 13, 2013

Learn About Basic of Command Prompt

What is Command Prompt Used For?

Command Prompt is used to execute entered commands.

Command Prompt is most commonly used to execute batch files, perform advanced administrative functions, and troubleshoot and solve certain kinds of Windows issues.


How To Access Command Prompt:

Command Prompt can be accessed via the Command Prompt shortcut located in the Start Menu or on the Apps screen, depending on what version of Windows you have. for shorcut : press windows + R then type cmd.

List of Basic Command :

Command Prompt can be accessed via the Command Prompt shortcut located in the Start Menu or on the Apps screen, depending on what version of Windows you have. for shorcut : press windows + R then type cmd.
  • Change Directory - cd/chdir
    • cd .example : cd Documents.
    • cd.. = change directory to parent folder.
  • Change Drive
    • just type the drive that you want change. example : D
  • List of Directory - dir
  • Make Directory - mkdir
    • mkdir . example : mkdir example.
  • Copy Files - cp
    • cp
  • Move/Cut Files - mv
    • mv
  • Remove Files - rm
    • rm
  • Copy Directory- cpdir
    • cpdir
  • Move/Cut Directory- mvdir
    • mvdir
  • Remove Directory- rmdir
    • rmdir
  • Clear Screen - cls
  • Change Color - color
  • See & Change Date - date
  • Shutdown - shutdown
    • shutdown -s = shutdown
    • shutdown -r = restart
    • -f = force
    • -t . example: -t 60
    • shutdown -s -f -t 5 = shutdown force in 5 second.
  • Ping to an IP - ping
    • ping 192.168.1.1 = ping 3 times to IP 192.168.1.1
    • ping www.google.com = ping 3 times to www.google.com
    • -t = for ping until it close. 


No comments:

Post a Comment