这个是完全手册上的
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#
阅读(1190) | 评论(0) | 转发(1) |