Skip to content

Commit ba3c4d5

Browse files
Rearange and formatted commands in cmd-cheatsheet.md
1 parent 06b3983 commit ba3c4d5

File tree

1 file changed

+78
-78
lines changed

1 file changed

+78
-78
lines changed

CheatSheets/cmd-cheatsheet.md

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -21,109 +21,109 @@ created: 2022-10-25
2121

2222
## File and Folder Management:
2323

24-
| Command | Description |
25-
| :----------------------: | ------------------------------------------------------------------------ |
26-
| `?` | Help or sometimes shows related commands to some commands. |
27-
| `cd` | - To open directory <br /> - `cd directory-name`. |
28-
| `copy` | Copies files to another location |
29-
| `dir` | List directory content. |
30-
| `del` | Used to delete one or more files. |
31-
| `expand` | Decompresses compressed files. |
32-
| `fc` | File compare- fc a.txt b.txt. |
33-
| `find` | Find files. |
34-
| `ftype` | Display file type and mapping. |
35-
| `mkdir` | Make a directory. |
36-
| `move` | Moves files from one folder to another. |
37-
| `print` | Prints out the text file contents. |
38-
| `rd` <br /> `rmdir` | - Removes the directory <br /> - `rmdir [dir]` <br /> - `rd [dir]` |
39-
| `ren` | Rename. |
40-
| `replace` | Replaces files in one directory with files of the same name in another directory. |
41-
| `robocopy` | Uses an advanced tool to copy files and directories. |
42-
| `tree` | Show all system folder in tree manner. |
43-
| `type` | Displays the contents of text files. |
44-
| `xcopy` | The xcopy command can copy one or more files or directory trees from one location to another. |
45-
| `ls` | By using this command showing all the folder's in any directory |
46-
| `dir /a` | This command is help to find all the hidden directories |
47-
| `rm` | - File remove from any directory <br /> - `rm file-name`. |
48-
| `rmdir /s` | - Remove all the Subfolder from any Main-Folder <br /> - `rmdir /s folder-name`. |
24+
| Command | Description |
25+
| :-----------------: | --------------------------------------------------------------------------------------------- |
26+
| `?` | Help or sometimes shows related commands to some commands. |
27+
| `ls` | Showing all the existing folders in current directory |
28+
| `cd` | - To change directory <br /> - `cd directory-name`. |
29+
| `copy` | Copies files to another location |
30+
| `dir` | List directory content. |
31+
| `del` | Used to delete one or more files. |
32+
| `expand` | Decompresses compressed files. |
33+
| `fc` | File compare- fc a.txt b.txt. |
34+
| `find` | Find files. |
35+
| `ftype` | Display file type and mapping. |
36+
| `mkdir` | Make a directory. |
37+
| `move` | Moves files from one folder to another. |
38+
| `print` | Prints out the text file contents. |
39+
| `rm` | - File remove from any directory <br /> - `rm file-name`. |
40+
| `rd` <br /> `rmdir` | - Removes the directory <br /> - `rmdir [dir]` <br /> - `rd [dir]` |
41+
| `rmdir /s` | - Remove all the Subfolder from any Main-Folder <br /> - `rmdir /s folder-name`. |
42+
| `dir /a` | This command is help to find all the hidden directories |
43+
| `ren` | Rename. |
44+
| `replace` | Replaces files in one directory with files of the same name in another directory. |
45+
| `robocopy` | Uses an advanced tool to copy files and directories. |
46+
| `tree` | Show all system folder in tree manner. |
47+
| `type` | Displays the contents of text files. |
48+
| `xcopy` | The xcopy command can copy one or more files or directory trees from one location to another. |
4949

5050
**[🔼Back to Top](#table-of-contents)**
5151

5252
## Applications and Processes:
5353

54-
| Command | Description |
55-
| :----------------------: | ------------------------------------------------------------------------ |
56-
| `schtasks` | Executes a command or start a scheduled application (Task Scheduler). |
57-
| `shutdown` | - Shutdown your computer, control system shutdown using additional commands <br /> - `shutdown` <br /> - `shutdown/?` <br /> - `shutdown/i` |
58-
| `tasklist` | Display a list of currently-running tasks |
59-
| `taskkill` | - Kills the running task <br /> - `taskkill /im [programme-name]` <br /> - `taskkill /im notepad.exe` <br /> - `taskkill /f /im notepad.exe` |
60-
| `reg` | Starts registry editor |
61-
| `runas` | Launches the task as another user |
54+
| Command | Description |
55+
| :--------: | -------------------------------------------------------------------------------------------------------------------------------------------- |
56+
| `schtasks` | Executes a command or start a scheduled application (Task Scheduler). |
57+
| `shutdown` | - Shutdown your computer, control system shutdown using additional commands <br /> - `shutdown` <br /> - `shutdown/?` <br /> - `shutdown/i` |
58+
| `tasklist` | Display a list of currently-running tasks |
59+
| `taskkill` | - Kills the running task <br /> - `taskkill /im [programme-name]` <br /> - `taskkill /im notepad.exe` <br /> - `taskkill /f /im notepad.exe` |
60+
| `reg` | Starts registry editor |
61+
| `runas` | Launches the task as another user |
6262

6363
**[🔼Back to Top](#table-of-contents)**
6464

6565
## Disk Management:
6666

67-
| Command | Description |
68-
| :----------------------: | ------------------------------------------------------------------------ |
69-
| `chkdsk` | - Scan the disk/drive errors <br /> - `chkdsk [disk-name]:` <br /> - `chkdsk C:` |
70-
| `defrag` | Starts disk defragmentation. |
71-
| `compact` | Displays and change the compression of files in NTFS partitions. |
72-
| `format` | Formats the disk. |
73-
| `Recover` | Recovers data from a bad or damaged disk. |
74-
| `sfc` | - System file checker, scans all system files and repairs them if required <br /> - `sfc /scannow` |
75-
| `vol` | Displays volume label and serial number for the disk. |
76-
| `wmic logicaldisk get name` | Get all the drive name |
77-
| `diskmgmt.msc` | Open disk-management system from command prompt |
67+
| Command | Description |
68+
| :-------------------------: | -------------------------------------------------------------------------------------------------- |
69+
| `chkdsk` | - Scan the disk/drive errors <br /> - `chkdsk [disk-name]:` <br /> - `chkdsk C:` |
70+
| `defrag` | Starts disk defragmentation. |
71+
| `compact` | Displays and change the compression of files in NTFS partitions. |
72+
| `format` | Formats the disk. |
73+
| `Recover` | Recovers data from a bad or damaged disk. |
74+
| `sfc` | - System file checker, scans all system files and repairs them if required <br /> - `sfc /scannow` |
75+
| `vol` | Displays volume label and serial number for the disk. |
76+
| `wmic logicaldisk get name` | Get all the drive name |
77+
| `diskmgmt.msc` | Open disk-management system from command prompt |
7878

7979
**[🔼Back to Top](#table-of-contents)**
8080

8181
## System Information:
8282

83-
| Command | Description |
84-
| :----------------------: | ------------------------------------------------------------------------ |
85-
| `date` | Show/Set date. |
86-
| `hostname` | Shows hostname of the computer. |
87-
| `powercfg` | - Gives report of the power setting <br /> - `powercfg /?` <br /> - `powercfg /list` |
88-
| `systeminfo` | To get system-related information. |
89-
| `time` | Displays or sets the system time. |
90-
| `ver` | Display operating system version. |
91-
| `finger` | Information about the user. |
92-
| `whois` | This command is useful when users want to find the domain name or the IP address. |
93-
| `ftp` | Transfer file to a ftp server. |
94-
| `getmac` | Display mac address. |
95-
| `mode` | Used to configure system devices. |
96-
| `print` | Print a specified text file to a specified printing device. |
83+
| Command | Description |
84+
| :----------: | ------------------------------------------------------------------------------------ |
85+
| `date` | Show/Set date. |
86+
| `hostname` | Shows hostname of the computer. |
87+
| `powercfg` | - Gives report of the power setting <br /> - `powercfg /?` <br /> - `powercfg /list` |
88+
| `systeminfo` | To get system-related information. |
89+
| `time` | Displays or sets the system time. |
90+
| `ver` | Display operating system version. |
91+
| `finger` | Information about the user. |
92+
| `whois` | This command is useful when users want to find the domain name or the IP address. |
93+
| `ftp` | Transfer file to a ftp server. |
94+
| `getmac` | Display mac address. |
95+
| `mode` | Used to configure system devices. |
96+
| `print` | Print a specified text file to a specified printing device. |
9797

9898
**[🔼Back to Top](#table-of-contents)**
9999

100100
## Network:
101101

102-
| Command | Description |
103-
| :----------------------: | ------------------------------------------------------------------------ |
104-
| `ipconfig` | Display IP network settings. |
105-
| `ping` | - Test the ability of the source computer to reach a specified destination computer <br /> - Show the list of ___usage___ and ___options___ in cmd <br /> - Get a response from the website network <br /> - `ping [website name]` <br /> - `ping [ip address]` |
106-
| `nslookup` | Finds IP address by resource name. |
107-
| `route` | This command is used to check and make changes to the route table of the computer. |
108-
| `arp` | Shows a table with IP addresses converted into physical addresses. |
109-
| `netsh` | - Allows you to display or modify the network configuration of a computer that is currently running <br /> - Commands used for various properties related to network <br /> - `netsh` _(step-1)_ <br /> - `netsh> /?` |
110-
| `netsh wlan` | - Command extension to the netsh <br /> - `netsh` _(step-1)_ <br /> - `netsh> wlan /?` |
102+
| Command | Description |
103+
| :----------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
104+
| `ipconfig` | Display IP network settings. |
105+
| `ping` | - Test the ability of the source computer to reach a specified destination computer <br /> - Show the list of ___usage___ and ___options___ in cmd <br /> - Get a response from the website network <br /> - `ping [website name]` <br /> - `ping [ip address]` |
106+
| `nslookup` | Finds IP address by resource name. |
107+
| `route` | This command is used to check and make changes to the route table of the computer. |
108+
| `arp` | Shows a table with IP addresses converted into physical addresses. |
109+
| `netsh` | - Allows you to display or modify the network configuration of a computer that is currently running <br /> - Commands used for various properties related to network <br /> - `netsh` _(step-1)_ <br /> - `netsh> /?` |
110+
| `netsh wlan` | - Command extension to the netsh <br /> - `netsh` _(step-1)_ <br /> - `netsh> wlan /?` |
111111

112112
**[🔼Back to Top](#table-of-contents)**
113113

114114
## Command Line Setup:
115115

116-
| Command | Description |
117-
| :----------------------: | ------------------------------------------------------------------------ |
118-
| `cls` | Clear screen. |
119-
| `color` | Changes text and background color. |
120-
| `echo` | Print the after echo text once. |
121-
| `prompt` | Changes the command line prompt (print the after text until you close the cmd) |
122-
| `pause` | Pause your window until you press any key. |
123-
| `title` | Title your command prompt. |
124-
| `timeout xxx` | Countdown wait in terminal- xxx in seconds. |
125-
| `exit` | Exit from the cmd window. |
126-
| `reset` | The reset command executed as reset session. |
116+
| Command | Description |
117+
| :-----------: | ------------------------------------------------------------------------------ |
118+
| `cls` | Clear screen. |
119+
| `color` | Changes text and background color. |
120+
| `echo` | Print the after echo text once. |
121+
| `prompt` | Changes the command line prompt (print the after text until you close the cmd) |
122+
| `pause` | Pause your window until you press any key. |
123+
| `title` | Title your command prompt. |
124+
| `timeout xxx` | Countdown wait in terminal- xxx in seconds. |
125+
| `exit` | Exit from the cmd window. |
126+
| `reset` | The reset command executed as reset session. |
127127

128128
**[🔼Back to Top](#table-of-contents)**
129129

0 commit comments

Comments
 (0)