Top 5 Command Prompt Commands You Should Know
- May 7, 2017
- Posted by: Arrowsoft Training
- Category: Technology
In this tutorial, i will guide you to top 10 important and famous command prompt commands with their usage.
1. ipconfig :
This is the topmost command for seeing the IP address,subnet mask and default gateway also includes the display and flush DNS cache, re-register the system name in DNS. This will most useful tool for viewing and troubleshooting TCP/IP problem.
- To view IP ,subnet mask address : ipconfig
- To view all TCP/IP information, use: ipconfig /all
- To view the local DNS cache, use: ipconfig /displaydns
- To delete the contents of the local DNS cache, use: ipconfig /flushdns
Have a need to display operating system configuration information for a local or remote machine, including service pack levels? Then systeminfo is the tool to use. When I need to connect to a system that I am not familiar with, this is the first tool I run. The output of this command gives me all the info I need including: host name, OS type, version, product ID, install date, boot time and hardware info (processor and memory). Also knowing what hot fixes are installed can be a big help when troubleshooting problems. This tool can be used to connect to a machine remotely using the following syntax: SYSTEMINFO /S system /U user
3. tasklist and taskkill
If you are used to Windows Task Manager, then you’ll find tasklist very easy to use. This tool displays a list of currently running processes, including image name, PID (Process ID) and memory usage on local or remote machines. Using the /V switch displays more information in verbose mode that includes, CPU Time, user name, and modules. Tasklist includes a filter option to display a set of task based on the criteria specified. But the best use of the filter is using it to display programs running inside svchost.exe process.
Of course, there will be times when a process needs to be killed and taskkill can be used to terminate those trouble processes. A single or multiple processes can be killed using the PID (/PID ) or image name (/IM ). Here are two examples for doing just that:
TASKKILL /IM notepad.exe
TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
Both tasklist and taskkill can connect to remote systems using the /S (system name) /U (user name) switches.
type is used to read the text document in command prompt . You can read multiple texts in continuously
Need to know who (or what) is making a connection to your computer? Then netstat is the tool you want to run. The output provides valuable information of all connections and listening ports, including the executable used in the connections. In addition to the above info, you can view Ethernet statistics, and resolve to connect host IP Addresses to a fully qualified domain name. I usually run the netstat command using the -a(displays all connection info), -n (sorts in numerical form) and -b (displays executable name) switches.
collected By:- latesthackingnews.com