命令行wget 发送http POST:
wget -q -O - --post-data 'uid=PRATRC47V42WNY36111A&mac=AAABBBCCCDDD' http://ec2-52-198-100-218.ap-northeast-1.compute.amazonaws.com/register.php
SCP:
scp -i .ssh/MyFirstKey.pem register.php ec2-user@ec2-52-198-100-218.ap-northeast-1.compute.amazonaws.com:/var/www/html/
登陆:
ssh -i .ssh/MyFirstKey.pem ec2-user@ec2-52-198-100-218.ap-northeast-1.compute.amazonaws.com
从文件倒入数据到数据库(指定列):
mysql> LOAD DATA LOCAL INFILE 'persondata.txt' INTO TABLE persondata (col1,col2,...);
shell读取文件中的内容,并将其存入到变量中
var=$(cat name.txt)
atom:
http://www.cnblogs.com/fuhuixiang/p/4840866.html