//boot/bin/sbin/lib.modules/lib64/etc/redhat-release/etc/centos-release/home/zczx/mnt/media/misc/proc/meminfo/proc/cpuinfo/proc/partition/sya/opt/tmp/usr/local//usr/share/man/usr/share/doc/usr/share/dict/var/log//var/www/var/ftp/var/dev/sda,sda1/dev/null/dv..
分类:
系统相关 时间:
2016-07-29 19:42:11
阅读次数:
310
Shell中可能经常能看到:>/dev/null 2>&1 eg:sudo kill -9 `ps -elf |grep -v grep|grep $1|awk '{print $4}'` 1>/dev/null 2>/dev/null 命令的结果可以通过%>的形式来定义输出 /dev/null 代 ...
分类:
系统相关 时间:
2016-07-16 08:45:35
阅读次数:
215
系统文件/dev/null丢失怎么办呀 重启时出现如下问题 /etc/rc.d/rc.sysinit:line 88: /dev/null: Read-only file system /etc/rc.d/rc.sysinit:line 99: /dev/null: Read-only file s ...
分类:
其他好文 时间:
2016-07-06 18:04:07
阅读次数:
114
#!/bin/bash
#
#chkconfig:23459406
#
./etc/rc.d/init.d/functions
#加载脚本配置文件,提供变量值
if[-e/usr/mysql-proxy.conf];then
./usr/mysql-proxy.conf
fi
#查看是否安装mysql-proxy软件
if!`cd/usr/local/mysql-proxy>/dev/null`;then
tarxf/root/$VER-C/usr/..
分类:
数据库 时间:
2016-07-03 16:00:14
阅读次数:
351
一./dev/null/2>&1的作用 1.定时任务发送的邮件会临时堆在/var/spool/clientmqueue 时间长了,会导致inode 减少,加上>/DEV/null/2>&12.删除某目录的两种方法:cd /var/spool/clientmqueue &&ls |xargs rm - ...
分类:
其他好文 时间:
2016-07-03 01:49:47
阅读次数:
167
/dev/null代表空设备文件>代表重定向到哪里,例如:echo"123">/home/123.txt1表示stdout标准输出,系统默认值是1,所以">/dev/null"等同于"1>/dev/null"2表示stderr标准错误&表示等同于的意思,2>&1,表示2的输出重定向等同于11>/dev/null首先表示标..
分类:
其他好文 时间:
2016-07-01 23:13:32
阅读次数:
359
shell命令:curl -I -m 10 -o /dev/null -s -w %{http_code} http://test.com curl爬取过程中,会返回一个http_code,下面是他们的意义信息 $http_code["0"]="Unable to access"; $http_co ...
分类:
Web程序 时间:
2016-06-28 14:33:35
阅读次数:
187
今天在自己的的电脑上装了git,没成想运行报错: 重装了几次git ,都不行,电脑上没有装github桌面版;后来在网上查到了方法,反映这是系统的问题:null是比较特殊的系统文件,它实际上是为操作系统提供一个虚拟设备,这个搜索设备的驱动程序是C:WINDOWS\system32\drivers\N... ...
分类:
其他好文 时间:
2016-06-24 06:57:11
阅读次数:
2491
#!/bin/bash#清除日志脚本LOG_DIR=/var/logROOT_UID=0#$UID为0的时候,用户具有root用户的权限if["$UID"-ne"$ROOT_UID"]thenecho"Mustberoottorunthisscript"exit1ficd$LOG_DIR||{#||失败的意思echo"cannotchangetonecessarydirectory">&2exit1}cat/dev/null>message..
分类:
系统相关 时间:
2016-06-23 18:59:01
阅读次数:
203
time有计时作用,dd用于复制,从if读出,写到of。if=/dev/zero不产生IO,因此可以用来测试纯写速度。同理of=/dev/null不产生IO,可以用来测试纯读速度。bs是每次读或写的大小,即一个块的大小,count是读写块的数量。指定出读取,写入文件到硬盘的速度1.测/目录所在磁盘的纯写..
分类:
系统相关 时间:
2016-06-23 01:10:57
阅读次数:
253