Files
tldr/pages.zh/osx/automount.md

17 lines
677 B
Markdown
Raw Permalink 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.

# automount
> 读取 `/etc/auto_master` 文件,并在适当的挂载点上挂载 `autofs` 以触发按需挂载目录。基本上,这是一种手动启动系统自动挂载过程的方法。
> 注意:如果您没有必要的权限,您很可能需要使用 `sudo` 运行。
> 更多信息:<https://keith.github.io/xcode-man-pages/automount.8.html>。
- 运行 automount提前刷新缓存`-c`),并详细输出(`-v`)(最常用的用法):
`automount -cv`
- 在 5 分钟300 秒)不活动后自动卸载:
`automount -t 300`
- 卸载任何之前由 automount 挂载的内容和/或在 `/etc/auto_master` 中定义的内容:
`automount -u`