Skip to content
17th August 2024
Latest:
  • Faulty CrowdStrike Update Crashes Windows Systems, Impacting Businesses Worldwide
  • autoCAD crack Free Full Version Download With Crack + Keygen
  • Warning: Samsung Devices Under Attack! New Security Flaw Exposed
  • WebKit Under Attack: Apple Issues Emergency Patches for 3 New Zero-Day Vulnerabilities
  • Google Releases Urgent Chrome Update to Fix Actively Exploited Zero-Day Vulnerability
Tutorials

Top 10 Command Prompts commands

Top 10 Command Prompts commands

In this tutorial, I will guide you to top 10 important and famous command prompt commands with their usage.  

1. ipconfig :

                  This is the top most command for seeing the ip address,subnet mask and default gateway also includes 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 in the local DNS cache, use: ipconfig /flushdns 

2.systeminfo

Have a need to display operating system configuration information for a local or remote machine, including service pack levels? Then system info 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 hostname, OS type, version, product ID, install date, boot time and hardware info (processor and memory). Also knowing what hotfixes 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 work with Task Manager (ctrl+alt+del) ,you can easily understand this.  Task list is list of task which are running on windows currently.  If you open any application,it will be added to task.


To List the Tasks type in cmd as :         

    tasklist

This will show the list of task which are running as shown in the picture

 To stop the Process or task ,there is two methods :

Using Image Name:

   We can kill the task using its Image Name as follows:tasklist /im notepad.exe

tasklist /im notepad.exe

 Using Process Id:

  we can stop the process using its process id as follows :

 asklist /pid 1852

4. type
 type is used to read the text document in command prompt.  You can read multiple text in continuously

type filename.txt

 5.netstat

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.

6.net command


Although this tool is more known as a command, the net command is really like a power drill with different bits and is used to update, fix, or view the network or network settings.
It is mostly used for viewing (only services that are started), stopping and starting services:

  • net stop server
  • net start server
  • net start (display running services)

and for connecting (mapping) and disconnecting with shared network drives:

  • net use m: \\myserver\sharename
  • net use m: \\myserver\sharename /delete

Other commands used with net command are, accounts (manage user accounts), net print (manage print jobs), and net share (manage shares).

Below are all the options that can be used with the net command.

7 – nslookup – With the Internet, DNS (Domain Name Service) is the key for allowing us to use friendly names when surfing the web instead of needing to remember IP Addresses. But when there are problems, nslookup can be a valuable tool for testing and troubleshooting DNS servers.

Nslookup can be run in two modes: interactive and noninteractive. Noninteractive mode is useful when only a single piece of data needs to be returned. For example, to resolve google.com:

to use the interactive mode, just type nslookup at the prompt. To see all available options, type help while in interactive mode.


Don’t let the help results intimidate you. Nslookup is easy to use. Some of the options I use when troubleshooting are: set ds (displays detailed debugging information of behind the scenes communication when resolving a host or IP Address).
set domain (sets the default domain to use when resolving, so you don’t need to type the fully qualified name each time).
set type (sets the query record type that will be returned, such as A, MX, NS)
server NAME (allows you to point nslookup to use other DNS servers than what is configured on your computer)
To exit out of interactive mode, type exit.

8 – ping and tracert 

These tools can be helpful with connectivity to other systems. Ping will test whether a particular host is reachable across an IP network, while tracert (traceroute) is used to determine the route taken by packets across an IP network.


To ping, a system just types at the prompt: ping  www.google.com. By default, ping will send three ICMP request to the host and listen for ICMP “echo response” replies. Ping also includes switches to control the number of echo requests to send (-n ) and to resolve IP addresses to the hostname (-a ).
To use tracert, type at the prompt: tracert www.google.com. 

You can force tracert to not resolve the address to hostnames by using the -d switch, or set the desired timeout (milliseconds) for each reply using -w switch.


9 – result – 

Used mostly in environments that implement group policies, results (Group Policy Results) verifies all policy settings in effect for a specific user or computer. The command is simple to use, just enter gpresults at the prompt. It can also be used to connect to computers remotely using the /S and /U switches.
10 – netsh – Without a doubt the most powerful command-line tool available in Windows. Netsh is like the swiss army knife for configuring and monitoring Windows computers from the command prompt. Its capabilities include:

  • Configure interfaces
  • Configure routing protocols
  • Configure filters
  • Configure routes
  • Configure remote access behavior for Windows-based remote access routers that are running the Routing and Remote Access Server (RRAS) Service
  • Display the configuration of a currently running router on any computer

Some examples of what you can do with netsh:

  • Enable or disable Windows firewall:

netsh firewall set opmode disable

netsh firewall set opmode disable

  • Enable or disable ICMP Echo Request (for pinging) in Windows firewall:

netsh firewall set icmpsetting 8 enable

netsh firewall set icmpsetting 8 disable

  • Configure your NIC to automatically obtain an IP address from a DHCP server:

netsh interface ip set address “Local Area Connection” dhcp

(For the above command, if your NIC is named something else, use netsh interface ip show config and replace the name at Local Area Connection).

As you can see netsh can do a lot. Instead of re-inventing the wheel, check out the following Microsoft article for more info on netsh.

PHP网站源码盐田企业网站建设爱联网站建设爱联设计公司网站盐田网络广告推广荷坳seo网站优化双龙网络广告推广惠州模板制作坂田百搜标王永湖网站优化排名横岗百度关键词包年推广南澳SEO按效果付费罗湖企业网站设计龙岗百搜词包西乡网络推广塘坑SEO按天计费坑梓关键词排名包年推广布吉设计网站坑梓网络营销坑梓网络广告推广福永品牌网站设计惠州标王石岩企业网站制作坪山关键词排名盐田网站设计东莞推广网站同乐网站推广永湖百姓网标王推广布吉网站seo优化塘坑SEO按天收费坪山百度网站优化排名歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

PHP网站源码 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化