码迷,mamicode.com
首页 >  
搜索关键字:dev/null    ( 790个结果
pre-commit脚本--commit前必须填写messages
#!/bin/shrepos="$1"txn="$2"res="ok"#makesurethatthelogmessagecontainssometext.svnlook=/usr/local/svn/bin/svnlook$svnlooklog-t"$txn""$repos"|egrep"[^[:space:]]+">/dev/null||unsetresif["$res"!="ok"]thenecho"youmustinputsomecommentsforyoucommit">&2ex..
分类:其他好文   时间:2017-05-04 23:13:09    阅读次数:309
RH134 UNIT8
第八单元LDAP网络用户账户安装ldap客户端所需软件yumsssdkrb5-workstation-y开启ldap用户认证authconfig-tui自动安装并配置auth脚本#/bin/bashecho"installpackages..."yuminstallsssdkrb5-workstationautofs-y&>/dev/null###安装所需软件echo"configautoconfig..."auth..
分类:其他好文   时间:2017-05-03 01:09:38    阅读次数:200
第二章--(第八单元)--LDAP网络用户账户
利用脚本非交互式建立LDAP网络用户账户并建立家目录#!/bin/bashecho"installpackages..."yuminstallsssdkrb5-workstationautofs-y&>/dev/null安装所需要的sssd服务,krb5-workstation服务,autofs服务echo"configauthconfig..."authconfig\打开authconfig服务--enableld..
分类:其他好文   时间:2017-05-03 01:01:51    阅读次数:133
将Linux文件清空的几种方法
1、使用重定向的方法 2、使用true命令重定向清空文件 3、使用cat/cp/dd命令及/dev/null设备来清空文件 4、使用echo命令清空文件 5、使用truncate命令清空文件 ...
分类:系统相关   时间:2017-04-28 20:12:26    阅读次数:173
扫描局域网内存活主机 脚本
#!/bin/bash foriin$(seq254) do { ping-c4192.168.1.$i&>/dev/null if[$?-eq0];then echo"192.168.1.$iisok!~" fi } done
分类:其他好文   时间:2017-04-26 19:10:16    阅读次数:95
liunx crontab定时任务
描述: 一般crontab文件里面的定时任务格式如下所示:59 23 * * * /home/oracle/scripts/alert_log_archive.sh >/dev/null 2>&1crontab 文件中每个条目中各个域的意义和格式:第一列 分钟: 1——59第二列 小时: 1——23 ...
分类:其他好文   时间:2017-04-20 19:42:48    阅读次数:128
while
while.until.forbreak退出循环continue提前进入下一轮循环无限循环while特殊用法一:while:;dobreakdonewhile特殊用法二:whilereadLINE;dodone</path/to/somefileunitlbash-n$1&>/dev/null;doread-p"sytaxerror,[qQ]exit,othersvim"CHOISEcase$CHOISEinq|Q)break;;..
分类:其他好文   时间:2017-04-15 21:10:09    阅读次数:141
部署zabbix网络监控
zabbix2.4部署一、安装前的准备 1、配置本地yum源 2、 yum-yinstallntpdate #安装时间同步 3、echo‘*/1****/usr/sbin/ntpdatentp1.aliyun.com&>/dev/null‘>>/var/spool/cron/root#配置计划任务,每隔1分钟更新一次时间,ntp1.aliyun.com阿里时间服务器 4、service..
分类:其他好文   时间:2017-04-15 21:05:16    阅读次数:247
[Linux小技巧] 一行命令让CPU占用率达到100%
for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done 说明: cat /proc/cpuinfo |grep "physical id" | w ...
分类:系统相关   时间:2017-04-14 19:52:33    阅读次数:4006
NF、$NF、FR、FNR举例说明
NF当前处理数的个数[root@VM_207_144_centosbin]#echoabc|awk‘{printNF}‘3$NF当前处理数中的最后一位数[root@VM_207_144_centosbin]#echoabc|awk‘{print$NF}‘cFR当前处理行中的所指定的行数[root@VM_207_144_centosbin]#curl"http://127.0.0.1/nginxstatus"2>/dev/null|awkN..
分类:其他好文   时间:2017-04-12 22:15:45    阅读次数:141
790条   上一页 1 ... 39 40 41 42 43 ... 79 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!