Command Prompt
Command Prompt
Chkdsk examines disk space and disk use and provides a status report specific to each file system.
The status report shows errors found in the file system.
The sfc /scannow command will scan all protected system files, and replace corrupted files with a
cached copy that is located in a compressed folder at %WinDir%
The ipconfig command is used to display a computers TCP/IP configuration. You can display the IP
info for a single or all network cards installed on a computer.
systeminfo – Shows Your PC’s Details. If you want to see more detailed information about your
system you won’t see in the GUI, this is the command for you.
fc. Syntax: fc file1 file2. Explanation: Compares the contents of two files or sets of files and displays
the differences. 10. attrib. Syntax: attrib [+
Tracert
tracert (network troubleshooting) The tracert command is used to track the pathway a packet takes
from a source IP to the destination address. This simply ...
Maintaining an overview of digital traffic is difficult. netstat informs users about all active network
connections and open ports.
The mkdir command will create a directory or subdirectory. It creates the directory in the current
directory. For example, in the command prompt, my path is c:\ ...
ping (test network connection) The ping command tests network connectivity between two devices
by sending ICMP echo requests. For example, computer A tests ...
1. Use the Copy Command to Transfer Specific Files
Right-click the Start button and choose “Command Prompt (Admin)” to open CMD.
To copy files, use the copy command from the command line.
copy c:\myfile.txt e:
The command above will copy “myfile.txt” from the C: drive to the E: drive.
copy *.txt e:
The above command copies all text files in the current directory to the E: drive using a wildcard.
copy d:\example.xls
The command above copies the “example.xls” file from the D: drive to the current directory. We
didn’t indicate a destination; by default, the current directory is utilized if the goal isn’t supplied.
Xcopy is a command that copies files or groups of files between directories. It’s convenient for
copying data to and from a fixed drive.
Step 1. To find cmd, go to Start and type cmd into the search box. From the list, right-click Command
Prompt and choose “Run as administrator”.
Step 2. Now, in the command prompt, type the Xcopy command to copy folders and subfolders,
including their contents, as shown below.
If you want to copy the “test” folder and its subfolders from the C drive to the D disc, use the Xcopy
command as follows:
Xcopy C:\test D:\test /E /H /C /I
A command-line interface differs from a graphical user interface, considering that it is text-only. A
high learning curve, more space for error, a vast number of instructions, and the inability to figure
anything out by research are all downsides of the command line interface.