php 10684 500 3u IPv4 1890733 0t0 TCP 202.116.70.21:48785->140.90.101.63:80 (SYN_SENT) sshd 10692 0 3r IPv4 1890422 0t0 TCP 202.116.70.21:22->58.254.4.117:2268 (ESTABLISHED) sshd 10702 500 3u IPv4 1890422 0t0 TCP 202.116.70.21:22->58.254.4.117:2268 (ESTABLISHED) sshd 10702 500 9u IPv4 1890569 0t0 TCP 127.0.0.1:6010 (LISTEN) sshd 10754 0 3r IPv4 1890641 0t0 TCP 202.116.70.21:22->202.116.70.153:60307 (ESTABLISHED)
想安装ipython,直接用pip貌似出错
pip install ipython,出错
OSError: [Errno 2] No such file or directory: ‘/usr/local/lib/python2.7/site-packages/setuptools-1.4.2-py2.7.egg’
根据官方安装说明,加入
pip install “ipython[all]”
即可。
iconv转码函数非常好用,可以直接在命令行下进行数据转码,例子:
iconv weawher_coop1 -f gbk -t UTF-8 -o weather_coop1.utf-8
split函数可以按行分隔文件:
split -l 10000 -d -a 4 weather_coop1.utf-8 ./splited-noreject/weather
10000行一个文件,后缀为4位数字。