From 09e9d996f8df8dd3b6ee576f269634e5eb0f2adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=80=E6=A2=A6?= <3501646051@qq.com> Date: Sun, 4 Jan 2026 09:50:14 +0800 Subject: [PATCH] =?UTF-8?q?docs(linux):=20=E6=B7=BB=E5=8A=A0Linux=E9=9B=B6?= =?UTF-8?q?=E6=95=A3=E5=91=BD=E4=BB=A4=E6=96=87=E6=A1=A3=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加包含常用Linux命令的文档,并在导航配置中增加对应链接 --- docs/.vuepress/notes.ts | 5 +++++ docs/notes/ops/linux/other.md | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 docs/notes/ops/linux/other.md 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 +```