![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
大漠山鹰
strong, touch, cool, detached, with traditional views of masculinity
展开
-
linux cat 命令学习
cat 命令学习笔记:# 一个参考的例子http://www.sudu.cn/info/html/edu/20070101/290711.htmlpart 1: 查看cat 命令的帮助:$man catCAT(1原创 2011-09-04 11:09:24 · 639 阅读 · 0 评论 -
python built-in function 学习笔记
part 1: 几个参考的页面:built-in functions:http://docs.python.org/library/functions.htmlpython 内建函数:http://hi.baidu.com/c2cjushi/blog/item/3原创 2011-09-27 20:57:49 · 10401 阅读 · 0 评论 -
UDP socket client
一个 upd socket client 的例子:#!/usr/bin/env pythonfrom socket import *HOST = '124.193.174.42'PORT = 10025BUFSIZE = 1024ADDR = (HOST, PORT)udpCliSock = socket(AF_INET, SOCK_DGRAM)while True: data = ra原创 2015-08-02 17:58:27 · 269 阅读 · 0 评论 -
ssh无密码登陆
之前的一个脚本:sudo scp ydcws@192.168.108.44:/home/ydcws/.ssh/id_rsa.pub .sudo cat id_rsa.pub >>/home/ydcws/.ssh/authorized_keyssudo rm id_rsa.pub原创 2015-08-02 17:50:40 · 276 阅读 · 0 评论 -
rsync 命令
每隔10分钟同步一次 pabb# rsync /var/pabb from app01*/10 * * * * root rsync -vzrtopg --progress --delete backup@192.168.108.44::pabb /var/pabb原创 2015-08-02 17:55:12 · 214 阅读 · 0 评论 -
阿里云ECS添加swap分区
查看当前是没有swap的$ free -m total used free shared buffers cachedMem: 498 310 187 0 17 170-/+ buffers/cache: 122原创 2015-10-19 17:07:34 · 1016 阅读 · 0 评论