跳至内容

小顾de杂记

O(∩_∩)O~|Across the great wall we can reach the every corner in the world.

Google自定义搜索

2010 年 11 月
一 二 三 四 五 六 日
1234567
891011121314
15161718192021
22232425262728
2930  
« 10 月   12 月 »

近期评论

  • Hack All 发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》
  • cancan 发表在《家庭拨号动态前缀IPv6环境下的内部设备IPv6地址的端口放通》
  • ihipop 发表在《IPv6地址自动配置中的有状态(stateful)和无状态(stateless)的区别》
  • ihipop 发表在《IPv6地址自动配置中的有状态(stateful)和无状态(stateless)的区别》
  • source 发表在《IPv6地址自动配置中的有状态(stateful)和无状态(stateless)的区别》
  • Ian 发表在《蒲公英 X3-3251 root 后的一些配置与共识》
  • 了然如一 发表在《导入Fiddler的DER格式的根证书为安卓系统证书》
  • 了然如一 发表在《阿里云官网给的PHP、GO的OSS直传签名的时间算法是错的》
  • Tan nSDF 发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》
  • Tan nSDF 发表在《反向编译OpenWrt的Lua字节码 (Decompile Lua bytecode of OpenWRT)》

标签

  • Apache
  • CentOS
  • CentOS 5
  • chnroutes
  • cron
  • debian
  • discuz
  • DiscuzX
  • DNSMASQ
  • exec
  • FreeRadius
  • Http
  • IPSec
  • Iptables
  • IPv6
  • javascript
  • jQuery
  • L2TP
  • Linux
  • MySQL
  • NAGIOS
  • nginx
  • OpenVPN
  • php
  • phpQuery
  • pptp
  • Python
  • rtorrent
  • sed
  • shell
  • Simultaneous-Use
  • SSH
  • SVN
  • ubuntu
  • vpn
  • μtorrent
  • 中文
  • 乱码
  • 加密
  • 日志
  • 模板
  • 脚本
  • 解析
  • 路由
  • 转换

日期: 2010 年 11 月 19 日

在linux shell中使用for遍历产生的递增数字序列的N种方法

使用seq产生

[bash]for i in seq 1 100;do
echo $i
done[/bash]

使用条件循环

[bash]for((i=1;i<100;i++));do
echo $i
done[/bash]

使用while循环

[bash]i=1
whil[......]

继续阅读

发布于 2010年11月19日2011年02月25日分类 Linux Manger标签 for、seq、shell、加减、循环、数字、路由表、递增在linux shell中使用for遍历产生的递增数字序列的N种方法有 1 条评论

使用命令行进行PPTP VPN拨号

sudo pptpsetup --create vpnname --server ip --username test --password test --encrypt --start

start参数表示立即开始这个拨号
password密码是可选的,为了不在$HISTFILE里面留下痕迹,你[......]

继续阅读

发布于 2010年11月19日2010年11月26日分类 Linux Manger标签 cli、LCP terminated by peer、pptp、乱码、命令行、按需拨号、自动断线使用命令行进行PPTP VPN拨号有 5 条评论
自豪地采用WordPress