Files
nexus/wiki/sources/macOS-Symbolic-Link创建与解除.md

28 lines
1003 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "macOS Symbolic Link创建与解除"
type: source
tags: [macOS, SymbolicLink, Obsidian, OpenClaw]
date: 2025-03-14
---
## Source File
- [[raw/Home Office/macOS 创建与解除 Symbolic LinkOpenClaw 目录映射).md]]
## Summary
- 核心主题macOS创建符号链接将隐藏的.openclaw目录映射为可见目录
- 问题域OpenClaw使用~/.openclaw隐藏目录Obsidian无法直接访问
- 方法/机制ln -s ~/.openclaw ~/openclaw
- 结论/价值Obsidian可直接作为Vault打开~/openclaw访问OpenClaw文件
## Key Claims
- 创建链接ln -s /Users/weishen/.openclaw /Users/weishen/openclaw
- 验证链接ls -l ~ | grep openclaw
- 查看指向readlink ~/openclaw
- 解除映射rm ~/openclaw只删链接不删数据
- 双向结构建议:~/openclaw为实际目录~/.openclaw作为symlink指向它
## Key Concepts
- [[SymbolicLink]]:符号链接/软链接Unix文件系统的引用机制
## Key Entities
- [[OpenClaw]]AI代理框架