• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】ds_store文件是什么

问答 admin 2年前 (2020-05-25) 498次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

.DS_Store(Desktop Services Store)是Mac OS保存文件夹的自定义属性的隐藏文件,如文件的图标位置或背景色,相当于Windows的desktop.ini。

.DS_ Store (Desktop Services Store) is a hidden file that stores the custom properties of a folder on Mac OS, such as the icon location or background color of the file, which is equivalent to Windows’s desktop.ini 。

.DS_Store(英文全称 Desktop Services Store)是一种由苹果公司的 Mac OS X 操作系统所创造的隐藏文件,目的在于存贮目录的自定义属性,例如文件们的图标位置或者是背景色的选择。相当于 Windows 的 desktop.ini。

.DS_ Store (Desktop Services Store) is a kind of hidden file created by Apple’s Mac OS X operating system. It aims to store the custom attributes of directory, such as the location of files’ icons or the selection of background color. Windows equivalent desktop.ini 。

尽管这些文件本来是为 Finder 所使用,但它们被设想作为一种更通用的有关显示设置的元数据存储,诸如图标位置和视图设置。

Although these files were originally used by finder, they are envisaged as a more general metadata store for display settings, such as icon location and view settings.

例如,在 Mac OS X 10.4 “Tiger”中.DS_Store 包含了一文件夹的所有文件的 Spotlight 注释。然而,在 Mac OS X 10.5 “Leopard”中这种方式又被更改了,注释(现称为关键字)被改成存储在了扩展文件属性中。

For example, in Mac OS X 10.4 “tiger”. DS_ Store contains spotlight comments for all files in a folder. However, in Mac OS X 10.5 “leopard,” this approach has been changed again, with comments (now known as keywords) being stored in extended file properties.

常见的处理:

Common treatment:

1、禁止.DS_store 生成:打开 “终端” ,复制黏贴下面的命令,回车执行,重启 Mac 即可生成。

1. Prohibit.ds_ Store generation: open “terminal”, copy and paste the following command, press enter to execute, restart Mac to generate.

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

2、恢复.DS_store 生成:

2. Recovery.ds_ Store generation:

defaults delete com.apple.desktopservices DSDontWriteNetworkStores

defaults delete com.apple.desktopservices DSDontWriteNetworkStores

3、删除 所有目录的“.DS_store”文件:在 terminal 中输入:

3. Delete “. DS” of all directories_ Store file: in terminal, enter:

sudo find / -name “.DS_Store” -depth -exec rm {} ;

sudo find / -name “.DS_ Store” -depth -exec rm {} ;


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】ds_store文件是什么
喜欢 (0)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址