ITPub博客

首页 > 数据库 > 数据库开发技术 > Linux 查看系统文件命令

Linux 查看系统文件命令

原创 数据库开发技术 作者:mcxiaoracle 时间:2021-09-06 14:51:54 0 删除 编辑

1.

find +目录 +条件 +条件值



 2. 在/home下查找所有以 .txt 结尾的文件: find /home -name “*.txt"  :

3.    在/home下查找不是以 .txt 结尾的文件:find /home ! -name ".txt"  !表示否定 (文件太多,截取部分):

4.        查找/mnt下的子目录:find /mnt -type d :

5.

       查找/mnt下的文件:find /mnt -type f : 


   find --maxdepth+层数  按最大层数查找

               --mindepth+层数  按最小层数查找

         find /home -maxdepth 2 -type f   查找/hoem下目录最大层数为2层的文件:

           find /mnt -type f -size -100  在/mnt目录下查找小于100K的文件:


     2.5.根据文件权限进行查找:

          -perm 文件权限指数


   2.6       find /mnt -type f -perm 660 在/mnt下查找权限为660的文件:


3.参考资料料

https://blog.csdn.net/Hguan07/article/details/76781246https://blog.csdn.net/Hguan07/article/details/76781246






















来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69949806/viewspace-2790571/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
数据方向,了解oracle ,IBM DB2 730

注册时间:2019-09-30

  • 博文量
    286
  • 访问量
    226573