快速使用locate命令查找Linux中的文件
在浩瀚的Linux中,查找某个文件是件非常要命的事儿。我试过很多方法,最简单、最方便的一种是利用locate命令和updatedb命令配合的方法:
比如,我们要查找一个文件名中带“chen”字符串的文件,这样做:
[root@locahost /]# locate chen
这样就能出现一大串蕴含chen字符串文件名的文件。
注意,locate执行后的结果不一定准确,有可能最近的一段时间内其他用户添加了或删除了某个喊“chen”的文件,没关系,执行:
[root@locahost /]# updatedb
这样,再执行locate chen就能得到最新、最准确的结果了。
相关文档:
QDisk 1.2 - a disk-based quorum daemon for CMAN / Linux-Cluster
1. Overview
1.1 Problem
In some situations, it may be necessary or desirable to sustain a majority node failure of a cluster without introducing the need for asymmetric cluster configurations (e.g. client-server, or heavily-weighted ......
http://inthirties.com:90/thread-1228-1-1.html
Linux
一、分区方式
1.创建swap分区,例如:
# fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-13054, default 1):
Using default value 1
Last cyl ......
linux 的库操作命令 ar和nm
当我们的程序中有经常使用的模块,而且这种模块在其他程序中也会用到,这时按照软件重用的思想,我们应该将它们生成库,使得以后编程可以减少开发代码量。这里介绍两个命令ar和nm,用来对库操作。
1.ar基本用法
2.nm基本用法命令
当我们的程序中有经常 ......
先介绍一下情况,服务器A和服务器B都是CentOS 4.6的系统,现在要做HA
Cluster,为了避免裂脑的发生,要提高心跳链路的可靠性,下图是现时的连接情况,服务器A的eth2、eth3分别和服务器B的eth2、eth3
相连(没有顺序关系),所有网卡都是千兆网卡,拓扑图如下所示:
在介绍一起硬件情况,服务器A是一台HP DL380
G5, ......
1,-c 编译目标代码
gcc -o hello.o -c hello.c //-o 只是指定生成目标文件名
或
gcc -c hello.c
都生成hello.o文件,不可以执行。
gcc -o hello hello.o
用目标文件生成hell ......