Mac家目录

Mac家目录#

20150728

OS系统上的/home目录默认对用户是隐藏的,可以更改配置使家目录可见。

昨天更新完系统发现Mac上的/home目录不见了,估计是系统升级时自动清空并屏蔽了/home目录,Time Machine也没能备份家目录。建议Mac上的/home别存放什么重要的文件,同时注意手动备份。

附:在Mac上解除/home屏蔽的方案 http://stackoverflow.com/questions/1362703/how-can-i-use-the-home-directory-on-mac-os-x

How can I use the /home directory on Mac OS X

In order to reclaim the /home directory, edit the /etc/auto_master file and comment out (or remove) the line with /home in it. You'll need to reboot after this for the change to take effect (or, per nilbus' comment, try running sudo automount -vc). This works with Mac OS X 10.5 (Leopard). Your millage may vary for different versions, but it should be similar.

As noted on that forum post, you should also be aware that Time Machine automatically excludes the /home directory and does not back it up.

welcom to my page ---> http://www.helowrd.net

你可能感兴趣的:(Mac家目录)