常用网络命令格式

Ping: 主要是验证目标主机是否存活, 及主机运行的操作系统类型。

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]

[-r count] [-s count] [[-j host-list] | [-k host-list]]

[-w timeout] destination-list

例:ping -l 65500 -t 172.16.4.154

Options:

-t

-a

-n count

-l size

-f

-i TTL

-v TOS

-r count

-s count

-j host-list

-k host-list

-w timeout

Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. Resolve addresses to hostnames. Number of echo requests to send. Send buffer size. Set Don't Fragment flag in packet. Time To Live. Type Of Service. Record route for count hops. Timestamp for count hops. Loose source route along host-list. Strict source route along host-list. Timeout in milliseconds to wait for each reply.

nbtstat: 显示协议统计和当前TCP/IP连接。

Displays protocol statistics and current TCP/IP connections using NBT

(NetBIOS over TCP/IP).

NBTSTA T [ [-a RemoteName] [-A IP address] [-c] [-n]

[-r] [-R] [-RR] [-s] [-S] [interval] ]

例:nbtstat -c

-a (adapter status) Lists the remote machine's name table given its name

-A (Adapter status) Lists the remote machine's name table given its

IP address.

-c (cache) Lists NBT's cache of remote [machine] names and their IP addresses

-n (names) Lists local NetBIOS names.

-r (resolved) Lists names resolved by broadcast and via WINS

-R (Reload) Purges and reloads the remote cache name table

-S (Sessions) Lists sessions table with the destination IP addresses -s (sessions) Lists sessions table converting destination IP

addresses to computer NETBIOS names.

-RR (ReleaseRefresh) Sends Name Release packets to WINs and then, starts Refr esh

RemoteName Remote host machine name.

IP address Dotted decimal representation of the IP address.

interval Redisplays selected statistics, pausing interval seconds

between each display. Press Ctrl+C to stop redisplaying

statistics.

-s

specify

redisplaying Netstat: Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] 例:netstat -na -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP. -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to a subset of the default. interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop

statistics. If omitted, netstat will print the current

configuration information once.

Tracert:

Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name

Tracert

Options:

-d Do not resolve addresses to hostnames.

-h maximum_hops Maximum number of hops to search for target.

-j host-list Loose source route along host-list.

-w timeout Wait timeout milliseconds for each reply.

Nslookup:

例:Nslookup www.sina.com

At:(task scheduler )

AT 命令安排在特定日期和时间运行命令和程序。

要使用 AT 命令,计划服务必须已在运行中。

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE]

[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

例: at 23:05 tini.exe

at 23:06 “c:\program file\tini.exe”

at 23:07 “net start telnet ”

\\computername 指定远程计算机。 如果省略这个参数,

会计划在本地计算机上运行命令。 id 指定给已计划命令的识别号。

/delete 删除某个已计划的命令。如果省略 id ,

计算机上所有已计划的命令都会被删

除。

日运行。

日运行。

HELP |

SESSION | /yes 不需要进一步确认时,跟删除所有作业 的命令一起使用。 time 指定运行命令的时间。 /interactive 允许作业在运行时,与当时登录的用户 桌面进行交互。 /every:date[,...] 每个月或每个星期在指定的日期运行命令。 如果省略日期,则默认为在每月的本/next:date[,...] 指定在下一个指定日期(如,下周四) 运行命令。 如果省略日期,则默认为在每月的本"command" 准备运行的 Windows NT 命令或批处理程序。 Net: NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND |

SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

NET ACCOUNTS

强制用户在时间到期之后多久必须注销?: 永不

密码最短使用期限 (天): 0

密码最长使用期限 (天): 42

密码长度下限: 0

保持的密码历史记录长度: None

锁定阈值: 永不

锁定持续时间(分): 30

锁定观测窗口(分): 30

计算机角色: SERVER

命令成功完成

net LOCALGROUP

net LOCALGROUP administrators guest /add

net LOCALGROUP administrators guest /del

此命令用于连接目标计算机或断开与目标计算机共享资源的连接,或显

示计算机的连接信息。

| *]] 例:net use \\192.168.1.67\ipc$ “123456” /user: adminstrator net use /del net use * /del net use k: 此命令的语法是: NET USE [devicename | *] [\\computername\sharename[\volume] [password

[/USER:[domainname\]username]

[/USER:[dotted domain name\]username]

[/USER:[username@dotted domain name]

[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Net user:

此命令用于显示用户帐号信息以及添加、删除帐号、更改帐号信息。 例:net user

net user abcd 123 /add

net user guest /active:yes

net user abcd /del

用类似的帐号迷惑人,或所普通帐号提升为管理员。

此命令的语法是:

NET USER [username [password | *] [options]] [/DOMAIN]

username {password | *} /ADD [options] [/DOMAIN] username [/DELETE] [/DOMAIN]

此命令用于创建、删除或显示共享资源。

默认共享。

例:net share

net share music=c:\音乐 /remark: best music

net share music /del

此命令的语法是:

NET SHARE sharename

sharename=drive:path [/USERS:number | /UNLIMITED]

[/REMARK:"text"]

[/CACHE:Manual | Automatic | No ] sharename [/USERS:number | /UNLIMITED]

[/REMARK:"text"]

[/CACHE:Manual | Automatic | No ]

{sharename | devicename | drive:path} /DELETE

net start:

此命令的语法是:

NET START [service]

例: net start telnet

net start “task scheduler“

net stop:

此命令的语法是:

NET STOP service

例:NET STOP TELNET

NET STOP “TASK SCHEDULER”

NET VIEW :

此命令用于显示域列表、计算机列表、或指定计算机的共享资源。 此命令的语法是:

NET VIEW [\\computername [/CACHE] | /DOMAIN[:domainname]] NET VIEW /NETWORK:NW [\\computername]

例: net view

net view

Ping: 主要是验证目标主机是否存活, 及主机运行的操作系统类型。

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]

[-r count] [-s count] [[-j host-list] | [-k host-list]]

[-w timeout] destination-list

例:ping -l 65500 -t 172.16.4.154

Options:

-t

-a

-n count

-l size

-f

-i TTL

-v TOS

-r count

-s count

-j host-list

-k host-list

-w timeout

Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. Resolve addresses to hostnames. Number of echo requests to send. Send buffer size. Set Don't Fragment flag in packet. Time To Live. Type Of Service. Record route for count hops. Timestamp for count hops. Loose source route along host-list. Strict source route along host-list. Timeout in milliseconds to wait for each reply.

nbtstat: 显示协议统计和当前TCP/IP连接。

Displays protocol statistics and current TCP/IP connections using NBT

(NetBIOS over TCP/IP).

NBTSTA T [ [-a RemoteName] [-A IP address] [-c] [-n]

[-r] [-R] [-RR] [-s] [-S] [interval] ]

例:nbtstat -c

-a (adapter status) Lists the remote machine's name table given its name

-A (Adapter status) Lists the remote machine's name table given its

IP address.

-c (cache) Lists NBT's cache of remote [machine] names and their IP addresses

-n (names) Lists local NetBIOS names.

-r (resolved) Lists names resolved by broadcast and via WINS

-R (Reload) Purges and reloads the remote cache name table

-S (Sessions) Lists sessions table with the destination IP addresses -s (sessions) Lists sessions table converting destination IP

addresses to computer NETBIOS names.

-RR (ReleaseRefresh) Sends Name Release packets to WINs and then, starts Refr esh

RemoteName Remote host machine name.

IP address Dotted decimal representation of the IP address.

interval Redisplays selected statistics, pausing interval seconds

between each display. Press Ctrl+C to stop redisplaying

statistics.

-s

specify

redisplaying Netstat: Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] 例:netstat -na -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP. -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to a subset of the default. interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop

statistics. If omitted, netstat will print the current

configuration information once.

Tracert:

Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name

Tracert

Options:

-d Do not resolve addresses to hostnames.

-h maximum_hops Maximum number of hops to search for target.

-j host-list Loose source route along host-list.

-w timeout Wait timeout milliseconds for each reply.

Nslookup:

例:Nslookup www.sina.com

At:(task scheduler )

AT 命令安排在特定日期和时间运行命令和程序。

要使用 AT 命令,计划服务必须已在运行中。

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] AT [\\computername] time [/INTERACTIVE]

[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

例: at 23:05 tini.exe

at 23:06 “c:\program file\tini.exe”

at 23:07 “net start telnet ”

\\computername 指定远程计算机。 如果省略这个参数,

会计划在本地计算机上运行命令。 id 指定给已计划命令的识别号。

/delete 删除某个已计划的命令。如果省略 id ,

计算机上所有已计划的命令都会被删

除。

日运行。

日运行。

HELP |

SESSION | /yes 不需要进一步确认时,跟删除所有作业 的命令一起使用。 time 指定运行命令的时间。 /interactive 允许作业在运行时,与当时登录的用户 桌面进行交互。 /every:date[,...] 每个月或每个星期在指定的日期运行命令。 如果省略日期,则默认为在每月的本/next:date[,...] 指定在下一个指定日期(如,下周四) 运行命令。 如果省略日期,则默认为在每月的本"command" 准备运行的 Windows NT 命令或批处理程序。 Net: NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND |

SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

NET ACCOUNTS

强制用户在时间到期之后多久必须注销?: 永不

密码最短使用期限 (天): 0

密码最长使用期限 (天): 42

密码长度下限: 0

保持的密码历史记录长度: None

锁定阈值: 永不

锁定持续时间(分): 30

锁定观测窗口(分): 30

计算机角色: SERVER

命令成功完成

net LOCALGROUP

net LOCALGROUP administrators guest /add

net LOCALGROUP administrators guest /del

此命令用于连接目标计算机或断开与目标计算机共享资源的连接,或显

示计算机的连接信息。

| *]] 例:net use \\192.168.1.67\ipc$ “123456” /user: adminstrator net use /del net use * /del net use k: 此命令的语法是: NET USE [devicename | *] [\\computername\sharename[\volume] [password

[/USER:[domainname\]username]

[/USER:[dotted domain name\]username]

[/USER:[username@dotted domain name]

[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Net user:

此命令用于显示用户帐号信息以及添加、删除帐号、更改帐号信息。 例:net user

net user abcd 123 /add

net user guest /active:yes

net user abcd /del

用类似的帐号迷惑人,或所普通帐号提升为管理员。

此命令的语法是:

NET USER [username [password | *] [options]] [/DOMAIN]

username {password | *} /ADD [options] [/DOMAIN] username [/DELETE] [/DOMAIN]

此命令用于创建、删除或显示共享资源。

默认共享。

例:net share

net share music=c:\音乐 /remark: best music

net share music /del

此命令的语法是:

NET SHARE sharename

sharename=drive:path [/USERS:number | /UNLIMITED]

[/REMARK:"text"]

[/CACHE:Manual | Automatic | No ] sharename [/USERS:number | /UNLIMITED]

[/REMARK:"text"]

[/CACHE:Manual | Automatic | No ]

{sharename | devicename | drive:path} /DELETE

net start:

此命令的语法是:

NET START [service]

例: net start telnet

net start “task scheduler“

net stop:

此命令的语法是:

NET STOP service

例:NET STOP TELNET

NET STOP “TASK SCHEDULER”

NET VIEW :

此命令用于显示域列表、计算机列表、或指定计算机的共享资源。 此命令的语法是:

NET VIEW [\\computername [/CACHE] | /DOMAIN[:domainname]] NET VIEW /NETWORK:NW [\\computername]

例: net view

net view


相关文章

  • 技巧:几个简单测试网络的常用命令
  • 看下面的几个网络测试命令,了解和掌握它们将会有助于你更好地使用和维护网络. Ping命令 用来测试一帧数据从一台主机传输到另一台主机所需的时间,从而判断主响应时间.该命令主要是用来检查路由是否能够到达,由于该命令的包长非常小,所以在网上传递 ...查看


  • 网络基础知识及常用软件 - 系统攻防 - 360论坛
  • [好学者] 系统攻防版主 金币:1537 经验:8939 等级:高中二年级 功勋:14 短信 [回到顶部][奖励金币][回复此楼][引用][举报] 1 楼 2011-04-16 08:56 [心得] 网络基础知识及常用软件 一.网络基础知识 ...查看


  • 高中信息技术必修知识点汇总
  • 主题1 信息的获取 高中信息技术必修知识点汇总 一.信息及其特征 1.信息的基本概念 "信息"一词通常是指数据.消息所包含的内容和意义.信息的表现形式有多种,如:图片.声音.动作.表情.文字等.当今世界的三大要素:物质. ...查看


  • 教师正确使用学校网络资源的几点建议
  • 教师正确使用学校网络资源的几点建议 在信息技术与课程整合的教改新形势下,学校有了自己的校园网络体系,电脑.电视和多媒体课件走进了课堂,给教师的授课和学生的学习注入新的活力.然而,美中不足的是,在使用校园网络资源时经常出现一些意外,如鼠标突然 ...查看


  • 电子政务工程师(OA)客观试题1
  • 全国信息技术高级人才水平考试 National Information Technology Examination for High-Level Talent 客观题考试试卷1 试卷说明 1.本试卷包含单项选择题和多项选择题二类大题,其中 ...查看


  • 2014计算机文化基础知识点
  • 计算机文化基础知识点 第一章 信息技术与计算机文化 1. 2. 3. 4. 5. 6. 7. 8. 9. <逻辑的数学分析>一书是19世纪中叶英国数学家布尔的著作 布尔提出了符号逻辑思想 控制论创始人美国数学家维纳认为:信息使我 ...查看


  • 信息技术基础知识点集锦
  • 第一章: 信息与信息技术 (一) 信息及其特征 1. 信息.物质和能量是构成人类社会资源的三大支柱. 2. 信息的一般特征:载体依附性.价值性.时效性.共享性.可转换性.可增值性.普遍 性.不完全性.无限性.传递性.可压缩性 (对信息特征相 ...查看


  • 2013-2014华工计算机应用基础随堂练习答案
  • 第一章计算机基础知识 1. 计算机能直接识别并执行的语言是______. A. 汇编语言 B.自然语言 C. 机器语言 D.高级语言 答题:C 2. 计算机存储容量的基本单位是_____. A. 赫兹 B. 字节(Byte )C. 位 (b ...查看


  • 信息技术知识点
  • 克拉玛依市高级中学2016年学考复习资料 1. 信息.物质和能量是构成人类社会资源的三大支柱. 2. 信息的一般特征:传递性.共享性.载体依附性.价值性.时效性.真伪性等. 载体依附性:信息不能独立存在,必须依附于一定的载体 价值性:信息是 ...查看


热门内容