系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# ls...
分类:
系统相关 时间:
2014-10-24 16:08:09
阅读次数:
251
查看log:
cat /var/log/Xorg.0.log | grep EE[ 75.403] (EE) Failed to load module "modesetting" (module does not exist, 0)[ 75.403] (EE) Failed to load module "fbdev" (module does not exist, 0)[...
分类:
其他好文 时间:
2014-10-24 11:07:22
阅读次数:
259
[root@localhost~]#cd/etc/yum.repos.d[root@localhost~]#cat>>dag.repo<<eof[dag]name=DagRPMRepositoryforRedHatEnterpriseLinuxbaseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=1enabled=1eof[root@localhost~]#yuminstallclamav*--no..
分类:
其他好文 时间:
2014-10-23 20:56:19
阅读次数:
234
grep -q用于if逻辑判断 安静模式,不打印任何标准输出。如果有匹配的内容则立即返回状态值0。zzx@sdcm152:~$ cat at.txt 04:55:00 up 12:02, 0 users, load average: 0.00, 0.01, 0.05zzx@sdcm152:...
分类:
其他好文 时间:
2014-10-23 12:10:06
阅读次数:
241
[oracle@ogg1 lib]$ cat filelist.txt
4 /opt/oracle/oradata/orcl11g/users01.dbf
3 /opt/oracle/oradata/orcl11g/undotbs01.dbf
2 /opt/oracle/oradata/orcl11g/sysaux01.dbf
1 /opt/oracle/oradata/orcl11g/...
分类:
其他好文 时间:
2014-10-23 10:42:45
阅读次数:
171
程序设计: 猫大叫一声,所有的老鼠都开始逃跑,主人被惊醒。(C#语言)要求: 1.要有联动性,老鼠和主人的行为是被动的。2.考虑可扩展性,猫的叫声可能引起其他联动效应。要点:1. 联动效果,运行代码只要执行Cat.Cryed()方法。 2. 对老鼠和主人进行抽象 1 public inter...
分类:
其他好文 时间:
2014-10-22 23:36:16
阅读次数:
256
# cat /etc/init.d/httpd#!/bin/bash## httpd Startup script for the Apache HTTP Server## chkconfig: - 85 15# description: The Apache HTTP Server ...
分类:
Web程序 时间:
2014-10-22 18:05:32
阅读次数:
352
1 auto/types/sizeof该脚本的功能,是通过测试程序获知给定的ngx_type的大小。1.1 显示提示信息echo $ngx_n "checking for $ngx_type size ...$ngx_c"cat > $NGX_AUTOCONF_ERR----------------...
分类:
其他好文 时间:
2014-10-22 17:43:42
阅读次数:
197
网络接口配置文件[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)TYPE=Ethernet...
分类:
系统相关 时间:
2014-10-22 17:32:21
阅读次数:
308
查看当前系统下所有可用的Shell的类型:cat /etc/shells设置当前系统要用的shell类型为:/bin/zsh(以此为例) : chsh -s /bin/zsh 当前shell设置完成之后,需要重新启动电脑才能生效查看当前使用的shell的类型: echo $SHELL关于 oh my...
分类:
系统相关 时间:
2014-10-22 10:49:41
阅读次数:
199