Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5860d22

Browse files
committed
Add show and hide dot files
1 parent b08a61d commit 5860d22

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

‎docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ function sidebarOs() {
101101
text: "MacOS",
102102
items: [
103103
{text: "切换 Mac 工具栏和菜单显示状态", link: "/os/macos/toggle-toolbar-and-dock-status"},
104+
{text: "显示和隐藏 Mac 系统中的隐藏文件", link: "/os/macos/show-and-hide-dot-files"},
104105
]
105106
}
106107
];
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# 显示和隐藏 Mac 系统中的隐藏文件
2+
3+
4+
## 使用快捷键
5+
6+
在访达中,使用下面的快捷键可以切换显示和隐藏隐藏文件:
7+
8+
```bash
9+
Command + Shift + .
10+
```
11+
12+
## 命令行方式
13+
14+
打开命令行终端,输入以下命令:
15+
16+
```bash
17+
# 显示隐藏文件
18+
defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder
19+
20+
# 隐藏隐藏文件
21+
defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder
22+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /