Find and delete all .DS_Store files with a single command
By default, the '.DS_Store' file is hidden, and most of these files do not affect the system. However, when you compress a folder and send it to a friend (used on another operating system) or upload a folder to the server, you will encounter some problems.
If you are a Mac OS X user, you are no stranger to the '.DS_Store' file. The .DS_Store file is automatically generated by the system every time you open a folder.
What the ".DS_Store" file does is to store the folder properties, such as the location of the icon or the selection of wallpaper, so in the next time you open a folder. , it will remain the same as the previous version.
By default, the '.DS_Store' file is hidden, and most of these files do not affect the system. However, when you compress a folder and send it to a friend (used on another operating system) or upload a folder to the server, you will encounter some problems.
If you want to quickly delete all the '.DS_Store' files in a folder, you can refer to the following article of Network Administrator.
If you want to quickly delete all the '.DS_Store' files in a directory, you only need to use one command below:
Note:
The following command works on Linux.
1. Open your Mac OS X computer Terminal.
2. Next enter the following statement into the Terminal window:
find / path / to-folder (-name '.DS_Store') -delete
Replace '/ path / to / folder' with the directory path, such as "/ var / www / html".
In the above statement, use the find command to search for a specific directory containing the ".DS_Store" file and delete these files when detected.
From now on you can easily delete all ".DS_Store" files before sharing the folder to other users.
Refer to some of the following articles:
- 7 commands to manipulate the most basic files and folders everyone must know
- These "hack" tips are only Notepad can do
- Summary of how to fix errors without downloading files, not accessing YouTube and Not Responding errors on Chrome browser
Good luck!
You should read it
- What is a .tmp file? How to open .tmp file on Windows computer?
- Compress hiberfil.sys file to free up disk space on Windows 10
- What is a BBS file?
- What file is M4A? How to open, edit and convert M4A files
- How to completely delete a file in Linux so that it cannot be restored
- How to Delete DLL Files
- How to Delete a File Using Command Prompt
- ES File Explorer file management application disappears from Play Store, caused by DO Global scandal?
- What is Hiberfil.sys? How to delete Hiberfil.sys?
- How to Delete a File or Folder Showing Error 'Access Is Denied'
- How to Delete Zip Files on PC or Mac
- What is the Desktop.ini file? How to hide and delete Desktop.ini file on Windows
Maybe you are interested
5 animals that can survive a global disaster Why don't you need Adobe Reader anymore? How to Save a Page from a PDF File with Adobe Reader How to Print Multiple Single Sided Pages in Adobe Reader Detected critical zero-day vulnerability on Adobe Reader How to open Folder Options or File Explorer Options in Windows 10