Knowing the Tricks of Command Prompt

Do you have a black screen with white text appearing in your Windows PC? Well, that black screen is nothing but the command prompt. It is most often use by geeks. Today, we will be revealing some of the tricks that can be helpful while using command prompt.

Knowing the Tricks of Command Prompt

  1. Use ctrl-c to abort a command
  2. View the command’s results one page (or line) at a time by using “| more” command
  3. Run command prompt as an administrator automatically by creating a shortcut on desktop and selecting Run as Administrator by right clicking
  4. Become a command prompt power user with function keys
    1. F9: Asks for the number of the command from the F7 list to paste
    2. F8: Pastes recently executed commands (cycles)
    3. F7: Displays a selectable list of previously executed commands
    4. F6: Pastes ^Z to the prompt
    5. F5: Pastes recently executed commands (does not cycle)
    6. F4: Deletes current prompt text up to the entered character
    7. F3: Pastes the last executed command
    8. F2: Pastes the last executed command (up to the entered character)
    9. F1: Pastes the last executed command (character by character)
  5. Get help for any command by adding “/?” at the end.
  6. Save a command’s output to a file by using “systeminfo > c:\mycomputerinfo.txt”
  7. View a drive’s entire directory structure by using “tree /a > c:\treeresults.txt”
  8. Shut down or restart another computer by using “shutdown /i”
  9. Use robocopy as a backup solution. Execute the command “robocopy c:\users\tim\documents f:\backup\documents /copyall /e /r:0 /dcopy:t /mir”. If this does not work, you can use “xcopy c:\users\tim\documents f:\backup\documents/c/d/e/h/i/k/q/r/s/x/y.”
  10. View your computer’s important network information by using “ipconfig/all”
  11. Map a local folder just like a network drive by using “subst q: c:\windows\fonts”

So friends, start using these tricks to master the command prompt.

Leave a Reply

Your email address will not be published. Required fields are marked *