1、查看机器型号 [root@local ~]# dmidecode | grep "Product Name" Product Name: VMware Virtual Platform Product Name: 440BX Desktop Reference Platform2、查询Linux...
分类:
系统相关 时间:
2014-07-02 20:12:21
阅读次数:
310
netstat 命令详解netstat用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。常用:netstat -anp | grep 进程名、pid进程号、端口号参数一般用的:-aup-anp-anltp-ano参数含义介绍-a (all)显示所有连接...
分类:
Web程序 时间:
2014-07-02 09:57:25
阅读次数:
387
ps -ef|grep ./amplxe-gui|grep -v grep|cut -c 9-15|xargs kill -9
批量杀死包含关键字“./amplxe”的进程。
"ps -ef" ——查看所有进程
"grep ./amplxe-gui" ——列出所有含有关键字"./amplxe-gui"的进程
"grep -v grep" ——在列出的进程中去除含...
分类:
系统相关 时间:
2014-07-02 09:05:06
阅读次数:
335
进入Ubuntu之后打开终端窗口的快捷键是:
ctrl + alt+T:通过这个命令可以打开终端。截图是:
关闭一个终端窗口的方式是:
Alt +F4,在Ubuntu下还可以是exit
对于terminal中的符号,其中的$标识,普通用户时显示的是$,超级管理员对应的符号是:#
截图如下:...
分类:
系统相关 时间:
2014-07-02 07:58:14
阅读次数:
788
检查系统是否安装snmp服务
# rpm -qa|grep snmp
net-snmp-5.3.2.2-17.el5
net-snmp-perl-5.3.2.2-17.el5
net-snmp-devel-5.3.2.2-17.el5
net-snmp-libs-5.3.2.2-17.el5
net-snmp-utils-5.3.2.2-17.el5
net-snmp-libs-5....
分类:
系统相关 时间:
2014-07-01 16:01:00
阅读次数:
386
1.写一个shell脚本test.sh,重新启动tomcat[java]view plaincopy#!/bin/sh./etc/profilepid=`psaux|greptomcat|grep-vgrep|grep-vretomcat|awk'{print$2}'`echo$pidif[-n"$...
分类:
系统相关 时间:
2014-07-01 12:08:38
阅读次数:
304
Ø 读取文件的时间
#!/bin/bash
for file in `ls /root`
do
stat $file>1.txt
sed -n "7p" 1.txt>2.txt
usetime= awk -F ":" '{print $2}' 2.txt
echo "time="$file $usetime
done
Ø 读取文件的每行while...
分类:
其他好文 时间:
2014-07-01 06:49:51
阅读次数:
204
一个程序所依赖的库文件可以由:ldd命令路径来显示例ldd/bin/cat输出详解第一行输出为库入口,非库文件whichls|grep-valias|grep-o‘[^[:space:]]*‘脚本中调试方法declare–iDebuglevel=1Debuglevel={0|1}[$Debuglevel–eq1]&&echo…$…….移植脚本如下所示#!/bin/bash#..
分类:
系统相关 时间:
2014-07-01 06:06:30
阅读次数:
383
自动化格式分区方法----非交互---可用于脚本要先给用户一个提示,让他选择一个分区来格式化foriin`mount|grep“/dev/sdb”|awk’{print$1}’`dofuser–km$i;umount$idoneddif=/dev/zeroof=$PartDiskbs=512count=1sync;sleep3echo‘np1+20Mnp2+512Mnp3+128Mt382w’|fdisk/dev/s..
分类:
系统相关 时间:
2014-07-01 06:00:36
阅读次数:
359