码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
linux基础九
1.文件描述符 INPUT:标准输入stdin,0 OUTPUT:标准输出stdout,1 标准错误stderr,2 2.I/O重定向 输入重定向< <<此处创建文件,常用于bash中创建文件或生成菜单 cat/tmp/a.txt<<EOF a:ls/etc/passwd b:ls/etc/default/useradd EOF 3.输出重定向>>> &g..
分类:系统相关   时间:2016-05-16 11:18:14    阅读次数:268
linux系统使用scp工具拷贝文件
linux系统使用scp工具拷贝文件:scp/tmp/xxxroot@192.168.1.1:/mnt
分类:系统相关   时间:2016-05-16 00:31:05    阅读次数:233
python第一天作业 登录 三次错误 锁定账户
写的这么烂,都不好意思往出发,后来想想毕竟是第一个py程序,还是在上班时间偷偷写的,拿出来做个纪念吧,#-*-coding:utf-8-*- #!/usr/bin/envpython importos importos.path username="liulidong" password="123456" k=1 foriinrange(10): ifnotos.path.exists(‘/tmp/lock.tx..
分类:编程语言   时间:2016-05-15 20:05:45    阅读次数:284
确定elk中的数据存储的位置-和增加集群节点
可见由配置文件path.data决定[root@masteretc]#cat/usr/local/elasticsearch/config/elasticsearch.yml|egrep-v"^$|^#"path.data:/tmp/elasticsearch/datapath.logs:/tmp/elasticsearch/logsnetwork.host:192.168.100.10network.port:9200[root@masteretc]#du-s/tmp/elasticsea..
分类:其他好文   时间:2016-05-15 20:05:24    阅读次数:2333
rsync+inotify 实现文件夹的自动同步备份
1配置好rsync服务器,客户端,见上一篇192.168.1.10web服务器中/www备份到rsync192.168.1.11/tmp/backup2下载安装inotifywgethttp://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz解压./configuremakemakeinstall3简介inotify-tools提供的两个命令..
分类:其他好文   时间:2016-05-15 20:00:37    阅读次数:119
linux
E325: ATTENTIONFound a swap file by the name ".man.conf.swp" owned by: vhrv dated: Sat May 14 17:57:58 2016 file name: /private/tmp/vitest/man.conf mo ...
分类:系统相关   时间:2016-05-14 18:54:00    阅读次数:219
使用python在远程电脑执行多行shell脚本
#!/usr/bin/envpython importparamiko hostname=‘was1‘ port=22 username=‘mqm‘ password=‘redhat‘ cmd=‘‘‘ functionprintline{ echo"-------------------------------$1-------------------------------" } if[-d/tmp/test] then printlinecheck_test_dir echo"/tmp/testexist..
分类:编程语言   时间:2016-05-14 17:16:09    阅读次数:430
CentOS6下Jenkins连接Git服务器出错的问题
今天研究GitLab+Jenkins自动集成时,出现Failed to connect to repository : Command "git config --local credential.helper store --file=/tmp/git2956041026506359040.cre ...
分类:其他好文   时间:2016-05-13 23:04:11    阅读次数:188
用shell监控站点目录下的文件是否被修改
#!/bin/bash #check_file_md5find/application/nginx/html/test1/-typef|xargsmd5sum>/tmp/web_md5_f.txt #check_file_numtree-i/application/nginx/html/test1|grep-v"^$">>/tmp/web_md5_num.txt.default MD5=`/usr/bin/md5sum-c/tmp/web_md5_f.txt|grep-v"OK"|wc-l`..
分类:系统相关   时间:2016-05-13 17:32:22    阅读次数:249
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!