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工具拷贝文件:scp/tmp/xxxroot@192.168.1.1:/mnt
分类:
系统相关 时间:
2016-05-16 00:31:05
阅读次数:
233
写的这么烂,都不好意思往出发,后来想想毕竟是第一个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
可见由配置文件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
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
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
#!/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
今天研究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
#!/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