2009年11月19日 09:57
2009年11月16日 15:31
_xdc_._1g22wypmu && _xdc_._1g22wypmu( {
"name": "北京鼎好电子",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [ {
"id": "p1",
"address": "中华人民共和国北京海淀区海淀大街3号鼎好电子商城",
"AddressDetails": {
"Accuracy" : 9,
"Country" : {
"CountryName" : "中国",
|
2009年11月12日 10:27
expr 运算符两边都一定要有空格,不然不会计算
expr 3+5原样输出3+5
expr 3 + 5才会输出8
把邮件地址后域名排序,以@为分隔符,第二个字段为索引键
sort -t@ -k 2
-d, --dictionary-order
consider only blanks and alphanumeric characters
-f, --ignore-case
fold lower case to upper case characters
-g, --general-numeric-sort
compare according to general numerical value
-i, --ignore-nonprinting
consider only printable characters
|
2009年11月10日 11:06
-i 参数把指定的文件内容当做正文
-a参数发附件
mutt -s "邮件主题" -i "正文文件名" 收件邮件
发送html邮件,一定要mutt 1.5.x版本,1.4不支持content_type变量, 用my_hdr加的gmail不支持
set content_type=text/html 一定要,不然识别不出html编码,显示为普通文本。mutt1.5.x版本才支持
set charset="utf-8" 这个一定要设置,不然通过shell脚本crontab定时发信时显示的编码为unknown-8bit,识别不出编码来
set content_type="text/html"
se |
2009年10月28日 00:03
watch周期性执行指定命令, 使用sh -c运行,需要自己加引号
观察超时连接,-d 高亮显示差异
watch -d " netstat -ant|grep TIME_WAIT" |
2009年10月25日 22:19
列举打开的unix socket文件
lsof -U
列举ipv4
lsof -i4 @192.168.1.108
lsof -p pid
For a more extensive set of examples, documented more fully, see the
00QUICKSTART file of the lsof distribution.
To list all open files, use:
lsof
To list all open Internet, x.25 (HP-UX), and UNIX domain files, use:
lsof -i -U
To list all open IPv4 network files in use by the process whose PID is
1234, use |
2009年10月25日 22:14
ulimit -a 显示所有限制参数
NAME
bash, :, ., [, alias, bg, bind, break, builtin, cd, command, compgen,
complete, continue, declare, dirs, disown, echo, enable, eval, exec,
exit, export, fc, fg, getopts, hash, help, history, jobs, kill, let,
local, logout, popd, printf, pushd, pwd, read, readonly, return, set,
shift, shopt, source, |
2009年10月23日 13:27
NAME
netperf - a network performance benchmark
SYNOPSIS
netperf [global options] -- [test specific options]
DESCRIPTION
Netperf is a benchmark that can be used to measure various aspects of networking performance. Currently, its focus is on bulk data transfer and request/response
performance using either TCP or UDP, and the Berkeley Sockets interface. In addition, tests for DLPI, and Unix Domain Sockets, tests for IPv6 may |
2009年10月23日 13:26
NAME
iperf - perform network throughput tests
SYNOPSIS
iperf -s [ options ]
iperf -c server [ options ]
iperf -u -s [ options ]
iperf -u -c server [ options ]
DESCRIPTION
iperf is a tool for performing network throughput measurements. It can test either TCP or UDP throughput. To perform an iperf test the user must establish both a
server (to discard traffic) and a client (to generate traffic).
GENERAL |
2009年10月22日 15:40
http://jiebaiyou.blog.163.com/blog/static/116249018200972215016516/
chariot
http://down.chinaz.com/soft/10705.htm
8.0 Network 监控介绍
在所有的子系统监控中,网络是最困难的.这主要是由于网络概念很抽象.当监控系统上的网络性能,这有太多因素.这些因素包括了延迟,冲突,拥挤和数据包丢失.
这个章节讨论怎么样检查Ethernet(译注:网卡),IP,TCP的性能.
8.1 Ethernet Configuration Settings(译注:网卡配置的设置)
除非很明确的指定,几乎所有的网卡都是自适应网络速度.当一个网络中 |
|
|
|