当前位置: 首页 > 2010年9月发布的所有日志
  • change linux swap size

    cat /proc/swaps
    free -m
    dd if=/dev/zero of=swapfile bs=1M count=8192
    swapoff -a
    mkswap swapfile
    swapon swapfile
    cat /etc/fstab
    /usr/swapfile swap    swap    defaults        0       0
    阅读全文
    作者:u2 | 分类:linux
    change linux swap size已关闭评论
  • use openvpn client in ubuntu

    #install openvpn and resovconf$sudo apt-get install openvpn $sudo apt-get install resovconf $sudo cat client.conf.mytestclient;dev tapdev tun;dev-node MyTapproto tcp;proto udpremote your-vpn-domain 1001remote your-vpn-domain 1002remote-randomresolv-retry infinitenobind;user nobody;group nogroupp ...

    阅读全文
    作者:u2 | 分类:OpenSource
    use openvpn client in ubuntu已关闭评论
  • a script of awk array – just mark

    Just mark it. 🙂 #!/bin/shawk -F”_t_7_Y_” ‘{if($1==1) {printf $2; for(i=3;i<=NF;i++) if(i==NF) print $i;else printf $i}}’ temp1  > 1.txtawk -F”_t_7_Y_” ‘{if($1==2) if($2 in S22){S22[$2]=$2;S23[$2]=$3″ “S23[$2];N2[$2]++}else {S22[$2 ...

    阅读全文
    作者:u2 | 分类:shell | 标签:
    a script of awk array – just mark已关闭评论