diff --git a/docs/.vuepress/notes.ts b/docs/.vuepress/notes.ts index 9a25742..915dea5 100644 --- a/docs/.vuepress/notes.ts +++ b/docs/.vuepress/notes.ts @@ -139,6 +139,11 @@ const linux = defineNoteConfig({ text: "Linux 基础", prefix: "/linux", items: [ { text: "Linux 基础命令详解", link: "/ops/linux/basic-commands/" } ] + }, + { + text: "其他", prefix: "/linux", items: [ + { text: "一些零散的命令", link: "/ops/linux/other/" } + ] } ] }) diff --git a/docs/notes/ops/linux/other.md b/docs/notes/ops/linux/other.md new file mode 100644 index 0000000..443e857 --- /dev/null +++ b/docs/notes/ops/linux/other.md @@ -0,0 +1,12 @@ +--- +title: 一些零散的命令 +createTime: 2025/12/31 10:00:30 +permalink: /ops/linux/other/ +--- + +## 文件处理相关 + +统计当前目录下的所有文件加起来有多少行 +``` +wc -l * | tail -n 1 +```