From a234709321ec3e172fdb5f0b2059d10f1f73c95c Mon Sep 17 00:00:00 2001 From: nick Date: Fri, 25 May 2018 09:43:35 +0800 Subject: [PATCH] update --- find-grep-which-whereis-locate.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/find-grep-which-whereis-locate.md b/find-grep-which-whereis-locate.md index 999c7bd..cc68e85 100644 --- a/find-grep-which-whereis-locate.md +++ b/find-grep-which-whereis-locate.md @@ -7,6 +7,8 @@ sudo find /usr/local/nginx -iname nginx.conf #在 /usr/local/nginx 下查找 ngi sudo find /home/ ! -name "*.gz" #查找不是 .gz 后缀的文件 +sudo find /home/ -iname demo.* #查找名称为 demo 开头的文件,不区分文件名称大小写 + sudo find . -type f #查找文件类型为文件 sudo find . -maxdepth 1 -type f #查找文件类型为文件,向下最大深度限制为1