Mac系统如何删除.DS_Store文件且不再生
时间:2023-04-01 00:24:36
用过Mac OS系统的都会注意到一个名为.DS_Store的隐藏文件,尤其是zip格式的压缩包解压的出来,会出现在各种文件夹内,非常烦人,特别是把文件分享给使用windows的朋友的时候,这些文件会让人不知所从,反复问这个文件干嘛的,有没有用,下面介绍使.DS_Store不再产生的办法。
.DS_Store是干什么的?
.DS_Store 是给Finder用来存储这个文件夹的显示属性的:比如文件图标的摆放位置。删除以后的副作用就是这些信息的失去。(当然,这点副作用其实不是太大).
删除所有.DS_Store文件
1、按住Command+空格键(⌘+Space)打开Spotlight,输入终端
2、输入以下命令,并输入密码,即可删除本机所有.DS_Store文件:
sudo find ./ -name “.DS_Store” -depth -exec rm {} ;
3.输入本机的密码(sudo是管理员权限,一般不要使用,使用不当会对电脑文件有损坏)
禁止生成.DS_Store文件
设置不再产生选项, 执行如下命令(建议不要执行,DS_store有它的作用的)
.DS_store是Mac处理文件的一种方式,建议不要设置成不产生此文件,如果实在不想在产生此文件,在终端中输入以下命令,即可禁止生成.DS_Store文件:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
标签:删除.DS_Store文件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
地理教学中使用WPS表格分析趋势数据
2023-02-08 15:59:42
![](https://img.aspxhome.com/file/2023/7/a165097_0s.jpg)
word使用Flash动画详细介绍
2022-02-16 04:57:52
![](https://img.aspxhome.com/file/2023/7/29567_0s.jpg)
excel表格里面日期怎么设置
2023-11-07 14:53:24
Win8系统下QQ弹出消息时播放器声音变小怎么办?播放器声音不受影响的解决办法
2022-06-05 13:34:32
![](https://img.aspxhome.com/file/2023/28/a247775_0s.jpg)
WPS2007使用技巧4则
2023-01-31 10:07:15
Excel教程 如何快速清除数据有效性
2023-08-08 10:53:11
![](https://img.aspxhome.com/file/2023/4/37734_0s.png)
word2013中怎么输入h上有一横的符号?
2022-03-04 06:27:11
![](https://img.aspxhome.com/file/2023/6/30686_0s.jpg)
计算机内部数据加工处理和传送的形式是什么
2023-04-11 08:15:29
excel其他数字格式设置教程
2022-08-12 17:14:14
![](https://img.aspxhome.com/file/2023/4/a154884_0s.png)
让Win8任务栏变成两行的实现方法
2023-06-08 18:37:50
![](https://img.aspxhome.com/file/2023/29/a258094_0s.jpg)
Win10电脑复制粘贴不能用怎么回事?Win10复制粘贴不能用解决方法
2022-11-26 16:03:14
![](https://img.aspxhome.com/file/2023/1/a279283_0s.png)
xara3d6动画制作教程
2023-07-30 00:04:54
![](https://img.aspxhome.com/file/2023/1/a277785_0s.png)
win7系统打开itunes软件提示itunes was not installed correctly的几种解决方法
2022-03-16 09:30:35
![](https://img.aspxhome.com/file/2023/28/a244544_0s.jpg)
Win10蓝牙支持服务怎么启动?
2022-04-01 23:55:06
![](https://img.aspxhome.com/file/2023/25/a218370_0s.jpg)
Win10系统总是自动生成Sandbox的文件夹的解决方法
2023-09-08 03:20:15
![](https://img.aspxhome.com/file/2023/2/a287769_0s.jpg)
电脑一直提示配色方案已更改为Windows7 Basic的解决方法
2022-05-10 02:14:07
![](https://img.aspxhome.com/file/2023/2/a290438_0s.jpg)
在Word2010文档中设置SmartArt样式
2023-12-08 20:54:47
![](https://img.aspxhome.com/file/2023/3/20503_0s.jpg)
word制作单斜线和多斜线表头的方法,非常实用!
2022-02-27 02:21:54
![](https://img.aspxhome.com/file/2023/4/32354_0s.gif)
excel四舍五入取整公式
2023-02-23 01:55:35
![](https://img.aspxhome.com/file/2023/5/55175_0s.png)
windows 10 登陆微软账号0x80190001错误解决方法
2023-10-28 10:55:55
![](https://img.aspxhome.com/file/2023/29/a262397_0s.png)