linux
joshuaton5
这个作者很懒,什么都没留下…
展开
-
linux常用命令
1.让程序转入后台运行在最后加上&符号# sh *.sh &2009-03-19 23:01:44 · 85 阅读 · 0 评论 -
awk命令
1.在日志中查找awk '$4~/p=40040103/&&$5~/index.htm/' cut.log.20090319以"\t"分割,第4个元素含p=40040103,第5个元素含index.htm的行2009-03-20 15:07:44 · 114 阅读 · 0 评论 -
设置vim默认编码
vim乱码的解决办法vim ~/.vimrc把文件内容更改为set enc=prcset fileencodings=prc,utf8prc表示中文2009-03-20 19:51:11 · 978 阅读 · 0 评论 -
rsync配置
vim /etc/rsyncd.conf文件内容如下uid = rootgid = rootuse chroot = nohosts allow = 192.168.0.0/16 10.0.0.0/8pid file = /var/run/rsyncd.pidlog file = /var/log/rsync.log[root] path ...2009-03-20 21:46:08 · 90 阅读 · 0 评论 -
使用ssh不再输入密码方法
默认情况下,每次使用ssh,scp,sftp等命令都需要输入密码,通过以下两步,即可达到省略密码的目的 第一步:生成密匙对。 使用命令 ssh-keygen -t rsa 对于屏幕提示,只需要不断的回车即可。 执行的结果: 在$HOME/.ssh/目录下生成了id_rsa和id_rsa.pub两个文件 第二步:将公钥放到远程服务器上。 id_rsa存放的是私钥,保存...原创 2009-07-28 17:17:41 · 257 阅读 · 0 评论 -
dns解析文件
/etc/resolv.conf2009-08-11 10:38:00 · 148 阅读 · 0 评论