1. Lệnh Ping : Cú pháp: Code: ping ip/host [/t][/a][/l][/n]



tải về 1.67 Mb.
Chế độ xem pdf
trang78/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   74   75   76   77   78   79   80   81   ...   92
Cac lenh co ban trong DOS

File Attributes 
[RASHCNETO] 
R – Read only
A – Archive
S – System
H – Hidden 
C – Compressed
N – Not content indexed 
E – Encrypted
T – Temporary 
O - Offline 
 
 “One, a robot may not injure a human being, or through inaction, allow a human being to 
come to harm” - Isaac Asimov, Laws of Robotics from I. Robot, 1950 


ROUTE.exe
 
Manipulate network routing tables. Route packets of network traffic from one subnet to another 
by modifying the route table. 
Syntax 
Display route details: 
ROUTE [-f] PRINT [destination_host] [MASK subnet_mask_value
[gateway]
[METRIC metric] [IF interface_no.] 
Add a route: 
ROUTE [-f] [-p] ADD [destination_host] [MASK subnet_mask_value
[gateway]
[METRIC metric] [IF interface_no.] 
Change a route: 
ROUTE [-f] CHANGE [destination_host] [MASK subnet_mask_value
[gateway]
[METRIC metric] [IF interface_no.] 
Delete a route: 
ROUTE [-f] DELETE [destination_host] [MASK subnet_mask_value
[gateway]
[METRIC metric] [IF interface_no.]
Key 
-f Clear (flush) the routing tables of all gateway entries.
If this is 
used in conjunction with one of the commands, the tables 
are 
cleared prior to running the command. 
destination_host 
The address (or set of addresses) that you want to 
reach. 
-p Create a persistent route - survives system reboots. 
(not supported in Windows 95) 
subnet_mask_value 
The subnet mask value for this route entry. 
This defines how many addresses are there. 
If not specified, it defaults to 255.255.255.255. 
gateway The gateway. 
interface The interface number (1,2,...) for the specified route. 
If the option `IF interface_no` is not given, ROUTE will 
try 
to find the best interface available. 
metric The metric, ie. cost for the destination. 
Note that routes added to the table are not made persistent unless the -p switch is specified. 
Non-persistent routes only last until the computer is rebooted. 
Symbolic names used for Destination_Host are looked up in the network database file 
NETWORKS.
The symbolic names for gateway are looked up in the host name database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard ('*'), or the 
gateway argument may be omitted.


An IP address mask of 0.0.0.0 means 
everything
. (rather like the *.* wildcard). In other words it 
says: When matching this pattern, don’t worry about matching any of the bits - everything 
matches. 
If Destination_Host contains a * or ?, it is treated as a shell pattern, and only matching 
destination routes are printed. The '*' matches any string, and '?' matches any one char.
Examples: 
157.*.1 
157.* 
127.* 
*224*
 
“Get your kicks on ROUTE 66” ~ Jack Kerouac.
RUNAS
 
Execute a program under a different user account. 
Syntax 
RUNAS [/profile] [/env] [/netonly] /user:user Program 
Key 
/profile Option to load the user's profile (registry) 
/env Use current environment instead of user's. 
/netonly Use the credentials specified only for remote 
connections. 
/user Username in form USER@DOMAIN or DOMAIN\USER 
(USER@DOMAIN is not compatible with /netonly) 
Program The command to execute 
Enter the password when prompted. 
When you start a program with 
RunAs /netonly
, the program will execute on your local 
computer as the user you are currently logged on as, but any connections to other computers on 
the network will be made using the user account specified. 
Without 
/netonly
everything will run under the user account specified. 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   74   75   76   77   78   79   80   81   ...   92




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương