15 Command Prompt common computer you should know


Summary of 15 Command Prompt (CMD) on your computer will help you perform many different tasks such as checking network IP address, checking internet connection speed, automatic shutdown … CMD below to apply to your daily work.


Microsoft is slow but definitely pushing the command line to the side of the Windows interface. This is not without reason when it is an outdated tool and mostly unnecessary from a time of writing commands.

But many commands are still useful today and even on Windows 8 and Windows 10, they are adding new features. Therefore, today, Taimienphi will introduce to you 15 Command Prompt commands common you should know. All will be in the following article.

Summary of 15 common Command Prompt commands you should know.

1. Ipconfig

This command forwards the IP address your computer is currently using. However, if your device is connected to the router (like most computers today), you will receive the router’s internal network address.

15 command prompt with warning you should know 2

However, ipconfig will be useful with extensions. “ipconfig / Release “and”ipconfig / renew “Can force your device to search for a new IP address, which will be very helpful if your computer does not have an available IP address. You can also use”ipconfig / flushdns “to refresh your DNS address.

2. Netstat

Entering the command “netstat -an” will give you a list of open ports and their associated IP addresses.

15 command prompt issue you should know 3

This is a very good command when you are trying to troubleshoot devices connected to the computer or when you fear a Trojan infecting the system and you are trying to locate a malicious connection.

3. Ping

15 command prompt with warning you should know 4

Ping (Packet InterNet Groper) is used to check whether two devices in the network can connect with each other. Ping is also used to measure the delay time of packets in the network. Most operating systems such as Linux and Windows support the ping command.

4. PathPing

15 command prompt issue you should know 5

This is a more advanced version of ping, which is useful if there are multiple routers between the computer and the device you are testing. Like ping, you use this command by typing “pathping “followed by the IP address, but unlike ping, pathping also forwards some information about the routes that bring the test data packets.

5. Tracert

15 command prompt issue you should know 6

Comeinand “tracert “is similar pathping . When typing “tracert “followed by the IP address or domain name you want to go to CMD. You will get information about each step in the path between your computer and the target. Unlike pathping, tracert also tracks how much time (in milliseconds) between servers or devices lost.

6. Shutdown

Like on Windows 8 / 8.1 you will have a command used to turn off your computer.

15 command prompt issue you should know 7

This is of course a backup with the shutdown button, what we have is the “shutdown / r / o “, restart your computer and launch the advanced options start menu, where you can access Safe Mode and the recovery utility window. This command is quite useful if you want to start. restart your computer for troubleshooting purposes.

7. System File Checker

System File Checker is an automatic process of scanning and repairing tools, focusing on Windows system files.

15 command prompt issue you should know 8

You will need to run Command Prompt with administrator privileges and enter the command “sfc / scannow “If SFC finds any corrupted or lost files, it will automatically replace them by using a Windows backup for this purpose. CMD executions can take quite a long time on your computer. old laptop.

8. Tasklist

You can use the command tasklist to ask the system to display a list of all currently running programs on your computer. Although a bit redundant when we have Task Manager, sometimes with this CMD command we can see the hidden tasks running here.

15 command prompt issue you should know 9

There is also a range of adjustment tools. “Tasklist -svc” shows the service related to each task, use “tasklist – v” to get details about each task, and “tasklist -m” will find the .dll file associated with the task. the case is active. These CMD commands are useful for advanced troubleshooting.

9. Taskkill

15 command prompt issue you should know 10

The task that appears in the “tasklist” command will have an executable file and the process ID (a four-digit number) associated with them. You can force a program to stop using “taskkill -im” followed by the name of the executable file, or “taskkill -pid” according to your process. Again, this command might seem superfluous when we have it all in Task Manager, but you can use it to end if you don’t respond or hide the program.

10. DriverQuery

15 command prompt issue version you should know 11

Driver is still the most important software installed on the computer. Incorrect configuration or no driver can cause all sorts of problems, so it will get a list of computer access configurations, which is the “driverquery “You can see more extensions by command”.driverquery -v “to get more information, including the driver directories installed in it.

11. File Compare

You can use this command to determine the difference between 2 text files. It is especially useful for writers and programmers trying to find small changes between two versions of a file. Just type “fc “and then the path directory and file name of the two files you want to compare.

15 command prompt warnings you should know 12

You can also expand the CMD commands in a number of ways. Type “/ b “to compare only binary output,”/ c “does not care about the case of the text in comparison, and”/ l “only compare text in ASCII code.

12. Powercfg

Powercfg is a very powerful command used to manage and monitor how your computer uses power. You can use the “powercfg / hibernate on “and”powercfg / hibernate off “to manage hibernation and you can also use the”powercfg / a “to see if power savers are currently available on your computer.

Another useful command is “powercfg / devicequery s1_supported “, displays a list of devices on your computer that support standby connectivity. When enabled, you can use the device to bring your computer out of standby mode, even You can enable this feature by selecting the device in Device Manager , open its properties, go to tab Power Management and then tick the “Allow this device to wake the computer” checkbox.

15 command prompt issue you should know 13

Comeinand “Powercfg / lastwake “will show you what end device wakes your computer from sleep state. You can use this command to troubleshoot your computer if it wakes up randomly.

You can use the “powercfg / energy“to build a detailed power consumption report for your computer. This report will be saved to the specified directory after the end of the command. This report will tell you about any system errors that have. may increase power consumption, like certain sleep mode blockers, or configurations that are poorly responsive to your power management settings.

On Windows 8, the “powercfg / batteryreport “provides a detailed analysis of battery usage, if applicable. The report provides details about the time and length of charge and discharge cycles, average battery life, and estimated battery capacity. .

13. Recovery Image (Windows 8)

Almost every Windows 8 / 8.1 computer comes with a recovery image file, but that image file may include bloatware and you don’t want to reinstall it. Once you skip the software installation you can create a new image file using the “recimg “.

15 command prompt issue version you should know 14

You must have administrator privileges to use the command recimg , and you can only access custom image files you create through the Refesh feature on Windows 8.

On Windows 10, system restore has changed. The Windows 10 system does not come with a recovery partition, which makes it more important than ever to create a recovery drive.

14. ASSOC.

Most files in Windows are associated with a specific program that is assigned to open files by default. Sometimes, remembering combinations can be confusing. You can remind yourself by typing “Assoc “to display a complete list of file name extensions and associated programs.

15 command prompt with warning you should know 15

You can also expand commands to change file associations. For example: “assoc .txt =“will change the file association for text files so that whatever program you enter after the equal sign. The PGS command will reveal the program name extension and the name will help you properly use this command. You may be easier in the GUI to do this, but is a perfectly functional command-line interface that replaces functionality.

15. Cipher.

Deleting files on a hard drive is very simple but actually they haven’t been deleted. Instead, it will mark unreachable files and spaces. Files can still be recovered until the system overwrites them with new data, which may take some time.

15 command prompt issue version you should know 16

However, delete a directory by writing random data into it. To clean up your C drive, for example you will use the “cipher / w: c” command, which will scan the free space on the drive, the CMD command will not overwrite but complete the data erase, so you will No need to wipe out the file you need by running this command.

Above is a summary of 15 common Command Prompt commands that Taimienphi would recommend to you. If there is anything wrong or additional, you can feedback below for us to update offline.

https://thuthuat.taimienphi.vn/15-lenh-command-prompt-pho-bien-ban-nen-biet-21945n.aspx
In addition, the CMD command is very good when with this command line we can do many things without having to use the 3rd software. Such as with instructions hide hard drive partition with CMD Introduced in the previous article is quite useful for those who need privacy on their computer.

.

Add a Comment

Your email address will not be published. Required fields are marked *