+3 votes
61 views
in Tips & Tricks by (242k points)
reopened
20 CMD Commands You Should Know

1 Answer

+4 votes
by (1.6m points)
 
Best answer

The 20 most important CMD commands in Windows

The Windows command prompt, also known as cmd.exe, contains more than 280 commands. We have put together the 20 most important ones here..

image image

The Windows command prompt can be a very useful and, above all, powerful tool - if you know how to use it. There are innumerable commands that are impossible to remember. We have therefore put together the 20 most important commands for you in our tips + tricks article.

The 20 most important CMD commands in Windows

To enter commands, you must first open the command prompt. To do this, simply press the [Windows] + [R] keys at the same time and enter " cmd ". Then press [Enter] and you're ready to go.

/? The help command contains a list of all commands. You can also enter it after a command to get more information about the respective command.
&& This allows you to execute several commands at the same time. Enter && between two commands.
color This command allows you to change the colors of the text and background in the Command Prompt window.
clip The clip command copies the output of any command to the clipboard.
doskey / history After the entry, you will be shown all the commands that you have used in the current session of the command prompt.
tasklist tasklist shows a list of applications, services, and the process ID that are currently running on your computer.
taskkill This command ends a running task. It is the equivalent of killing a process in the Task Manager.
assoc The assoc command displays or changes the file type associated with a particular file extension.
driverquery The driverquery command displays a list of all installed drivers.
ipconfig The ipconfig command displays detailed IP information for each network adapter that uses TCP / IP. It can also be used to release and renew IP addresses on systems configured to receive through a DHCP server.
ping Once entered, an ICMMP echo request packet is sent to a specified remote desktop to verify connectivity at the IP level.
netstat The netstat command is used to display all open network connections.
systeminfo The systeminfo command displays basic Windows configuration information for the local computer or a remote desktop.
powercfg The powercfg command is used to manage Windows power settings from the command line.
sfc The sfc command checks and replaces critical Windows system files. Depending on the operating system, the sfc command is also known as the "System File Checker".
chkdsk The chkdsk command , often referred to as "check disk", is used to detect and fix certain hard drive errors.
regedit This command opens the registry, which you can then edit and change.
schtasks The schtasks command is used to execute specified programs or commands at specific times. In addition, scheduled tasks can be created, deleted, queried, changed, executed and terminated.
del / q / f / s% temp% \ * After entering, all temporary files of the current user will be deleted.
exit This command terminates the command prompt.
/? The help command contains a list of all commands. You can also enter it after a command to get more information about the respective command.
&& Damit können Sie mehrere Befehle gleichzeitig ausführen. Geben Sie && zwischen zwei Befehlen ein.
color Mit diesem Befehl können Sie die Farben des Textes und des Hintergrunds im Fenster der Eingabeaufforderung ändern.
clip Der Befehl clip kopiert die Ausgabe eines beliebigen Befehls in die Zwischenablage.
doskey /history Nach der Eingabe werden Ihnen alle Kommandos angezeigt, die Sie in der aktuellen Sitzung der Eingabeaufforderung verwendet haben.
tasklist tasklist zeigt eine Liste von Anwendungen, Diensten und der Prozess-ID, die derzeit auf Ihrem Computer ausgeführt werden.
taskkill Mit diesem Befehl wird ein laufender Task beendet. Er ist das Äquivalent zum Beenden eines Prozesses im Task-Manager.
assoc Mit dem Befehl assoc wird der einer bestimmten Dateierweiterung zugeordnete Dateityp angezeigt oder geändert.
driverquery Der Befehl driverquery zeigt eine Liste aller installierten Treiber an.
ipconfig Mit dem Befehl ipconfig werden detaillierte IP-Informationen für jeden Netzwerkadapter angezeigt, der TCP/IP verwendet. Er kann auch zum Freigeben und Erneuern von IP-Adressen auf Systemen verwendet werden, die für den Empfang über einen DHCP-Server konfiguriert sind.
ping Nach der Eingabe wird ein ICMMP Echo-Request-Paket an einen angegebenen Remote-Desktop gesendet, um die Konnektivität auf IP-Ebene zu überprüfen.
netstat Der Befehl netstat wird dazu verwendet, um alle offenen Netzwerkverbindungen anzuzeigen.
systeminfo Mit dem Befehl systeminfo werden grundlegende Windows-Konfigurationsinformationen für den lokalen Computer oder einen Remote-Desktop angezeigt.
powercfg Der Befehl powercfg wird zum Verwalten der Windows-Energieeinstellungen von der Befehlszeile aus verwendet.
sfc Mit dem Befehl sfc werden wichtige Windows-Systemdateien überprüft und ersetzt. Der Befehl sfc wird je nach Betriebssystem auch als "System File Checker" bezeichnet.
chkdsk Der Befehl chkdsk , häufig auch als "check disk" bezeichnet, dient zum Erkennen und Beheben bestimmter Festplattenfehler.
regedit Dieser Befehl öffnet die Registry, die Sie anschließend bearbeiten und ändern können.
schtasks Mit dem Befehl schtasks werden festgelegte Programme oder Befehle zu bestimmten Zeiten ausgeführt. Außerdem können geplante Aufgaben erstellt, gelöscht, abgefragt, geändert, ausgeführt und beendet werden.
del /q /f /s %temp%\* Nach Eingabe werden sämtliche temporäre Dateien des derzeitigen Nutzers gelöscht.
exit Dieser Befehl beendet die Eingabeaufforderung.

...