Chinaunix首页 | 论坛 | 博客
  • 博客访问: 593944
  • 博文数量: 1958
  • 博客积分: 44693
  • 博客等级: 大将
  • 技术积分: 22125
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-29 15:19
文章分类

全部博文(1958)

文章存档

2012年(560)

2011年(1398)

分类: LINUX

2011-11-16 22:30:16

这个是完全手册上的
root@ubuntu:/home/zhangbin# vi .kermrc
root@ubuntu:/home/zhangbin# kemit -c
No command 'kemit' found, did you mean:
 Command 'kermit' from package 'ckermit' (multiverse)
kemit: command not found
root@ubuntu:/home/zhangbin# ckemit -c
No command 'ckemit' found, did you mean:
 Command 'cmemit' from package 'infernal' (universe)
ckemit: command not found
root@ubuntu:/home/zhangbin# ckemit
No command 'ckemit' found, did you mean:
 Command 'cmemit' from package 'infernal' (universe)
ckemit: command not found


root@ubuntu:/home/zhangbin# kermit -c
-l or -j or -X required



root@ubuntu:/home/zhangbin# man perror
root@ubuntu:/home/zhangbin# man perror > man_perror.txt
root@ubuntu:/home/zhangbin# gedit man_perror.txt
root@ubuntu:/home/zhangbin# man memcpy
root@ubuntu:/home/zhangbin# man memcpy > man_memcpy.txt
root@ubuntu:/home/zhangbin# man memcpy > man_memcpy.txt
root@ubuntu:/home/zhangbin# gedit  man_memcpy.txt



root@ubuntu:/home/zhangbin# netstat -pa --tcp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:46223                 *:*                     LISTEN      1247/rpc.mountd 
tcp        0      0 *:sunrpc                *:*                     LISTEN      662/portmap     
tcp        0      0 localhost:ipp           *:*                     LISTEN      1397/cupsd      
tcp        0      0 *:35287                 *:*                     LISTEN      -               
tcp        0      0 *:nfs                   *:*                     LISTEN      -               
tcp        0      0 *:37603                 *:*                     LISTEN      907/rpc.statd   
tcp        1      0 192.168.1.20:54452      117.104.136.25:www      CLOSE_WAIT  1989/clock-applet
tcp6       0      0 localhost:ipp           [::]:*                  LISTEN      1397/cupsd      
root@ubuntu:/home/zhangbin# netstat -pa --tcp | grep inetaddr
root@ubuntu:/home/zhangbin# netstat -pa --tcp > /dev/null
root@ubuntu:/home/zhangbin# lsof -i tcp 
COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
portmap    662   daemon    5u  IPv4   3598      0t0  TCP *:sunrpc (LISTEN)
rpc.statd  907    statd    9u  IPv4   4153      0t0  TCP *:37603 (LISTEN)
rpc.mount 1247     root    8u  IPv4   4748      0t0  TCP *:46223 (LISTEN)
cupsd     1397     root    5u  IPv6  12406      0t0  TCP localhost:ipp (LISTEN)
cupsd     1397     root    6u  IPv4  12407      0t0  TCP localhost:ipp (LISTEN)
clock-app 1989 zhangbin   22u  IPv4  88042      0t0  TCP 192.168.1.20:54452->117.104.136.25:www (CLOSE_WAIT)
root@ubuntu:/home/zhangbin# lsof -i tcp | grep inetaddr
root@ubuntu:/home/zhangbin# 

阅读(1112) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~