IT码农库


Warning: Illegal string offset 'parentstr' in /home/wwwroot/cczh004/wwwroot/include/func.class.php on line 246

Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh004/wwwroot/include/func.class.php on line 246
您当前所在位置:首页 > 栏目不存在

FreeBSD 文件和目录查找

互联网 佚名2014-07-02
Warning: Illegal string offset 'id' in /home/wwwroot/cczh004/wwwroot/show.php on line 80

Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh004/wwwroot/show.php on line 80

Warning: Illegal string offset 'classname' in /home/wwwroot/cczh004/wwwroot/show.php on line 81

Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh004/wwwroot/show.php on line 81
7788
档案搜寻,对于一个新系统来说,可能没有很大的用途但是对于一个旧系统,档案及文件越来越多, 这时就必须要用搜寻来找寻档案了

0. 前言
档案搜寻,对于一个新系统来说,可能没有很大的用途;
但是对于一个旧系统,档案及文件越来越多, 这时就必须要用搜寻来找寻档案了。  

1.which
指令 : which ( locate a program file in the user's path )  
语法 : which
program  
用途 : 从使用者的执行路径,寻找执行文件。
实例 : 搜寻 cd 的位置。

2.whereis 指令 : whereis ( locate programs )  
语法 : whereis [ -bms ]
program  
用途 : 寻找原始程序数据夹 (source directory), 二进制程序 (binary). 使用手册 (manuals)  
参数 : -b 搜寻二进制程序 ; -m 搜寻使用者手册; -s 搜寻原始程序的数据夹
实例 :
(1) 搜寻 cd 使用者手册的位置。 

( 2) 搜寻 cd 执行文件的位置。

大图广告(830*140)