
Linux
BlackHeart1203
BlackHeart!
展开
-
/var/spool/clientmqueue目录~清理
/var/spool/clientmqueue目录~清理今天nagios报警,一台服务器的disk满了,使用du -sh * 或 du -sh /* 查看目录的大小,查找占用空间大的目录/var/spool/clientmqueue…然后我就想/var/spool/clientmqueue这个目录干嘛用的,纠结了半天,谷歌了下,原来/var/spool/clientmqueue是如果系统中有用户开启了cron,而cron中执行的程序有输出内容,输出内容会以邮件形式发给cron的用户,而sendmail没转载 2020-05-15 13:39:44 · 674 阅读 · 0 评论 -
0,15,30,45 * * * * /path/to/command
Run a cron command every 15 minutesCron is a time based scheduling service on Linux and Unix computers which allows you to run process at specific times for example once a day, once every hour and so...转载 2020-04-10 17:12:32 · 470 阅读 · 0 评论 -
linux查看文本文件
查看文本文件,命令如下:cat filename当文件较大时,只需要查看最后几百行,可用如下命令:tail -n 20 filename#显示filename最后20行原创 2020-01-13 15:54:06 · 278 阅读 · 0 评论 -
linux服务器telnet网络监控脚本
#!/bin/bashcheckPort(){telnet $2 $3 <<! 1>checkPort.log 2>/dev/null^]close!ss=`cat checkPort.log | grep "Escape character is"`if [ "A$ss" = "A" ]thenecho "$2 port $3 checking r...原创 2020-01-13 10:05:09 · 688 阅读 · 0 评论 -
Linux查看隐藏文件
[root@dbtest ~]# cd /root [root@dbtest ~]# ls anaconda-ks.cfg ncurses-devel-5.7-3.20090208.el6.x86_64.rpm rlwrap-0.37-1.el5.x86_64.rpm Desktop readline-6.2原创 2017-07-28 20:49:59 · 3207 阅读 · 0 评论 -
Linux端口占用查询
查看用户进程top u username查看端口占用netstat -tunpl |grep portnum查看进程详情ps -ef|grep PID杀死进程kill -9 PID原创 2019-06-12 11:19:02 · 1502 阅读 · 0 评论