Apollo's studio

SD,MM,PP and QM

  博客中心 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 登录 ::
  5 随笔 :: 6 文章 :: 4 评论 :: 0 Trackbacks
Cached @ 2025/4/29 16:16:33Control ASP.skins_cogitation_controls_blogstats_ascx
<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

留言簿(0)

随笔档案

文章分类

文章档案

Help sap

搜索

最新评论

  • 1. re: 学习SAP首先要学好英语
  • VOA english is your first choose.for your lever...
  • --moonsea
  • 2. re: 学习SAP首先要学好英语
  • You may improve your English Language skill by reading those SAP documents. Typically, professional English editors in SAP have reviewed and edited the document before it is released to public.
  • --i016921
  • 3. re: ECC6.0 终于安装成功
  • 你好,安装ECC6.0的笔记本配置介绍如下:
    DELL studio 1535
    CPU 2.5Hz
    RAM 4G
    HDD 320G

    ECC6.0安装在虚拟机里面,感觉硬盘空间少,不过配合移动硬盘以及镜像技术可以解决的。
    安装的包ERP,BI,EP以及ABAP和JAVA平台,运行数度还可以。


  • --Akimond
  • 4. re: ECC6.0 终于安装成功
  • 你好,请问你的笔记本是什么样的配置啊?我也想买一台安装ECC6.0 IDES,等待您的答复,谢谢!
  • --韦雨

阅读排行榜

评论排行榜

Cached @ 2025/4/29 16:16:33Control ASP.skins_cogitation_controls_singlecolumn_ascx

1、相关Package
SBTC

2、相关T-CODE
SM69:维护外部OS命令
SM49:执行外部OS命令

3、SXPG_CALL_SYSTEM函数说明

Use this function module to do the following:
·        Check a user’s authorization to run a command
·        Carry out the command.
To determine the system on which the command should be carried out, the function module takes by default the user’s current host system and the operating system type. 
Since the function module is RFC-capable, you can use RFC (the remote function call interface) to carry run the function module at another SAP application server. The external command is then carried out on the host system on which the destination server is running. See CALL FUNCTION... DESTINATION in the ABAP syntax documentation or User’s Guide for more information.
SXPG_CALL_SYSTEM checks the command that is specified in the call before carrying it out. The function module follows these rules in performing this check:
·        It checks for a command definition that has the same operating system type as in the system field SY-OPSYS. If found, then this command definition is used to run the command.
·        If the first check fails, then the function module looks to see if the command has been defined with an operating system type that belongs to the same syntax group as the SY-OPSYS operating system. A syntax group is an SAP construct that groups together OS’s that share the same command and file name syntax. Example: the various flavors of UNIX belong to a syntax group. 
If found, then this command definition is used to run the command. Example: If SY-OPSYS shows HP-UX as the OS, then a command definition for Sun UNIX would also be acceptable for carrying out the command. 
·        If the second check also fails, then the function modules looks for the command with the operating system type ANYOS. ANYOS indicates that a command definition can be carried out on all supported host operating systems.
If found, then this command definition is used to run the command.
Syntax:
CALL FUNCTION ‘SXPG_CALL_SYSTEM’
     IMPORTING                                                
        COMMANDNAME   =
<Name of command to run> “ Default '*'
        ADDITIONAL_PARAMETERS    =
<Argument string> “ Default <space>        
     EXPORTING                                                
        STATUS        =
<Exit status of command>                 
      TABLES                                                   
        EXEC_PROTOCOL =
<Log> “ In structure BTCXPM. Can
                               “ contain STDOUT, STDERR

      EXCEPTIONS                                               
        NO_PERMISSION
“ Command rejected by user exit auth.
                      “ check

        COMMAND_NOT_FOUND 
“ Command not defined in SAP database
        PARAMETERS_TOO_LONG
 “ Complete parameter string exceeds
                             “ 128 characters

        SECURITY_RISK
“ Security check failed
        WRONG_CHECK_CALL_INTERFACE
“ Problem with function
                                    “ module for additional
                                    “ security check

        PROGRAM_START_ERROR
“ Error while starting program                              
        PROGRAM_TERMINATION_ERROR
“ Error while requesting final
                                  “ status of program

        X_ERROR
“ Reserved
        PARAMETER_EXPECTED
“ Required parameter not specified
        TOO_MANY_PARAMETERS
“ User arguments not allowed by
                            “ supplied in call
              
        ILLEGAL_COMMAND
“ Command not legitimately defined
       
OTHERS
 
4、示例
REPORT  ZABAPFTP.

data : t_btcxpm      like btcxpm occurs 0,
         p_addparam like sxpgcolist-parameters,
         rep_date       like sy-datum,
         t_date           like SXPGCOLIST-PARAMETERS.

rep_date = sy-datum - 1.
t_date = rep_date.

*p_addparam = '/sap_production/usr/sap/trans/data/zabapftp.sh'.

refresh t_btcxpm. clear t_btcxpm.

call function 'SXPG_CALL_SYSTEM'
     EXPORTING
          commandname                = 'ZABAPFTP'
          additional_parameters      = t_date
     TABLES
          exec_protocol              = t_btcxpm
     EXCEPTIONS
          no_permission              = 1
          command_not_found          = 2
          parameters_too_long        = 3
          security_risk              = 4
          wrong_check_call_interface = 5
          program_start_error        = 6
          program_termination_error  = 7
          x_error                    = 8
          parameter_expected         = 9
          too_many_parameters        = 10
          illegal_command            = 11
          others                     = 12.

if sy-subrc ne 0.
   write:/ 'Error in ZABAPFTP ', sy-subrc.
endif.

5、使用Open Dataset的FILTER执行系统命令
下面为UNIX环境下的文件压缩和解压
DATA DSN(20) VALUE '/usr/test.Z'.
OPEN DATASET DSN FOR OUTPUT FILTER 'compress'.
OPEN DATASET DSN FOR INPUT FILTER 'uncompress'.

6、WINDOWS外部操作系统

accwiz.exe > Accessibility Wizard for walking you through setting up your machine for your mobility needs. 辅助工具向导??

acsetups.exe > ACS setup DCOM server executable actmovie.exe > Direct Show setup tool 直接显示安装工具??

append.exe > Allows programs to open data in specified directories as if they were in the current directory. 允许程序打开制定目录中的数据

arp.exe > NETWORK Display and modify IP - Hardware addresses 显示和更改计算机的IP与硬件物理地址的对应列表

at.exe > AT is a scheduling utility also included with UNIX 计划运行任务

atmadm.exe > Displays statistics for ATM call manager. ATM调用管理器统计??

attrib.exe > Display and modify attributes for files and folders 显示和更改文件和文件夹属性

autochk.exe > Used to check and repair Windows File Systems 检测修复文件系统??

autoconv.exe > Automates the file system conversion during reboots 在启动过程中自动转化系统

autofmt.exe > Automates the file format process during reboots 在启动过程中格式化进程??

autolfn.exe > Used for formatting long file names 使用长文件名格式??

bootok.exe > Boot acceptance application for registry??

bootvrfy.exe > Bootvrfy.exe, a program included in Windows 2000 that notifies the system th

at startup was successful. Bootvrfy.exe can be run on a local or remote computer. 通报启动成功??

cacls.exe > Displays or modifies access control lists (ACLs) of files. 显示和编辑ACL

calc.exe > Windows Calculators 计算器

cdplayer.exe > Windows CD Player CD播放器

change.exe > Change { User | Port | Logon } 与终端服务器相关的查询??

charmap.exe > Character Map 字符映射表??

chglogon.exe > Same as using "Change Logon" 启动或停用会话记录

chgport.exe > Same as using "Change Port" 改变端口(终端服务)

chgusr.exe > Same as using "Change User" 改变用户(终端服务)

chkdsk.exe > Check the hard disk for errors similar to Scandisk 3

Stages must specify a Drive Letter 磁盘检测程序

chkntfs.exe > Same as using chkdsk but for NTFS NTFS磁盘检测程序

cidaemon.exe > Component of Ci Filer Service 组成Ci文档服务

cipher.exe > Displays or alters the encryption of directories [files] on NTFS partitions. 在NTFS上显示或改变加密的文件或目录

cisvc.exe > Content Index -- It’s the content indexing service for I 索引内容??

ckcnv.exe > Cookie Convertor 变换Cookie??

cleanmgr.exe > Disk Cleanup, popular with Windows 98 磁盘清理??


cliconfg.exe > SQL Server Client Network Utility SQL客户网络工具

clipbrd.exe > Clipboard viewer for Local will allow you to connect to other clipboards 剪贴簿查看器

clipsrv.exe > Start the clipboard Server 运行Clipboard服务

clspack.exe > CLSPACK used to create a file listing of system packages 建立系统文件列表清单??

cluster.exe > Display a cluster in a domain 显示域的集群??

_cmd_.exe > Famous command prompt 没什么好说的!

cmdl32.exe > Connection Manager Auto-Download 自动下载连接管理??

cmmgr32.exe > Connection Manager 连接管理器

cmmon32.exe > Connection Manager Monitor 连接管理器监视??

cmstp.exe > Connection Manager Profile Manager 连接管理器配置文件安装程序??

comclust.exe > about cluster server 集群??

comp.exe > ComClust Add, Remove, or Join a cluster. 比较两个文件和文件集的内容*??

compact.exe > Displays or alters the compression of files on NTFS??

partitions. 显示或改变NTFS分区上文件的压缩状态??

conime.exe > Console IME IME控制台

control.exe > Starts the control panel 控制面板

convert.exe > Convert File System to NTFS 转换文件系统到NTFS

convlog.exe > Converts MS IIS log files 转换IIS日志文件格式到NCSA格式

cprofile.exe > Copy profiles 转换显示模式

cscript.exe > MS Windows Scripts Host Version 5.1 较本宿主版本

csrss.exe > Client Server Runtime Process 客户服务器Runtime进程??

csvde.exe > Comma Separated Variable Import/Export Utility 日至格式转换程序??

dbgtrace.exe > 和Terminal Server相关??

dcomcnfg.exe > Display the current DCOM configuration. DCOM配置属性??

dcphelp.exe > ? dcpromo.exe > Promote a domain controller to ADSI AD安装向导??

ddeshare.exe > Display DDE shares on local or remote computer DDE共享??

ddmprxy.exe > debug.exe > Runs Debug, a program testing and editing tool. 就是DEBUG啦!

dfrgfat.exe > Defrag FAT file system FAT分区磁盘碎片整理程序

dfrgntfs.exe > Defrag NTFS file system NTFS分区磁盘碎片整理程序

dfs_cmd_.exe > configures a Dfs tree 配置一个DFS树??

dfsinit.exe > Distributed File System Initialization 分布式文件系统初始化??

dfssvc.exe > Distributed File System Server 分布式文件系统服务器??

diantz.exe > MS Cabinet Maker 制作CAB文件??

diskperf.exe > Starts physical Disk Performance counters 磁盘性能计数器??

dllhost.exe > dllhost is used on all versions of Windows 2000. dllhost is the hedost process for

all COM+ applications. 所有COM+应用软件的主进程??

dllhst3g.exe > dmadmin.exe > Disk Manager Service 磁盘管理服务

dmremote.exe > Part of disk management 磁盘管理服务的一部分??

dns.exe > DNS Applications DNS??

doskey.exe > recalls Windows command lines and creates macros 命令行创建宏??

dosx.exe > DOS Extender DOS扩展??

dplaysvr.exe > Direct Play Helper 直接运行帮助

drwatson.exe > Dr Watson for 2000 Fault Detector 华生医生错误检测

drwtsn32.exe > Dr Watson for 2000 viewer and configuration manager 华生医生显示和配置
管理

dtcsetup.exe > Installs MDTC??

dvdplay.exe > Windows 2000 DVD player DVD播放

dxdiag.exe > Direct-X Diagnostics Direct-X诊断工具??

edlin.exe > line-oriented text editor. 命令行的文本编辑器(历史悠久啊!)??

edlin.exe > line-oriented text editor. 命令行的文本编辑器(历史悠久啊!)??

esentutl.exe > MS Database Utility MS数据库工具

eudcedit.exe > Private character editor Ture Type造字程序??

eventvwr.exe > Windows 2000 Event Viewer 事件查看器??

evnt_cmd_.exe > Event to trap translator; Configuration tool??

evntwin.exe > Event to trap translator setup

exe2bin.exe > Converts EXE to binary format 转换EXE文件到二进制??

expand.exe > Expand Files that have been compressed 解压缩??

extrac32.exe > CAB File extraction utility 解CAB工具

fastopen.exe > Fastopen tracks the location of files on a hard disk and stores the information i
n memory for fast access. 快速访问在内存中的硬盘文件??

faxcover.exe > Fax Cover page editor 传真封面编辑??

faxqueue.exe > Display Fax Queue 显示传真队列??

faxsend.exe > Fax Wizard for sending faxes 发送传真向导

faxsvc.exe > Starts fax server 启动传真服务??

fc.exe > Compares two files or sets of files and their differences 比较两个文件的不同??

find.exe > Searches for a text string in file or files 查找文件中的文本行??

findstr.exe > Searches for strings in files 查找文件中的行??

finger.exe > Fingers a user and displays statistics on that user Finger一个用户并显示出统计结果??

fixmapi.exe > Fix mapi files 修复MAPI文件??

flattemp.exe > Enable or disable temporally directories 允许或者禁用临时文件目录??

fontview.exe > Display fonts in a font file 显示字体文件中的字体??

forcedos.exe > Forces a file to start in dos mode. 强制文件在DOS模式下运行??

freecell.exe > Popular Windows Game 空当接龙

ftp.exe > File Transfer Protocol used to transfer files over a network connection 就是FTP了??

gdi.exe > Graphic Device Interface 图形界面驱动

grovel.exe > grpconv.exe > Program Manager Group Convertor 转换程序管理员组??

help.exe > displays help for Windows 2000 commands 显示帮助

hostname.exe > Display hostname for machine. 显示机器的Hostname??

ie4uinit.exe > IE5 User Install tool IE5用户安装工具

ieshwiz.exe > Customize folder wizard 自定义文件夹向导

iexpress.exe > Create and setup packages for install 穿件安装包??

iisreset.exe > Restart IIS Admin Service 重启IIS服务??

internat.exe > Keyboard Language Indicator Applet 键盘语言指示器??

ipconfig.exe > Windows 2000 IP configuration. 察看IP配置??

ipsecmon.exe > IP Security Monitor IP安全监视器??

ipxroute.exe > IPX Routing and Source Routing Control Program IPX路由和源路由控制程序


irftp.exe > Setup FTP for wireless communication 无线连接


ismserv.exe > Intersite messaging Service 安装或者删除??

Service Control Manager中的服务??

jdbgmgr.exe > Microsoft debugger for java 4 Java4的调试器

jetconv.exe > Convert a Jet Engine Database 转换Jet Engine数据库

jetpack.exe > Compact Jet Database. 压缩Jet数据库

jview.exe > Command-line loader for Java Java的命令行装载者??

krnl386.exe > Core Component for Windows 2000 2000的核心组件

label.exe > Change label for drives 改变驱动器的卷标??

lcwiz.exe > License Compliance Wizard for local or remote systems. 许可证符合向导??

ldifde.exe > LDIF cmd line manager LDIF目录交换命令行管理

licmgr.exe > Terminal Server License Manager 终端服务许可协议管理??

lights.exe > display connection status lights 显示连接状况??

llsmgr.exe > Windows 2000 License Manager 2000许可协议管理??

llssrv.exe > Start the license Server 启动许可协议服务器

lnkstub.exe > locator.exe > RPC Locator 远程定位??

lodctr.exe > Load perfmon counters 调用性能计数??

logoff.exe > Log current user off. 注销用户??

lpq.exe > Displays status of a remote LPD queue 显示远端的LPD打印队列的状态,显示被
送到基于Unix的服务器的打印任务

lpr.exe > Send a print job to a network printer. 重定向打印任务到网络中的打印机。通常
用于Unix客户打印机将打印任务发送给连接了打印设备的NT的打印机服务器。

lsass.exe > LSA Executable and Server DLL 运行LSA和Server的DLL??

lserver.exe > Specifies the new DNS domain for the default server 指定默认Server新的DNS域??

macfile.exe > Used for managing MACFILES 管理MACFILES??

magnify.exe > Used to magnify the current screen 放大镜??

makecab.exe > MS Cabinet Maker 制作CAB文件??

mdm.exe > Machine Debug Manager 机器调试管理??

mem.exe > Display current Memory stats 显示内存状态

migpwd.exe > Migrate passwords. 迁移密码??

mmc.exe > Microsoft Management Console 控制台??

mnmsrvc.exe > Netmeeting Remote Desktop Sharing NetMeeting远程桌面共享??

mobsync.exe > Manage Synchronization. 同步目录管理器??

mountvol.exe > Creates, deletes, or lists a volume mount point. 创建、删除或列出卷的装入
点。

mplay32.exe > MS Media Player 媒体播放器??

mpnotify.exe > Multiple Provider Notification application 多提供者通知应用程序??

mqbkup.exe > MS Message Queue Backup and Restore Utility 信息队列备份和恢复工具??

mqexchng.exe > MSMQ Exchange Connector Setup 信息队列交换连接设置??

mqmig.exe > MSMQ Migration Utility 信息队列迁移工具

mqsvc.exe > ???

mrinfo.exe > Multicast routing using SNMP 使用SNMP多点传送路由??

mscdexnt.exe > Installs MSCD (MS CD Extensions) 安装MSCD??

msdtc.exe > Dynamic Transaction Controller Console 动态事务处理控制台??

msg.exe > Send a message to a user local or remote. 发送消息到本地或远程客户??

mshta.exe > HTML Application HOST HTML应用程序主机??

msiexec.exe > Starts Windows Installer Program 开始Windows安装程序

mspaint.exe > Microsoft Paint 画板??

msswchx.exe >??

mstask.exe > Task Schedule Program 任务计划表程序??

mstinit.exe > Task scheduler setup 任务计划表安装??

narrator.exe > Program will allow you to have a narrator for reading. Microsoft讲述人??

nbtstat.exe > Displays protocol stats and current TCP/IP connections using NBT 使用 NBT(T
CP/IP 上的 NetBIOS)显示协议统计和当前 TCP/IP 连接。??

nddeapir.exe > NDDE API Server side NDDE API服务器端??

net.exe > Net Utility 详细用法看/?

net1.exe > Net Utility updated version from MS Net的升级版??

netdde.exe > Network DDE will install itself into the background 安装自己到后台??

netsh.exe > Creates a shell for network information 用于配置和监控 Windows 2000 命令行
脚本接口。

netstat.exe > Displays current connections. 显示协议统计和当前的 TCP/IP 网络连接。??

nlsfunc.exe > Loads country-specific information 加载特定国家(地区)的信息。Windows
2000 和 MS-DOS 子系统不使用该命令。接受该命令只是为了与 MS-DOS 文件兼容。??

notepad.exe > Opens Windows 2000 Notepad 记事本??

nslookup.exe > Displays information for DNS 该诊断工具显示来自域名系统 (DNS) 名称服务
器的信息。??

ntbackup.exe > Opens the NT Backup Utility 备份和故障修复工具??

ntbooks.exe > Starts Windows Help Utility 帮助??

ntdsutil.exe > Performs DB maintenance of the ADSI 完成ADSI的DB的维护??

ntfrs.exe > NT File Replication Service NT文件复制服务??

ntfrsupg.exe > ntkrnlpa.exe > Kernel patch 核心补丁

ntoskrnl.exe > Core NT Kernel KT的核心??

ntsd.exe > ntvdm.exe > Simulates a 16-bit Windows environment 模拟16位Windows环境??

nw16.exe > Netware Redirector NetWare转向器??

nwscript.exe > runs netware scripts 运行Netware脚本??

odbcad32.exe > ODBC 32-bit Administrator 32位ODBC管理

odbcconf.exe > Configure ODBC driver’s and data source’s from command line 命令行配置OD
BC驱动和数据源??

os2.exe > An OS/2 Warp Server (os2 /o) OS/2??

os2srv.exe > An OS/2 Warp Server OS/2 os2ss.exe > An OS/2 Warp Server OS/2??

osk.exe > On Screen Keyboard 屏幕键盘??

packager.exe > Windows 2000 Packager Manager 对象包装程序??

pathping.exe > Combination of Ping and Tracert 包含Ping和Tracert的程序??

pax.exe > is a POSIX program and path names used as arguments must be specified in POSIX

format. Use "//C/Users/Default" instead of "C:\USERS\DEFAULT." 启动便携式存档互换 (Pax) 实用程序??
pentnt.exe > Used to check the Pentium for the floating point division error. 检查Pentium的浮点错误??

perfmon.exe > Starts Windows Performance Monitor 性能监视器??

ping.exe > Packet Internet Groper 验证与远程计算机的连接??

posix.exe > Used for backward compatibility with Unix 用于兼容Unix??

print.exe > Cmd line used to print files 打印文本文件或显示打印队列的内容。??

progman.exe > Program manager 程序管理器

proquota.exe > Profile quota program??

psxss.exe > POSIX Subsystem Application Posix子系统应用程序

qappsrv.exe > Displays the available application terminal servers on the network 在网络上显示终端服务器可用的程序??

qprocess.exe > Display information about processes local or remote 在本地或远程显示进程的信息(需终端服务)

query.exe > Query TERMSERVER user process and sessions 查询进程和对话??

quser.exe > Display information about a user logged on 显示用户登陆的信息(需终端服务)??

qwinsta.exe > Display information about Terminal Sessions. 显示终端服务的信息??

rasadmin.exe > Start the remote access admin service 启动远程访问服务

rasautou.exe > Creates a RAS connection 建立一个RAS连接

rasdial.exe > Dial a connection 拨号连接 rasphone.exe > Starts a RAS connection 运行RAS连接

rcp.exe > Copies a file from and to a RCP service. 在 Windows 2000 计算机和运行远程外壳端口监控程序 rshd 的系统之间复制文件??

rdpclip.exe > RdpClip allows you to copy and paste files between a terminal session and client

console session. 再终端和本地复制和粘贴文件??

recover.exe > Recovers readable information from a bad or defective disk 从坏的或有缺陷的磁盘中恢复可读取的信息。

redir.exe > Starts the redirector service 运行重定向服务??

regedt32.exe > 32-bit register service 32位注册服务??

regini.exe > modify registry permissions from within a script 用脚本修改注册许可??

register.exe > Register a program so it can have special execution characteristics. 注册包含特殊运行字符的程序??

regsvc.exe > regsvr32.exe > Registers and unregister’s dll’s. As to how and where it register’s them I dont know. 注册和反注册DLL

regtrace.exe > Options to tune debug options for applications failing to dump trace statements Trace 设置??

regwiz.exe > Registration Wizard 注册向导??

remrras.exe > replace.exe > Replace files 用源目录中的同名文件替换目标目录中的文件。??

reset.exe > Reset an active section 重置活动部分??

rexec.exe > Runs commands on remote hosts running the REXEC service. 在运行 REXEC 服务的远程计算机上运行命令。rexec 命令在执行指定命令前,验证远程计算机上的用户名,只有安装了 TCP/IP 协议后才可以使用该命令。??

risetup.exe > Starts the Remote Installation Service Wizard. 运行远程安装向导服务??

route.exe > display or edit the current routing tables. 控制网络路由表??

routemon.exe > no longer supported 不再支持了!??

router.exe > Router software that runs either on a dedicated DOS or on an OS/2 system. Route软件在 DOS或者是OS/2系统??

rsh.exe > Runs commands on remote hosts running the RSH service 在运行 RSH 服务的远程计算机上运行命令??

rsm.exe > Mounts and configures remote system media 配置远程系统媒体??

rsnotify.exe > Remote storage notification recall 远程存储通知回显

rsvp.exe > Resource reservation protocol 源预约协议

runas.exe > RUN a program as another user 允许用户用其他权限运行指定的工具和程序??

rundll32.exe > Launches a 32-bit dll program 启动32位DLL程序??

runonce.exe > Causes a program to run during startup 运行程序再开始菜单中??

rwinsta.exe > Reset the session subsystem hardware and software to known initial values 重置会话子系统硬件和软件到最初的值??

savedump.exe > Does not write to e:\winnt\user.dmp 不写入User.dmp中??

scardsvr.exe > Smart Card resource management server 子能卡资源管理服务器??

schupgr.exe > It will read the schema update files (.ldf files) and upgrade the schema. (part of ADSI) 读取计划更新文件和更新计划

secedit.exe > Starts Security Editor help 自动安全性配置管理

services.exe > Controls all the services 控制所有服务??

sethc.exe > Set High Contrast - changes colours and display mode Logoff to set it back to normal 设置高对比??

setreg.exe > Shows the Software Publishing State Key Values 显示软件发布的国家语言??

setup.exe > GUI box prompts you to goto control panel to configure system components 安装程序(转到控制面板)

setver.exe > Set Version for Files 设置 MS-DOS 子系统向程序报告的 MS-DOS 版本号??

sfc.exe > System File Checker test and check system files for integrity 系统文件检查??

sfmprint.exe > Print Services for Macintosh 打印Macintosh服务??

sfmpsexe.exe > sfmsvc.exe > shadow.exe > Monitor another Terminal Services session. 监控另外一台中端服务器会话??

share.exe > Windows 2000 和 MS-DOS 子系统不使用该命令。接受该命令只是为了与 MS-DOS 文件兼容??

shmgrate.exe > shrpubw.exe > Create and Share folders 建立和共享文件夹??

sigverif.exe > File Signature Verification 文件签名验证??

skeys.exe > Serial Keys utility 序列号制作工具??

smlogsvc.exe > Performance Logs and Alerts 性能日志和警报??

smss.exe > sndrec32.exe > starts the Windows Sound Recorder 录音机??

sndvol32.exe > Display the current volume information 显示声音控制信息??

snmp.exe > Simple Network Management Protocol used for Network Mangement 简单网络管理协议 snmptrap.exe > Utility used with SNMP SNMP工具??

sol.exe > Windows Solitaire Game 纸牌 sort.exe > Compares files and Folders 读取输入、排序数据并将结果写到屏幕、文件和其他设备上??

SPOOLSV.EXE > Part of the spooler service for printing 打印池服务的一部分??

sprestrt.exe > srvmgr.exe > Starts the Windows Server Manager 服务器管理器??

stimon.exe > WDM StillImage- > Monitor stisvc.exe > WDM StillImage- > Service subst.exe >

Associates a path with a drive letter 将路径与驱动器盘符关联??

svchost.exe > Svchost.exe is a generic host process name for services that are run from dyna

mic-link libraries (DLLs). DLL得主进程??

syncapp.exe > Creates Windows Briefcase. 创建Windows文件包??

sysedit.exe > Opens Editor for 4 system files 系统配置编辑器??

syskey.exe > Encrypt and secure system database NT账号数据库按群工具??

sysocmgr.exe > Windows 2000 Setup 2000安装程序??

systray.exe > Starts the systray in the lower right corner. 在低权限运行systray??

taskman.exe > Task Manager 任务管理器??

taskmgr.exe > Starts the Windows 2000 Task Manager 任务管理器??

tcmsetup.exe > telephony client wizard 电话服务客户安装??

tcpsvcs.exe > TCP Services TCP服务 .exe > Telnet Utility used to connect to Telnet Server??

termsrv.exe > Terminal Server 终端服务??

tftp.exe > Trivial FTP 将文件传输到正在运行 TFTP 服务的远程计算机或从正在运行 TFTP 服务的远程计算机传输文件

tftpd.exe > Trivial FTP Daemon??

themes.exe > Change Windows Themes 桌面主题??

tlntadmn.exe > Telnet Server Administrator Telnet服务管理??

tlntsess.exe > Display the current Telnet Sessions 显示目前的Telnet会话??

tlntsvr.exe > Start the Telnet Server 开始Telnet服务??

tracert.exe > Trace a route to display paths 该诊断实用程序将包含不同生存时间 (TTL) 值
的 Internet 控制消息协议 (ICMP) 回显数据包发送到目标,以决定到达目标采用的路由??

tsadmin.exe > Terminal Server Administrator 终端服务管理器??

tscon.exe > Attaches a user session to a terminal session. 粘贴用户会话到终端对话

tsdiscon.exe > Disconnect a user from a terminal session 断开终端服务的用户

tskill.exe > Kill a Terminal server process 杀掉终端服务??

tsprof.exe > Used with Terminal Server to query results. 用终端服务得出查询结果??

tsshutdn.exe > Shutdown the system 关闭系统??

unlodctr.exe > Part of performance monitoring 性能监视器的一部分

upg351db.exe > Upgrade a jet database 升级Jet数据库??

ups.exe > UPS service UPS服务

user.exe > Core Windows Service Windows核心服务??

userinit.exe > Part of the winlogon process Winlogon进程的一部分

usrmgr.exe > Start the windows user manager for domains 域用户管理器??

utilman.exe > This tool enables an administrator to designate which computers automatically o

pen accessibility tools when Windows 2000 starts. 指定2000启动时自动打开那台机器

verifier.exe > Driver Verifier Manager Driver Verifier Manager

vwipxspx.exe > Loads IPX/SPX VDM 调用IPX/SPX VDM??

w32tm.exe > Windows Time Server 时间服务器??

wextract.exe > Used to extract windows files 解压缩Windows文件??

winchat.exe > Opens Windows Chat 打开Windows聊天??

winhlp32.exe > Starts the Windows Help System 运行帮助系统??

winlogon.exe > Used as part of the logon process. Logon进程的一部分??

winmine.exe > windows Game 挖地雷??

winmsd.exe > Windows Diagnostic utility 系统信息

wins.exe > Wins Service Wins服务??

winspool.exe > Print Routing 打印路由??

winver.exe > Displays the current version of Windows 显示Windows版本??

wizmgr.exe > Starts Windows Administration Wizards Windows管理向导

wjview.exe > Command line loader for Java 命令行调用Java??

wowdeb.exe > . For starters, the 32-bit APIs require that the WOWDEB.EXE task runs in the t

arget debugee’s VM 启动时,32位API需要??

wowexec.exe > For running Windows over Windows Applications 在Windows应用程序上运行

Windows wpnpinst.exe > ?

write.exe > Starts MS Write Program 写字板??

wscript.exe > Windows Scripting Utility 脚本工具??

wupdmgr.exe > Starts the Windows update Wizard (Internet) 运行Windows升级向导??

xcopy.exe > Used to copy directories 复制文件和目录,包括子目录

-------------------------------------------------------------------------------

winver---------检查Windows版本 
wmimgmt.msc----打开windows管理体系结构(WMI) 
wupdmgr--------windows更新程序 
wscript--------windows脚本宿主设置 
write----------写字板 
winmsd---------系统信息 
wiaacmgr-------扫描仪和照相机向导 
winchat--------XP自带局域网聊天 
mem.exe--------显示内存使用情况 
Msconfig.exe---系统配置实用程序 
mplayer2-------简易widnows media player 
mspaint--------画图板 
mstsc----------远程桌面连接 
mplayer2-------媒体播放机 
magnify--------放大镜实用程序 
mmc------------打开控制台 
mobsync--------同步命令 
dxdiag---------检查DirectX信息 
drwtsn32------ 系统医生 
devmgmt.msc--- 设备管理器 
dfrg.msc-------磁盘碎片整理程序 
diskmgmt.msc---磁盘管理实用程序 
dcomcnfg-------打开系统组件服务 
ddeshare-------打开DDE共享设置 
dvdplay--------DVD播放器 
net stop messenger-----停止信使服务 
net start messenger----开始信使服务 
notepad--------打开记事本 
nslookup-------网络管理的工具向导 
ntbackup-------系统备份和还原 
narrator-------屏幕“讲述人” 
ntmsmgr.msc----移动存储管理器 
ntmsoprq.msc---移动存储管理员操作请求 
netstat -an----(TC)命令检查接口 
syncapp--------创建一个公文包 
sysedit--------系统配置编辑器 
sigverif-------文件签名验证程序 
sndrec32-------录音机 
shrpubw--------创建共享文件夹 
secpol.msc-----本地安全策略 
syskey---------系统加密,一旦加密就不能解开,保护windows xp系统的双重密码 
services.msc---本地服务设置 
Sndvol32-------音量控制程序 
sfc.exe--------系统文件检查器 
sfc /scannow---windows文件保护 
tsshutdn-------60秒倒计时关机命令 
tourstart------xp简介(安装完成后出现的漫游xp程序) 
taskmgr--------任务管理器 
eventvwr-------事件查看器 
eudcedit-------造字程序 
explorer-------打开资源管理器 
packager-------对象包装程序 
perfmon.msc----计算机性能监测程序 
progman--------程序管理器 
regedit.exe----注册表 
rsop.msc-------组策略结果集 
regedt32-------注册表编辑器 
rononce -p ----15秒关机 
regsvr32 /u *.dll----停止dll文件运行 
regsvr32 /u zipfldr.dll------取消ZIP支持 
cmd.exe--------CMD命令提示符 
chkdsk.exe-----Chkdsk磁盘检查 
certmgr.msc----证书管理实用程序 
calc-----------启动计算器 
charmap--------启动字符映射表 
cliconfg-------SQL SERVER 客户端网络实用程序 
Clipbrd--------剪贴板查看器 
conf-----------启动netmeeting 
compmgmt.msc---计算机管理 
cleanmgr-------垃圾整理 
ciadv.msc------索引服务程序 
osk------------打开屏幕键盘 
odbcad32-------ODBC数据源管理器 
oobe/msoobe /a----检查XP是否激活 
lusrmgr.msc----本机用户和组 
logoff---------注销命令 
iexpress-------木马捆绑工具,系统自带 
Nslookup-------IP地址侦测器 
fsmgmt.msc-----共享文件夹管理器 
utilman--------辅助工具管理器 
gpedit.msc-----组策略

8,Unix shell命令
UNIX系统常用命令
UNIX系统常用命令格式:
command [flags] [argument1] [argument2] ...
其中flags以-开始,多个flags可用一个-连起来,如ls -l -a 与ls -la相同。

根据命令的不同,参数分为可选的或必须的;所有的命令从标准输入接受输入,输出
结果显示在标准输出,而错误信息则显示在标准错误输出设备。可使用重定向功能对
这些设备进行重定向。

命令在正常执行结果后返回一个0值,如果命令出错可未完全完成,则返回一个
非零值(在shell中可用变量$?查看). 在shell script中可用此返回值作为控制逻辑
的一部分。

注:不同的UNIX版本的flags可能有所不同。

1、与用户相关的命令
1.1 login
(在LINUX Redhat下此命令功能与Solaris/BSD不同,执行login会退出当前任务).

login:
Password:

相关文件:
在下面的这些文件中设定shell运行时必要的路径,终端类型,其他变量或特殊程序.

$HOME/.profile (Bourne shell, sh, bash)
$HOME/.cshrc (csh, tcsh)
$HOME/.tcshrc (tcsh)
/etc/passwd文件中列出每个用户的shell
/etc/csh.cshrc
/etc/csh.login
/etc/profile (Bourne shell, bash)
/etc/login (Bourne shell, bash)

csh: /etc/csh.cshrc和$HOME/.cshrc每次执行都会读取,
而/etc/csh.login和$HOME/.login只有注册shell才执行
修改相应文件后使用 source .cshrc使能相关修改,如果修改了path则
还需使用rehash刷新可执行文件hash表。

tcsh: $HOME/.tcshrc, 没有些文件读取.cshrc

sh: /etc/profile和$HOME/.profile注册shell
bash: /etc/profile和$HOME/.bash_profile注册shell读取
.bashrc交互式非注册shell才读取。

在sh/bash下手工执行相关文件:
. /etc/profile

相关文件执行顺序
sh: /etc/profile -> $HOME/.profile
csh/tcsh: /etc/csh.cshrc -> /etc/csh.login -> $HOME/.cshrc
-> $HOME/.login

变量的设置:
sh/bash: TERM=vt100; export TERM
OR: export TERM=vt100 (bash)
csh: setenv TERM vt100

常用变量:
(1)Backspace $HOME/.profile $HOME/.cshrc
stty erase ^H
(2)umask 新建文件或目录的保护属性
(3)TERM
(4)切忌PATH中加入 .

1.2. rlogin
与telnet类似,连接到远程主机.

rlogin remotehost [ -l loginname ]
Or:
rsh [-l loginname] remotehost [command ]

相关文件:
远程主机的 /etc/hosts.equiv 和 $HOME/.rhosts

相关网络配置文件:
/etc/inetd.conf文件中的r系统服务.Redhat下为shell, login, exec, 对应
的网络守护进程(daemon)为in.rshd, in.rlogind, in.rexecd.

建议: 从安全角度出发,关闭r系列服务.

1.3. telnet
telnet remotehost [port]

相关文件:
/etc/inetd.conf文件中的telnet服务.
/etc/issue.net

TIPS: strings /usr/sbin/in.telnetd |egrep issue

1.4. passwd 更改口令

1.5 exit 退出当前shell


2. 命令或文件的查找
相关shell变量:
csh/tcsh: $path
.cshrc set path=(/usr/bin /usr/local/bin $path)
sh/bash: $PATH
.profile .bash_profile
PATH=/usr/local/bin:$PATH; export PATH

2.1 which
Syntax: which command

which为bash/tcsh内带命令
[hbwork@toshiba]$ which which
which: shell built-in command.
2.2 where(tcsh)
Syntax: where command
2.3 locate (LINUX)
Syntax: locate filename

相关命令: updatedb更改locate文件名数据库

3. 查看命令的用法
man
相关文件:
/etc/man.config

4. 管理员常用命令

4.1 install
用于安装一个新的命令或daemon等. 一般情况下可以不用,但很多软件在其安装
shell script中使用install将目标文件复制到相应的目录并设置正确的属性等.


NAME
install - copy files and set their attributes

SYNOPSIS
install [options] [-s] [--strip] source dest
install [options] [-s] [--strip] source... directory
install [options] [-d,--directory] directory...
Options:
[-c] [-g group] [-m mode] [-o owner] [--group=group]
[--mode=mode] [--owner=owner] [--help] [--version]

4.2 shutdown
不同的unix参数不尽相同,在linux下常用如下方式关机:
shutdown -h now
shutdown -r now (等同于reboot)

4.3 halt
poweroff
关机,在多用户方式下(Runlevel 3)不建议使用,

4.4 ulimit
korn shell和bourne shell中可用此命令,在csh系列中相应的命令为limit.
用于限制每个进程可使用的系统资源,通常分两种限制:
. Hard limits 系统所定义的资源,只有root能更改
. 软限制 对新建进程所使用的限制,可增加到系统的Hard Limit.

Flags:
-a 列出软限制
-Ha 列出Hard Limit
-c size 设置coredump size的块大小
-t size cputime
-f size file size

4.5 umask 系统管理员用于设置用户默认的umask值.


5.与进程相关的命令

进程基本概念: 进程与命令的执行相关,但并不是一一对应; 一条命令可能对应若干
个进程(如shell script, pipe等).但最简单的命令与umask只有一个进程.

进程分类:
.交互式进程:可以前台或后台执行,前后台可切换
.批处理进程:不通过终端提交,一般将它们放在任务队列中顺序执行. 如通过
at 和 crontab提交的任务.
.deamon:永不终止的进程,等待响应来自其他进程的服务请求.如sendmail,
named(DNS), POP3及apache等.

进程的相关属性:
PID
Real UID
Effective UID (SUID)
Real GID
Effective GID (SGID)
Priority(Nice Number)执行的优先级

5.1 ps
Process Status, 列出当前运行的进程状态,根据选项不同,可列出所有的或部分进程
. 无选项时只列出从当前终端上启动的进程(SYSV)或当前用户($USER)的进程(BSD),
不同的UNIX版本之间有差别. linux使用BSD版本的ps
. BSD版本ps命令使用方法:
ps
ps aux 列出系统中所有的进程的详细情况
ps aux |egrep inetd

输出信息内容:
PID
Terminal 如无相应终端则为-
cpu time
UserID or Username
进程启动时间或日期
进程状态(Stat: S(leep) R(unnable) D(uninterrupt sleep) Z(ombie)
W 进程没有驻留页面, N: 进程的nice值为负值

5.2 kill
kill [-signal] PID

kill -l 列出可用信号量
常用信息量:
-HUP (1) 重启进程
ps ax |egrep inetd
kill -HUP pid_of_inetd
-KILL (9) 强制中止

PID取值含义:
>0 指特定进程(实际进程)
=0 同组用户的所有process(PGID)
=-1 Effective UID = 执行命令用户之uid
<0 && !=1 取绝对值之进程

5.3 nice
用于改变一个或多个进程的优先级; 但只有root或提高进程的优先级, 普通用户只能
降低进程的优先级.
nice用负数表示提高优先级,而正数表明降低优先级,通常此值范围是-20~20.

如未指定提高优先级,nice会降低或不改变进程的优先级. 当然如果没有权限的话
进程的优先级不会有任何改变.

一般情况下我们用nice来降低后台进程的优先级(默认优先级为10).

nice find . -name "*.c" -print &
nice 16 find . -name "*.c" -print &

5.4 wait
wait PID

等待作业结束,参数为pid,在shell script中有时用到.

5.5 nohup
nohup command &

5.6 sleep

sleep seconds

进程前后台切换: Ctrl-Z, fg, bg


6. 通讯

6.1 ftp
6.2 mailx
6.3 minicom (串口终端,MODEM)

7. 文件比较
cmp
comm
diff (用于比较文本文件)
diff3 (比较3个文件)
sdiff

8. 文件操作
touch 创建文件,修改文件日期等
chmod
chwon
chgrp
rm 慎用 rm -rf
mv 移动文件或改名
cp cp -r 复制目录
cat
rcp 远程复制
ln 默认情况下为硬连接,每个文件具有相同的inode
ln -s sourcefile targetfile

9. 目录操作
mkdir [-p] [-m mode] directory
rmdir [-p] directory

10. 文件信息命令
ls
find
最基本的功能是查找一个文件名或目录,常用格式如下:
find . -print (类似于 ls -lR)

find可使用如下属性进行查找:
-name 查找文件名,含通配符*?的文件名用引号括起来
-perm 00x000 八进制文件属性
-atime n n天之前访问过的文件
-mtime n n天之间修改过的文件
-ctime n 文件的状态在n前之间修改过
-exec command 如命令的返回代码为零(找到相应的文件)则真,command必须以
\; 结果,此外在命令的执行中 {} 为查找到的文件路径名
-ok command 与exec相类似,但在执行每个命令之间要求用户确认
-print 打印当前路径名
-newer filename 如文件的最后修改日期较filename新则为真
-type c c=[b,c,d,l,p,f]文件类型
-user username 如文件的属主为username则为真
-nouser 文件属主在/etc/passwd文件中不存在
-group grouname 文件组

逻辑运算符: -a -o !

示列:
find $HOME \( -name a.out -o -name "*.o" \) -atime +7 -exec rm {} \;
find . -atime 0 -print
find / .name .profile -print
find . -perm 777 -a -mtime 7 -exec chmod 755 {} \;


file
more
less
tail (tail -f filename)
head
wc
read 用于shell编程
col
pg (SYSV)

11. 编辑器
vi
ed
joe

12. 文件内容查找
grep
egrep
正规表达式: . * ^ $ + ? []

strings


13. 任务调度
at
atq 列出队列中的任务
crontab

14. 存储,归纳及压缩
compress .Z
uncompress .Z
cpio
dd dd if=inputfile of=outputfile
dd if=boot.img of=/dev/fd0H1440
pack .z 30%-50%文本文件
pcat pact file.z
gzip .gz
gunzip
tar tar -[txc]vf targetfile [sourcefile]
tar -cvf target.tar sourcefilelist
tar -tvf target.tar [filename]
tar -xvf target.tar [filename]
GNU TAR:
tar -zcvf target.tar.gz sourcefilelist
tar -zxvf target.tar.gz [filelist]
tar -ztvf target.tar.gz [filelist]

zcat .Z

uuencode
uudecode

15. 其他命令
date
env
unix2dos (linux没有)
dos2unix
uname
uptime
free
time
top

16. 文本处理
cut
fmt 每行格式转化为72列,用于邮件格式化
fold 折行处理,一行到多行,一般为80列
join
paste
sort
tr
tr '\"' '' < file1

#!/bin/sh

for i in *
do
mv $i `echo $i |tr /[a-z]/[A-Z]/`
done

uniq 报告/删除文件中相同的复制行
sed 流编辑器
sed 's/96/tt/' student.txt
awk
awk '{print $1" "$2}' sourcefile
awk -f class.awk student.txt > linux-student.txt
文件class.awk内容如下:

#
#class.awk
#
BEGIN {printf "%-12s%s\n","班级","学号 姓名";
printf "-------------------------------------------\n\n"}
/[1-9]+\B*$/ {class=$0}
/^9[5-8]+/ {printf "%-12s%s\n", class,$0 | "sort"}
#Enf of class.awk

awk -f traffic.awk traffic.txt
文件traffic.awk内容如下:
#
#traffic.awk
#
{ if ( $2 < 10000 ) t_0 += $2;
if ( $2 > 10000 && $2 < 50000) t_10 += $2;
if ( $2 > 50000 && $2 < 100000) t_50 += $2;
if ( $2 > 100000) t_100 += $2;
total += $2 }
END {printf "t_0 = %dKB %5.2f\%\n",t_0,t0*100/total;
printf "t_10 = %dKB %5.2f\%\n",t_10,t10*100/total;
printf "t_50 = %dKB %5.2f\% \n",t_50,t_50*100/total;
printf "t_100 = %dKB %5.2f\%\n",t_100,t_100*100/total;
printf "Total = %dKB\n", total}

#End of traffic.awk


17. 网络配置命令及故障排除命令
17.1 ifconfig
Interface Config , 网卡配置命令, 相关文件:/proc/net/dev
详细使用说明: man ifconfig

示例:
#ifconfig
lo Link encap:Local Loopback
网卡标识 封装类型: 本地回环

inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
IP地址:127.0.0.1 广播地址:127.255.255.255 子网掩码:255.0.0.0

UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
已启动 接受广播 本地回环 正在运行 最大传输单元: 3584 路由距离向量:1

RX packets:718 errors:0 dropped:0 overruns:0 frame:0
已接受数据包:718

TX packets:718 errors:0 dropped:0 overruns:0 carrier:0
已发送数据包:718

collisions:0
碰撞:0

eth0 Link encap:Ethernet HWaddr 00:80:C8:4C:6A:D0
网卡标识 封装类型: Ethernet 硬件(MAC)地址: 00:80:C8:4C:6A:D0

inet addr:202.118.66.81 Bcast:202.118.66.255 Mask:255.255.255.0
IP地址:202.118.66.81 广播地址:202.118.66.255 子网掩码:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
已启动 接受广播 正在运行 多点广播 最大传输单元: 1500 路由距离向量:1

RX packets:13900 errors:0 dropped:0 overruns:0 frame:0
已接受数据包:13900

TX packets:5859 errors:0 dropped:0 overruns:0 carrier:0
已发送数据包:5859

collisions:0
碰撞:0

Interrupt:10 Base address:0xe400
中断(IRQ):10 端口地址: 0xe400

#ifconfig eth0 显示eth0的相关信息
#ifconfig -a 显示所有网络设备的配置信息
#ifconfig eth0 down Down掉eth0
#ifconfig eth0 202.118.66.81 broadcast 202.118.66.255 [up]
#ifconfig eth0 202.118.66.81 broadcast 202.118.66.255 netmask 255.255.255.0
#ifconfig eth0 up

17.2 route
路由表维护命令, 相关文件: /proc/net/route

$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 49 eth0
192.168.1.0 * 255.255.255.0 U 0 0 655 eth1
192.168.2.0 * 255.255.255.0 U 0 0 498 eth2
192.168.3.0 * 255.255.255.0 U 0 0 825 eth3
127.0.0.0 * 255.0.0.0 U 0 0 13 lo
default olive.dlut.edu. 0.0.0.0 UG 1 0 4834 eth0

#route add default gw 202.118.66.1
#route add default gw 202.118.66.1 eth0
#/sbin/route add -net 202.118.68.0 netmask 255.255.252.0 gw 202.118.66.16
#/sbin/rouet del default 202.118.66.1
#/sbin/route del -net 202.118.68.0 netmask 255.255.252.0 gw 202.118.66.16


17.3 netstat
显示主机当前路由表, 相关文件: /proc/net/route
netstat -rn
/home/hbwork[102]netstat -rn

Routing Table:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
202.118.70.27 202.118.66.16 UGHD 0 1
202.118.69.254 202.118.66.16 UGHD 0 1
202.118.68.243 202.118.66.16 UGHD 0 1
202.118.70.21 202.118.66.16 UGHD 0 0
202.118.71.10 202.118.66.16 UGHD 0 1
202.118.71.204 202.118.66.16 UGHD 0 1
202.118.68.160 202.118.66.16 UGHD 0 1
202.199.128.52 202.118.66.254 UGHD 0 2
202.118.68.66 202.118.66.16 UGHD 0 1
202.118.69.69 202.118.66.16 UGHD 0 1
202.118.69.228 202.118.66.16 UGHD 0 1
202.118.71.68 202.118.66.16 UGHD 0 1
202.118.70.37 202.118.66.16 UGHD 0 1
202.118.66.0 202.118.66.18 U 3 12259 hme0
224.0.0.0 202.118.66.18 U 3 0 hme0
default 202.118.66.1 UG 0 70354
127.0.0.1 127.0.0.1 UH 0 41316 lo0

Destionation: 目标网络或主机
Gateway: 下一个路由,认为距离目标较近的路由的IP地址,在数据传送时将发往
这一IP地址.
Flags:
U Router is up, 目标可达
H Specific router,到特定主机的路由
G 此路由为其他路由进行间接访问到的,如果没有G标志则表明相应的
路由器或主机是直接连接在相应的路由器上的.
D 此路由是ICMP协议的路径重定向信息所建立的.
M 由ICMP之重定向信息所修改

REFS: 在此路由上现在正在使用的链接数,这些连接可能是由连续时间较长的ftp或
telnet任务, 每个使用tcp的服务或应用在执行时此列值均加1.

Use: 自TCP/IP启动以来通过此路由器的数据包量.

Interface: 网卡逻辑名,UNIX不同取名不同.


17.4 nslookup
Name Server Lookup, DNS服务器诊断工具
使用示列:
[hbwork@helius hbwork]$ nslookup www.dlut.edu.cn
Server: cedrus.dlut.edu.cn
Address: 202.118.66.6

Name: peony.dlut.edu.cn
Address: 202.118.66.18
Aliases: www.dlut.edu.cn

[hbwork@helius hbwork]$ nslookup
Default Server: cedrus.dlut.edu.cn
Address: 202.118.66.6

> www.dlut.edu.cn
Server: cedrus.dlut.edu.cn
Address: 202.118.66.6

Name: peony.dlut.edu.cn
Address: 202.118.66.18
Aliases: www.dlut.edu.cn
> set q=ns #查询相应域的DNS服务器
> dlut.edu.cn #输入要查询的域名
Server: cedrus.dlut.edu.cn #默认域名服务器为cedrus.dlut.edu.cn
Address: 202.118.66.6 #参考/etc/resolv.conf文件

dlut.edu.cn nameserver = gingko.dlut.edu.cn
dlut.edu.cn nameserver = olive.dlut.edu.cn
dlut.edu.cn nameserver = cedrus.dlut.edu.cn
gingko.dlut.edu.cn internet address = 202.118.66.8
olive.dlut.edu.cn internet address = 202.118.68.1
olive.dlut.edu.cn internet address = 202.118.69.1
olive.dlut.edu.cn internet address = 202.118.70.1
olive.dlut.edu.cn internet address = 202.118.71.1
olive.dlut.edu.cn internet address = 202.118.66.16
cedrus.dlut.edu.cn internet address = 202.118.66.6

> dl.lnpta.net.cn #查询dl.lnpta.net.cn的域名服务器
Server: cedrus.dlut.edu.cn
Address: 202.118.66.6

Non-authoritative answer:
dl.lnpta.net.cn nameserver = ns.lnpta.net.cn

Authoritative answers can be found from:
ns.lnpta.net.cn internet address = 202.96.64.68

> server ns.lnpta.net.cn
Default Server: ns.lnpta.net.cn
Address: 202.96.64.68

server: ns.lnpta.net.cn
Address: 202.96.64.68

Non-authoritative answer:
www.dlut.edu.cn canonical name = peony.dlut.edu.cn
> dlut.edu.cn #查询域dlut.edu.cn的MX记录
Server: ns.lnpta.net.cn
Address: 202.96.64.68

Non-authoritative answer:
dlut.edu.cn preference = 1, mail exchanger = gingko.dlut.edu.cn

Authoritative answers can be found from:
dlut.edu.cn nameserver = gingko.dlut.edu.cn
dlut.edu.cn nameserver = CEDRUS.dlut.edu.cn
dlut.edu.cn nameserver = olive.dlut.edu.cn
gingko.dlut.edu.cn internet address = 202.118.66.8
CEDRUS.dlut.edu.cn internet address = 202.118.66.6
olive.dlut.edu.cn internet address = 202.118.71.1
olive.dlut.edu.cn internet address = 202.118.66.16
olive.dlut.edu.cn internet address = 202.118.68.1
olive.dlut.edu.cn internet address = 202.118.69.1
olive.dlut.edu.cn internet address = 202.118.70.1
> exit

17.5 ping
TCP/IP ICMP(Internet Control Message Protocol)诊断工具

ping [hostname|IpAddress]

Error Message: host unreachable
network unreachable

[hbwork@helius hbwork]$ ping 202.118.66.1
PING 202.118.66.1 (202.118.66.1): 56 data bytes
64 bytes from 202.118.66.1: icmp_seq=0 ttl=255 time=23.1 ms
64 bytes from 202.118.66.1: icmp_seq=1 ttl=255 time=2.1 ms
64 bytes from 202.118.66.1: icmp_seq=2 ttl=255 time=1.9 ms

--- 202.118.66.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.9/9.0/23.1 ms

17.6 hostname
显示或设置主机名

17.7 domainname
显示或设置主机域名

17.8 traceroute
Windows 95: tracert

traceroute hostname
traceroute destionation_ip_address
17.9 arp
显示或设置相应主机/ip地址的mac地址
相关文件: /proc/net/arp
cat /proc/net/arp

$arp hostname
$arp -a
$arp ip_address

显示或设置主机名需要root权限
#arp -s hostname eth_address [temp] [pub]
#arp -d hostname
#arp -d ip_address
#arp -f mac_ip_map_file 常用文件名为/etc/ether



 

分享按钮发布于: 2008-10-07 21:54 Akimond 阅读(1486) 评论(0)  编辑 收藏

评论

标题
姓名
主页
内容 
  登录  使用高级评论  Top 订阅回复  取消订阅
[使用Ctrl+Enter键可以直接提交]