日期:2014-05-16  浏览次数:20834 次

Linux常用命令集

http://linux.chinaitlab.com/special/linuxcom/

?

http://www.ccidnet.com/images/tech/linux/zhuanti/mingling/index.htm

?

中文乱码解决:

root@localhost ~]# cd /etc/sysconfig/
[root@localhost sysconfig]# cp i18n i18n.bak??? #备份i18n文件
[root@localhost sysconfig]# echo "" >i18n
[root@localhost sysconfig]# vi i18n??????#加入以下内容
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"

重新连接后中文显示正常
[root@mail ~]# service vsftpd restart
关闭 vsftpd:????????????????????????????????????????????? [? 确定? ]
为 vsftpd 启动 vsftpd:?????????????????????????? ???? [? 确定? ]

?

在linux下抓包在xp下的wireshark下查看:

[mobile@s1 ~]$ whereis tcpdump
tcpdump: /usr/sbin/tcpdump /usr/share/man/man8/tcpdump.8.gz
[root@s1 ~]# touch abc.dump
[root@s1 ~]# /usr/sbin/tcpdump tcp prot 80 -w abc.dump
tcpdump: syntax error
[root@s1 ~]# /usr/sbin/tcpdump tcp port 80 -w abc.dump
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes


? packets captured
317 packets received by filter
0 packets dropped by kernel
[root@s1 ~]# sz abc.dump

?