Auto-sync: 2026-04-17 08:37

This commit is contained in:
2026-04-17 08:38:12 +08:00
parent 6caa1c2f47
commit a0a48bd334
247 changed files with 6577 additions and 3061 deletions

View File

@@ -0,0 +1,40 @@
---
title: "macOS 创建与解除 Symbolic LinkOpenClaw 目录映射)"
type: source
tags: [macos, symbolic-link, openclaw, obsidian]
date: 2025-01-14
---
## Source File
- [[raw/Home Office/macOS 创建与解除 Symbolic LinkOpenClaw 目录映射).md]]
## Summary
- 核心主题macOS 符号链接Symbolic Link的创建与解除方法
- 问题域:隐藏目录访问、文件系统链接管理
- 方法/机制:使用 `ln -s` 命令创建符号链接,使用 `rm` 命令解除链接
- 结论/价值:通过符号链接将 OpenClaw 的隐藏目录 ~/.openclaw 映射为普通目录 ~/openclaw方便在 Finder 和 Obsidian 中直接访问
## Key Claims
- 通过 `ln -s ~/.openclaw ~/openclaw` 可将隐藏目录映射为可见目录
- `rm ~/openclaw` 仅删除链接文件,不影响真实目录 `~/.openclaw`
- 推荐使用双向符号链接结构:实际目录在 ~/openclaw~/.openclaw 指向 ~/openclaw
## Key Commands
- 创建链接:`ln -s ~/.openclaw ~/openclaw`
- 验证链接:`ls -l ~ | grep openclaw`
- 查看目标:`readlink ~/openclaw`
- 解除链接:`rm ~/openclaw`
- 验证真实目录:`ls ~/.openclaw`
## Key Concepts
- [[Symbolic Link]]:符号链接,指向另一个文件或目录的特殊文件类型
## Key Entities
- [[OpenClaw]]AI Agent 管理工具,默认使用隐藏目录 ~/.openclaw
- [[Obsidian]]:本地笔记软件,可通过符号链接访问非标准路径的 Markdown 文件
## Connections
- [[Obsidian]] ← uses ← [[Symbolic Link]] ← enables ← [[OpenClaw]]
## Contradictions
- (暂无)