Ok,…
I found the full explanation of “why” the ._foo files are on my tinycore.
In short:
- I normally use my MacBook to manipulate and edit files and connect to tinycore via samba.
- Mac uses HFS filesystem with separate data&resource handling.
- Mac creates ._foo files when saving files on non HFS filesystem.
Full explanation here:
https://www.cnet.com/tech/computing/invisible-files-with-prefix-are-created-on-some-shared-volumes-and-external-disks/To prevent creation of .DS_Store Files:
Run in Mac terminal window
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
This prevents creation of .DS_Store files on any network connected drive that specific Mac
Creation of ._foo files cannot be prevented, but they should be safe to delete as the resource information is only applicable for Mac specific reasons (did not test this yet myself but based on what I found it should be safe).
To delete ._foo files:
From parent directory (so from root directory if doing full system):
1/ locate all files: find . -type f -name '._*'
2/ check output, make sure you feel ok if all get removed
3/ delete them: find . -type f -name '._*' -delete
It may be necessary to run with “sudo”, I personally do 1st run without sudo and only run with sudo if needed.
My learnings…
- I normally use my MacBook over samba to do file handling and start editor on my MacBook to edit files. This workflow creates ._foo files as it involves a mixed use of mac HFS filesystem and tinycore non-HFS filesystem.
- for all editing this is not really a problem. These files are all in the “source code folder”. It’s actually just a limited set of files. It’s all in my “application area” which is relatively limited. I can keep doing this.
- for file handling this creates unnecessary clutter. File handling can be anywhere on my system and potentially creates pollution in my system. I recently had to create a .tcz extension for python and that extension may now very well have ._foo content (still need to check).
So…. For “non user space file manipulation” I will either stick to Linux commandline OR use flwm from tinycore gui over VNC on my mac.
I normally use tinycore in textmode. I sofar did the simple file handling from commandline but used the MacBook when moving or copying stuff “over far distances” for reason that commandline typing needs to be very precise for that. I will stop doing that.
[Edit]: Changed save to safe, 2 places. Rich