04 2017 档案

摘要:-i 直接编辑 '1600,$' 1600到最后一行 d 删除 删除第1500行 删除最后一行 删除带 string 的行 删除空白行 删除从 string 到末尾的行 sed -i '1i xxx' 1.txt 第二行前插入 sed -i '1a xxx' 1.txt 第二行后插入 sed -i 阅读全文
posted @ 2017-04-25 22:59 feral 阅读(156) 评论(0) 推荐(0)
摘要:编译 配置 美化 网上找好看的footer.html和header.html 如footer.html header.html 阅读全文
posted @ 2017-04-20 10:19 feral 阅读(301) 评论(0) 推荐(0)
摘要:printf "zhangsan:$(openssl passwd -crypt 123456)\n" >> htpasswd auth_basic "Restricted"; auth_basic_user_file htpasswd; 阅读全文
posted @ 2017-04-11 17:44 feral 阅读(162) 评论(0) 推荐(0)
摘要:mysqladmin -uroot -p'password' ping | grep -c alive 阅读全文
posted @ 2017-04-11 10:54 feral 阅读(181) 评论(0) 推荐(0)
摘要:ifconfig | awk '/inet addr/' | awk '!/127.0.0.1/' |awk -F ':' '{print $2}' |awk '{print $1}' (#centos6) ifconfig | awk '/inet/'|awk '!/inet6|127.0.0.1/'|awk '{print $2}' (#centos7.3) ... 阅读全文
posted @ 2017-04-04 02:39 feral 阅读(1022) 评论(0) 推荐(0)
摘要:添加系统变量: GNU_HOME值C:\Program Files (x86)\GnuWin32\ 添加path: ;%GNU_HOME%\bin wget -c -b --http-user=xxx --http-password=yyy --limit-rate=400K -P F:/ http 阅读全文
posted @ 2017-04-03 20:51 feral 阅读(160) 评论(0) 推荐(0)
摘要:安装 一:通过yum 二:编译安装 篇幅较长暂留 三、添加网桥 使用 一:通过定义XML文件增加一台虚拟机 二:通过virt-install 新增一台虚拟机 1.准备磁盘:通常选择支持快照的qcow2格式,性能最好的是raw格式 2.安装虚拟机 3.驱动安装 SCSI——网卡——GPU 4.创建快照 阅读全文
posted @ 2017-04-02 22:32 feral 阅读(790) 评论(0) 推荐(0)