From 4e153c5da25492854f2ce9de08939ac2ea13f3b0 Mon Sep 17 00:00:00 2001 From: keke <567> Date: Tue, 28 May 2024 20:54:14 +0800 Subject: [PATCH] master --- ...70\345\257\271\350\267\257\345\276\204.md" | 0 ...66\345\222\214\347\233\256\345\275\225.md" | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+) rename "05\346\237\257\346\230\200\345\220\253/Linux\347\273\235\345\257\271\350\267\257\345\276\204\357\274\214\347\233\270\345\257\271\350\267\257\345\276\204.md" => "05\346\237\257\346\230\200\345\220\253/2024-05.25-Linux\347\273\235\345\257\271\350\267\257\345\276\204\357\274\214\347\233\270\345\257\271\350\267\257\345\276\204.md" (100%) create mode 100644 "05\346\237\257\346\230\200\345\220\253/2024-05.28-Linux\346\237\245\346\211\276\346\226\207\344\273\266\345\222\214\347\233\256\345\275\225.md" diff --git "a/05\346\237\257\346\230\200\345\220\253/Linux\347\273\235\345\257\271\350\267\257\345\276\204\357\274\214\347\233\270\345\257\271\350\267\257\345\276\204.md" "b/05\346\237\257\346\230\200\345\220\253/2024-05.25-Linux\347\273\235\345\257\271\350\267\257\345\276\204\357\274\214\347\233\270\345\257\271\350\267\257\345\276\204.md" similarity index 100% rename from "05\346\237\257\346\230\200\345\220\253/Linux\347\273\235\345\257\271\350\267\257\345\276\204\357\274\214\347\233\270\345\257\271\350\267\257\345\276\204.md" rename to "05\346\237\257\346\230\200\345\220\253/2024-05.25-Linux\347\273\235\345\257\271\350\267\257\345\276\204\357\274\214\347\233\270\345\257\271\350\267\257\345\276\204.md" diff --git "a/05\346\237\257\346\230\200\345\220\253/2024-05.28-Linux\346\237\245\346\211\276\346\226\207\344\273\266\345\222\214\347\233\256\345\275\225.md" "b/05\346\237\257\346\230\200\345\220\253/2024-05.28-Linux\346\237\245\346\211\276\346\226\207\344\273\266\345\222\214\347\233\256\345\275\225.md" new file mode 100644 index 0000000..6bc78f0 --- /dev/null +++ "b/05\346\237\257\346\230\200\345\220\253/2024-05.28-Linux\346\237\245\346\211\276\346\226\207\344\273\266\345\222\214\347\233\256\345\275\225.md" @@ -0,0 +1,42 @@ +## 查找文件和目录 + +### 一.find: + +``` +find 要查找的文件或者目录 条件[名称、大小、时间、类型] +条件: +-name '*.txt' #查找文件名称 +-type f/d #查找类型f:文件,d:目录 +-size +/-3K #查找文件或者目录的大小,+:大于,-:小于 +-mtime +/-7 #查找文件或者目录的修改文件时间,+:大于,-:小于 +-exec 命令 {} \; #查找到的文件路径并执行命令 +-not -name '.*' #排除隐藏文件 +``` + +### 二.which + +``` +which 查找可执行文件 +``` + +### 三.whereis + +``` +whereis 查找内容 #命令查找可执行文件、配置文件、源代码文件和手册页的位置。 +``` + +### 四.grep + +``` +grep 查找文件内容关键字 文件路径 [参数] +参数: +-r #递归 +-l #查找只显示文件名称 +-n #查看关键字的行数 +``` + +### 五.stat + +``` +stat 文件或者目录名称 #查看详细信息 +``` \ No newline at end of file -- Gitee