随笔分类 -  命令

摘要:sed -i /test/d /file.txt #删除文件中有关键字“test”的行 sed -i /^$/d test.txt #删除一个文件中所有空行 sed -i /^#/d test.txt #删除一个文件所有以"#"开头的行 sed -i s/abc/abcd/g test.txt #把文件中的abc换成abcd sed -i /^abc/d t... 阅读全文
posted @ 2017-05-24 15:37 三木燕 阅读(268) 评论(0) 推荐(0)
摘要:touch README git add README git commit -m 'first commit' git push origin master 阅读全文
posted @ 2017-05-19 17:42 三木燕 阅读(123) 评论(0) 推荐(0)
摘要:rsync -auvrtzopgP --progress --delete --exclude-from=exclude.list SRC DST \\保留原文件属性并详细输出 删除那些DST中SRC没有的文件 阅读全文
posted @ 2017-05-19 17:42 三木燕 阅读(337) 评论(0) 推荐(0)
摘要:iptables service iptables save \\保存 iptables -F \\清空所有规则 iptables -F -t nat \\清空nat表 iptables -t nat -L -n \\查看nat表 iptables -L -n --line-number \\查看防火墙规则 iptables -t nat -A POSTROUTI... 阅读全文
posted @ 2017-05-19 17:41 三木燕 阅读(398) 评论(0) 推荐(0)
摘要:mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'your_root_password' WITH GRANT OPTION; \\开启root远程登录 mysql> CREATE DATABASE DBNAME; \\创建数据库 mysql> GRANT ALL PRIVILEGES ON DBNAME.* TO... 阅读全文
posted @ 2017-05-19 17:40 三木燕 阅读(859) 评论(0) 推荐(0)
摘要:常用命令 阅读全文
posted @ 2017-05-19 17:33 三木燕 阅读(368) 评论(0) 推荐(0)
摘要:维护命令 数据库 表 用户管理 信息命令 阅读全文
posted @ 2017-05-19 17:08 三木燕 阅读(247) 评论(0) 推荐(0)