Created
June 23, 2015 09:32
-
-
Save Gmanweb/c18785da8b34fab800a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To open the Windows command prompt you may do one of the following: | |
| - Click Start -> Programs -> Accessories -> Command Prompt | |
| - Click Start (or hit the Windows key), type “cmd” in search, then hit [ENTER] | |
| - Windows Key + R (#r, not the pound symbol) brings up Run. Then type “cmd” then [ENTER] | |
| ************* Basic Command Prompt Commands ************* | |
| x /? = provides syntax info and complete list of all parameters for x (a command, like “cd”) | |
| cd = change directory | |
| cd .. = move to the parent directory | |
| cd\ = move to the root of current drive | |
| cd x = move to the current\x directory | |
| cd z: = change to the z root directory (as opposed to c:\) | |
| copy x y = copy file x to directory y (Ex: D:\games\galaga.exe C:\programs[\awesome.exe]), [] = optional | |
| copy file con = display file contents in console | |
| copy con file.txt = create text file in the console window, end with ctrl+z (^z or F6) | |
| date = change the date | |
| del = delete/erase | |
| del x = deletes all files/folders fitting x | |
| del . = deletes all files within current directory | |
| del *.* = deletes all files within current directory | |
| dir = display contents of current directory (Ex: dir [c:][\programs]), [] = optional | |
| dir *.txt = list all .txt files in current directory | |
| dir *.? = list all files with extensions one character in length in current directory | |
| dir /w /p *.* = display all contents one screen at a time | |
| dir | more = display all contents one line at a time | |
| dir /? = provides syntax info and complete list of all dir parameters | |
| echo = send command line input to display (by default) | |
| echo sometext >> somefile.txt = append line(s) of text to any file | |
| echo sometext > somefile.txt = overwrites file with sometext | |
| erase = delete/erase | |
| exit = exit the command prompt | |
| filename.txt = opens filename.txt in current directory in Notepad (or default .txt program) | |
| format z: = format z drive [Ex: use to format a disc or flash drive] | |
| mkdir x = make directory x in current directory | |
| move x y = more or rename x to y | |
| q = escapes sequential display of contents (i.e. the more parameter) | |
| rd x = remove/delete directory x if it’s empty | |
| ren x y = rename file x to y | |
| time = change the time | |
| type file = display the contents of the file ‘file’ (displays file contents in console) | |
| type file |more = display the contents one line at a time | |
| ************* Advanced Command Prompt Commands ************* | |
| ipconfig [/all] = display network adapter information (advanced) | |
| netstat –n = display local address and addresses you are connected to (advanced) | |
| netstat –nb = above with name of foreign addresses (advanced) (this shows your private IP, if you are behind a router or proxy, then your public IP address will be different) | |
| ping google.com = how long it takes for your computer to talk to google.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment