Window Command
Window Command
DevOps Windows
Introduction
There are more than 280 CMD commands list available through Windows Command Prompt.
Rather than the graphical Windows user interface that we often use, these commands get executed
to perform specific operating system functions from a command-line interpreter.
It’s possible to format a whole disk, restore your files, transfer messages to other devices, reboot
your computer system, and many other things using cmd Command Prompt instructions. Many
Command Prompt tips and techniques make utilization of all of these commands easy.
The main Windows CMD commands list is highlighted in this article, along with practical examples.
The most popular Windows CMD (Command Prompt) commands are listed here. For every
command, there is a usage sample and a brief description.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 1/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
1. arp Command
The address resolution protocol (ARP) command displays and updates values in the ARP cache. IP
addresses get translated into resolved physical addresses using one or more tables that get stored
in the cache.
The arp command displays the help window in its default state.
The following command should get used to seeing the ARP cache table:
arp -a
The result displays a command list for CMD of every ARP entry currently in effect, organized by the
interface.
2. assoc Command
The system’s links for file extensions get listed and modified by the assoc (association) command.
This command has the following syntax:
assoc .<extension>=<filetype>
The command publishes the existing file extension links when no parameters are provided.
To inspect, edit, or delete file attachments, utilize the assoc command. For instance, launch: to view
the associations for the.log files.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 2/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
assoc .log
assoc .log=txtfile
Instead, you can eliminate all connections to any files with the.log extension by executing:
assoc .log=
To break apart the linkage, the command needs to be followed by a space following the equals sign.
3. attrib Command
With the attrib (attribute) command, you can view or modify file attributes. The potential attributes
seem to be:
A file’s attributes can be set or removed using the plus (+) and minus (-) signs, respectively. The
CMD command displays the properties of the files in the working directory when no parameters are
presented.
With the commands below, you can make a file read-only (R) as well as hidden (H).
attrib +R +H sample_file.txt
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 3/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
attrib -H sample_file.txt
A file’s attribute gets removed using the minus sign, which also sets the file’s visibility to its initial
configuration.
bcdboot <path>
For instance, perform the following to replicate the BCD files to C:\Windows:
bcdboot C:\Windows
5. cd Command
The location gets displayed or altered using the cd (change directory) command. This command has
the following pattern:
cd <directory>
Without the supplementary directory parameter, the program publishes the present working
directory.
For instance, following the command, add the directory name to update the placement to a
directory designated Public:
cd Public
The prompt displays the updated location in accordance with the change.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 4/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
The /d parameter must be included before the path to shift the placement to a different disc. Use
this as an example to switch to disc S:\
cd /d S:
Unless the option gets specified, the command outputs the path rather than switching to the
specified destination.
cd ..
Changes get made to the current working directory, moving it up one directory.
The chkdsk command displays the state of the disc without correcting any faults when no further
parameters are provided.
The /f option, among others, allows for the correction of disc mistakes.
chkdsk <volume> /f
That command tries to correct disc problems. Do the inspection the next time the system restarts if
the disc is in use. The system will not get impacted if the command gets stopped, but make certain
that you execute the scan again later to rectify any potential data damage.
7. choice Command
A user gets prompted by the choose command to select a response from a range of possibilities.
The command asks the user to select one of the Y or N alternatives in the absence of any
parameters.
Choice quantity and prompt text are controlled by other settings. Utilise /c parameter, for instance,
and enter the names of the three options to add a third possibility:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 5/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
choice /c ync
Describe the choices that can be selected with the /m argument in more detail by adding more text.
Consider this:
This command always gives back the choice index and afterward leaves.
8. cipher Command
The cipher command displays and alters the encrypted communications for files including
directories. using the following command syntax:
The cipher command displays all files and directories that are in the present location’s encryption
status when executed without any further arguments. In contrast to E, which stands for “encrypted,”
U stands for “unencrypted.”
With the /e argument, you can encrypt any file located in the current working directory:
The signal for the file switches from U towards E, indicating that it gets encrypted.
It should be noted that Windows 10 Pro, Enterprise, and Education editions support the ability to
encrypt and decrypt folders and files.
9. clip Command
A clip command transfers a command outcome and perhaps a file’s information to the clipboard. In
CMD, the following syntax gets used to duplicate a command’s results:
<command> | clip
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 6/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
For instance, pipe the cd command to clip to replicate the route to the current working directory:
cd | clip
Use CTRL+V to copy the contents and paste them into any location in the window.
Use this command, for instance, to replicate the contents of the file sample.txt to the clipboard:
The details of the file get copied to your clipboard and are available for pasting wherever you like.
10 cls Command
A blank surface gets produced after the cls command tries to clear the text in a command line
window. To remove all content from the screen, utilize the command.
It is important to note that the prior output and contents are not displayed again.
The cmd command displays the most recent version of the cmd.exe software without any extra
parameters.
Cmd command can be used to execute commands while the current cycle is still open. Now use /c
parameter, for instance, to evaluate a command and then return to the active command interpreter
task:
cmd /c cd ..
Your directory gets modified by the new interpreter. The /c tag, on the other hand, guarantees that
the directory remains unmodified and that the interpreter goes back to the first session.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 7/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Use the /k argument to execute a command and continue in the new session:
cmd /k cd ..
By running the cd command to change to the parent directory, the /k argument transitions to the
new session.
12 color Command
Color modifies the backdrop and text colors on the console from their default settings. with the
following color command syntax:
color <background><font>
Hexadecimal numbers ranging from zero to f represent the color characteristics. Each available color
choice is shown in the help window:
help color
Use the following color command, for instance, to make the backdrop blue (1) and also the
typeface light aqua (b):
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 8/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
color 1b
Use the color command without any parameters to go back to the console’s default colors.
When the comp command gets run with no arguments, an interactive window to provide file names
and other options opens.
Find similar text files that contain the following information to show how the command operates.
Execute the comp command while providing the names of the two files:
The output requests more file comparisons and displays the comparisons error as hexadecimal
characters (enter N to exit).
Now use /a parameter to publish the findings of the comp in a readable layout:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 9/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
The character “s” from the initial file and the character “x” inside the subsequent file are where the
comparison fails.
The compact command essentially provides the directory’s present condition of compression
without any variables or arguments.
For instance, you can utilize the /c argument and the following file name to compress a file:
compact /c sample_file.txt
compact /u sample_file_1.txt
Compress huge files as well as directories with the compact command to free up storage space.
For instance, use the following to duplicate the content of one file to another in the same location:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 10/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
By copying the whole contents of the source file into a new file, the command produces a new one.
Date
Update the system’s current date by entering this one as mm-dd-yyyy otherwise press CTRL+C to
quit.
If you primarily want to print the date and don’t want to change the system state, utilize the/t
parameter:
date /t
Use the following command, for instance, to disk defrag the C: drive:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 11/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
defrag C:\ /u /v
Although the /v parameter displays a verbose response, the /u standard prints the activity. You can
omit these conditions.
These instructions completely and utterly and forever remove the desired file or documents from a
disc.
Use the following command, for instance, to remove the file sample.txt:
del sample.txt
erase sample.txt
del /p sample.txt
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 12/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
The file name gets displayed in a prompt in the output that asks for authorization before
eliminating the file.
19 dir Command
The dir command presents all of the files and subdirectories that are present in a directory. For
something like this command’s syntax, use:
All directory information gets displayed using the dir command without any parameters.
dir C:\
Volume drive.
For instance, execute: To view the command histories from the present command prompt activity.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 13/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
doskey /history
In order of old to new, the output displays every command from the CMD session.
driverquery <options>
The driverquery command, when launched without any conditions, displays a list of all local
machine device drivers. The output format can be adjusted using other settings, and remote
machine driver queries are also an option.
echo <message>
This command displays the present settings when no parameters are provided.
Enter the following command to activate it and display the greeting “Hello, world!”
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 14/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
For printing helpful information even when a script is running, the echo command is a common
addition.
exit /b
24. fc Command
To compare two or maybe more files, use the fc (files compare) command. When there’s a
difference mostly in files, the output publishes the information to the console.
Use this command, for one, to compare and contrast two files, sample file 1.txt with sample file 2.txt.
fc sample_file_1.txt sample_file_2.txt
This command outputs the file contents to show that there is a discrepancy seen between the two
files.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 15/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
In addition to returning the file name and also the line of text containing the string, this command
searches for an exact fit. This command returns the file name only if a file doesn’t have the text in it.
Use the following command, for instance, to locate the string “text” in a file:
The string is absent from the document if the command returns no results.
The file type field specifies the file to display or alter (for example, “txtfile”), but the open command
alternative is a string that activates a program to determine the file format. When using the offered
software, the open command string runs a file by replacing its name in the open command.
Ftype publishes all file categories and association information when no settings get provided.
When viewing text files, enter the following information to see the existing file type & extension
association:
ftype txtfile
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 16/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Add a (=) sign to the end of the sentence to denote the removal of file type association:
ftype txtfile=
This command disables the file-opening application and breaks the link between the two.
In terms of syntax:
getmac <options>
Other choices let you adjust the output display or get extensive information about a local computer.
For example, in this case, utilize the following to display the MAC addresses in CSV format:
With the command, you can examine the protocols on network adapters and also decode the MAC
address for a network management tool.
help <command>
For reference, execute the following command to access the cd command’s help menu:
help cd
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 17/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
If somehow the help page is bigger than the command line, use any tab to navigate the pages. You
can also leave by pressing CTRL+C.
Please take note that the format for displaying the help window for non-system commands is as
follows:
<command> /?
hostname
As there are no alternatives for the command, adding any further parameters will result in an error.
Systems having TCP/IP configured on a network adapter are capable of using the hostname
command.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 18/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
ipconfig <options>
The default TCP/IP settings get displayed for all adapters when parameters get left out:
ipconfig
Use the following command to view every adapter’s complete TCP/IP configuration:
ipconfig /all
Your local area connection’s DHCP IP address should get renewed using:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 19/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
ipconfig /flushdns
This label command displays the C: drive’s label without even any additional options and launches a
name-change prompt:
Label
Try typing a new label name to replace the current one, and otherwise, press Enter to eliminate the
label altogether. If you want to preserve the current name, press N instead of Y to accept the
change.
Making.cab files using the makecab command requires the syntax shown below:
Use the following syntax, for instance, to add a sample file.txt file here to archive but also create a
sample cab.cab file in the current working directory:
As soon as compression is complete, the output publishes the progress and ends.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 20/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
md <path>
mkdir <path>
Use these commands, for instance, to establish an additional subdirectory in the present location
called Subdir:
mkdir Subdir
A directory tree can get created using md or mkdir according to the command extensions:
md Subdir\Subsubdir
This mklink command makes a symbolic link to a document without the use of any further
parameters. For instance:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 21/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
The /h parameter can get used to generate a hard link rather than a symbolic link:
Inside the directory overview, the dir command displays the links. Now use cd command to navigate
to the directory then consider the linked directory as normal (cd Docs).
To view lengthy files page per page instead, then use the following command:
more <path>
Take the following example to reduce the output: Execute the help cd command as well as pipe the
more command.
help cd | more
For the next line, click Enter, and to move onto the next page, press Space. Tap Q to leave.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 22/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
A drive letter is not necessary for linking a volume using the command. Mount points, potential
volume names, and even the help menu get displayed by the mountvol command in the absence of
any variables.
Just use the following command, for instance, to see the drive Cvolume :’s name but also the current
mount point:
mountvol C:\ /l
A folder or perhaps a file might be the origin or the destination. When a file’s both starting and
ending locations are identical yet its name differs, the move command renames that file.
As an experiment, this command can rename a file called sample file.txt to file.txt:
moveC:\Users\Public\Downloads\my_file.txt C:\Users\Public\Desktop\my_file.txt
Whenever a command gets executed in the context of a batch script, it will not ask for confirmation
whether it’s overwriting an existing file.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 23/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Several installations, displaying, upgrades, and repair options are available in the software. The
msiexec command, when run without any arguments, launches a window displaying command
details.
Follow these instructions, for instance, to complete a standard installation of a.msi package:
msiexec /i “C:\example.msi”
When the /i option gets used, the.msi package at the specified location will get installed normally.
msinfo32 <options>
Also available Filter the data as well as export it in a particular file format. For instance, perform the
following to export all system data to an.nfo file:
Whenever the.nfo extension is not included, the program automatically adds it.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 24/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Use the following command, as it will begin an RDC session in full-screen mode:
mstsc /f
With the /edit parameter and also the specified file name, you can edit an existing connection:
The net command displays a list command in CMD of all possible subcommands along with a brief
overview in the absence of any additional parameters.
To view a list of all currently active Windows services, type net start:
net start
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 25/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
The following will let you look at a user’s password and username requirements:
net accounts
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 26/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Use the syntax shown below to show more information for a subcommand:
The output displays a thorough help box for each command that got entered.
netstat <options>
Although used without any arguments, this command displays TCP connections that are currently
open. The protocol, domestic and international addresses, and also TCP connection conditions are
displayed in the output.
Add the -a parameter to see all TCP connections that are open as well as ports that are listening for
TCP and UDP traffic:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 27/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
netstat -a
To verify the port protocol type or perhaps to look for open ports, use the command.
When given no parameters, nslookup switches to interactive mode. Use this step to find the DNS
entries for a particular domain name:
nslookup <domain>
path <location>
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 28/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
The PATH variable’s current situation gets displayed by path when no parameters are provided.
Using a semicolon (;) will allow you to add several locations to PATH as shown in the case below:
For instance, just use the following to see if you can access the hostbillo website:
ping hostbillo.com
Both the round-trip durations and accompanying reply messages get printed in the outputs. You
can use this command to see whether there are any connection or name-determination problems.
Tip
Also Read: How to Ping a Specific Port Number in Linux & Windows?
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 29/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
powercfg /list
Every power plan on the system gets listed in the output. There is a star (*) next to the current
power scheme.
To add unique characters and perhaps extra features to the prompt, this effective and timely
command provides many variables. If you want the prompt to be an arrow, for instance, use:
prompt –$g
The command-line session’s prompt remains and therefore gets represented by the $g variable by
the greater-than sign (>).
rd <path>
rmdir <path>
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 30/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
There is a notice when you try to erase a directory that contains files. To get rid of a directory that
has files including subdirectories, add the /s argument.
rd /s <path>
All items and the whole subfolder tree get deleted by the command.
These commands don’t let you move the files to another location. Many files can be opened using
wildcard characters. To convert all.txt files to.c file types, for instance, use:
An asterisk (*) character decided to rename any documents with the.txt extension inside the current
working directory and helps to determine all of them.
Robocopy’s /mt parameter providing higher-performance multithreading is its key advantage. You
can resume a transfer if it gets interrupted by using the /z argument as well.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 31/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
To avoid disruptions during massive file transfers, just use this command.
To print every path from the table, for instance, utilize this:
route print
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 32/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Further to the IPv4 as well as IPv6 routing databases, this output includes an interface list.
schtasks /<subcommand>
With the following syntax, you could display the system’s current task schedule:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 33/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
schtasks /query
Task titles, upcoming run timeframes, as well as task conditions get shown in the outputs.
set <variable>=<value>
The set command displays all environment variables even when no additional parameters are
provided.
You can utilize these parameters with any command. For example, in this case, use the following to
create an entirely new CMD variable named message:
echo %message%
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 34/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
This variable’s value gets collected and printed to the screen when it gets encased mostly in percent
signs (%).
Remember that perhaps the variables are only effective for the present command-prompt sessions
and will not continue.
Just use the command prompt, for instance, to check the system as well as fix all files:
sfc /scannow
Whenever appropriate, the command fixes faulty files after scanning all secured system files.
shutdown <options>
Use the /r option, as an example, to turn off and restart your machine:
shutdown /r
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 35/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
shutdown /s
The shutdown is also not abrupt in either condition. Utilise /a option to cancel the operation:
shutdown /a
By selecting it, a shutdown command that was previously executed gets guaranteed to cancel.
3. To order the input variables alphabetically, enter CTRL+Z then Enter only at the end of the list.
sort sample_file.txt
These file contents get sorted by the command, which also publishes the results to the terminal.
Set up a fresh command-prompt session, for instance, and type “Hello, world!” while setting the
route to C:\. execute the command below:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 36/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Your C: drive’s starting path and then a personalized window title appears when you launch CMD.
To display the locally relevant data, just use the command without any choices:
systeminfo
Also, you can choose to adjust the output format and sometimes examine the system details for
distant computers. For reference, display the CSV format result along with
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 37/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Various formats make it possible to properly interpret the data using scripts.
takeown /f <file>
To finish a job, use the tasklist command to determine the process ID (PID), then terminate the
process using this:
By using its ID, the command locates and ends the process.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 38/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
tasklist <options>
This command displays all active processes when no extra options are presented.
A process’s PID plus image name serves as personally identifiable information. Overall memory
utilization for a process is displayed in the last column. This is a useful metric for spotting system-
slowing operations.
Tip
Also Read: How Can I Check Memory Usage in Linux?
time
If you want to reset the system time, set a different time, or press CTRL+C to close the box. To
prevent adjustments, just use /t choice:
time /t
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 39/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
So before returning to the command line, this command displays the time.
timeout /t <seconds>
timeout /t 5
After a countdown, the command line gets accessed in the output. To end the timeout sooner,
simply press any key. To wait for the transmission of two commands, just use the command in the
scripts.
title <string>
For reference, utilize the following to make the title “Hello, world!”
With the supplied string, your CMD window’s title gets updated. If you want to distinguish between
several command prompts while running several batch scripts, you should use this command.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 40/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
tracert hostbillo.com
An IP address, as well as name resolution, gets provided when necessary, and the output displays
the hops made between the source and destination. To find connectivity problems with a host, use
this command.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 41/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
This tree command shows the directory layout of the C: disc when no arguments are presented.
Use the following command, for example when trying to display the information in the sample
file.txt file.
type sample_file.txt
This command line receives a printout of the file’s contents. For viewing files right in the command
prompt, then use this command.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 42/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
tzutil /g
The time zone ID gets displayed in the output. full list of all time zone identifiers that are currently
available
tzutil /l | more
Long outputs can get shortened using the more command. For the system time zone to get
changed, just use /s argument as well as the time zone ID.
ver
After printing the outcome, the version goes back to the command prompt.
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 43/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
vol <drive>:
The vol command displays data for the drive that is presently get chosen if no drive gets supplied.
When the destination gets omitted, the current directory gets searched for the file without exploring
subdirectories. Add a /r argument to run the search in recursive mode. Consider this:
The command looks through all directories and files on the C: disc. If somehow the file gets located,
the command returns the path to the location.
whoami <options>
This command displays the domain with the user name from its default state.
To provide extensive information for the user account, add the /all parameter:
whoami /all
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 44/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
The console prints the user’s identity, protection ID, groups, or rather privileges.
To replicate information from one spot to the next, incorporating subdirectories (especially if they
are empty), just use this command line interface:
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 45/46
9/2/24, 12:06 PM 70+ Windows CMD Commands List with Screenshots (Download PDF)
Conclusion
You’ve become familiarized mostly with the Windows CMD Commands List after reviewing and
practicing the commands from this user guide. With these essential commands, Windows’
command prompt can be navigated to complete many things.
To understand Windows’ Command Prompt, keep on going and constantly continue practicing
more commands.
[sc name="footer"][/sc]
https://www.hostbillo.com/blog/70-windows-cmd-commands-list/ 46/46