中午在家看了一段linux视频
发现一个查找目录的命令,自己做一延伸
1.查找某个目录下(如~henry/*)的所有目录
henry@linux-bjft:/etc/init.d> find ~henry/* -type d
2.查找某个目录下(如~henry/*)的所有文件
henry@linux-bjft:/etc/init.d> find ~henry/* -type f
3.查找某个文件
henry@linux-bjft:/etc/init.d> find ~henry/* -name *i586*
查找*i586*文件(*代表模糊匹配)结果如下: /home/henry/mysql/MySQL-client-community-5.1.54-1.sles11.i586.rpm /home/henry/mysql/MySQL-shared-community-5.1.54-1.sles11.i586.rpm /home/henry/mysql/MySQL-server-community-5.1.54-1.sles11.i586.rpm /home/henry/software/jdk-6u20-linux-i586.bin