table 表 --> chain 链 >rule 规则Commands:Either long or short options are allowed. --append -A chain 添加规则到链上 [!]--proto -p proto 指定过滤的协议tcp udp icmp all [ ...
分类:
其他好文 时间:
2017-08-19 14:27:01
阅读次数:
191
一 ,检测环境: 首先我们切换到项目根目录,yii2正常安装的话有一个commands文件夹,里面有一个示例文件HelloController.php 切到项目根目录,命令行输出 php yii hello,输出hello world 说明环境正常 二,书写代码: 可以在commands文件夹新建控 ...
分类:
其他好文 时间:
2017-08-18 20:06:32
阅读次数:
138
An introduction to search commands Did you know you can search Google for web pages which were published in a certain timeframe? Did you know it often ...
分类:
其他好文 时间:
2017-08-14 14:29:32
阅读次数:
301
What Is ADB Android debug bridge is a command line tool that lets you communicate with connected Android device. ADB COMMANDS ADB Debugging 1. adb dev ...
分类:
数据库 时间:
2017-08-14 14:23:56
阅读次数:
698
1.subprocess模块,前戏 res = os.system('dir') 打印到屏幕,res为0或非0 os.popen('dir') 返回一个内存对象,相当于文件流 a = os.popen('dir').read() a中就存的是执行结果输出了 Python2.7 commands模块 ...
分类:
编程语言 时间:
2017-08-14 13:24:07
阅读次数:
288
subprocess 前言 import os os.system('dir') #输出命令结果到屏幕,返回命令执行状态(0代表执行成功,0代表执行失败) os.popen('dir').read() #保存命令的执行结果并输出(/n换行),无返回状态 #commands only support ...
分类:
编程语言 时间:
2017-08-13 20:05:45
阅读次数:
178
1. 首先用help理解su, sudo su, sudo 2. 其次理解"login shell" and "interactive shell". "When Bash starts executes the commands in a variety of different scripts. ...
分类:
系统相关 时间:
2017-08-11 19:00:34
阅读次数:
146
shell脚本部分: Python restart_port.py 文件 1 # encoding=utf8 2 3 import sys 4 import commands 5 import os 6 import re 7 import getpass 8 import time 9 impor ...
分类:
Web程序 时间:
2017-08-11 12:12:51
阅读次数:
374
subprocess 模块 一、简介 subprocess最早在2.4版本引入。用来生成子进程,并可以通过管道连接他们的输入/输出/错误,以及获得他们的返回值。 subprocess用来替换多个旧模块和函数: os.systemos.spawn*os.popen*popen2.*commands.* ...
分类:
其他好文 时间:
2017-08-06 18:11:55
阅读次数:
201
1.man page 代号 内容说明 NAME 简短的指令、数据说明 SYNOPSIS 简短的指令下达的语法简介 DESCRIPTION 较为完整的说明,这部分最好仔细看看 OPTIONS 针对SYNOPSIS部分中,有列举所有可用的选项说明 COMMANDS 当这个程序/软件在执行的时候,可以再此 ...
分类:
系统相关 时间:
2017-08-06 12:41:28
阅读次数:
217