How can I delete all files starting with ._ from the shell in Linux?

Garry Pettet :

As the title really. I have copied over a number of files to a Raspberry Pi from a Mac. This has resulted in lots of superfluous files starting with the prefix ._. I want to delete every file in a folder that starts with ._. How would I do this?

SMA :

Try something like:

cd /path/to/directory; \rm -rf ._*

OR if there are recursive files with in subfolders then try:

find /path/to/directory -name "._*" -type f -print0| xargs -0 \rm -rf

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I recursively delete all empty files and directories in Linux?

Linux: How can I delete all files whose file name is more than X characters in length?

On Linux, how can I find all files that contain a string and delete them?

how I can delete empty lines and lines starting from '/publications'?

How can I delete a particular if statement in shell script file and do the same for all files of all folders inside a single folder

How can i delete all the files in all directories?

Can I delete all migration files and start from scratch?

How can I automatically mark all opened files for delete when they are manually deleted from workspace

How can I delete all files with a particular extension in a particular folder?

How can I delete all files in a folder, but not the folder itself, in zsh?

How can I delete all my core files cleanly?

How can I delete all files that have the same extension ".TMP"?

How can I delete all the files in a directory but not the directory itself in Rust?

How can I delete all .LNK files on my Ubuntu machine?

How can I delete file extensions of all files in an array?

How can I find and delete corrupt files on Linux?

How do I delete all files of a particular type from a folder

How can i remove "<MAXROWS/>" string from all 30 files in my directory through linux / unix command?

How to delete all files in a current directory starting with a dot?

How to delete all files starting with "foo" in Firebase Storage

How can I batch rename all files that match a pattern in Linux?

How do I delete all lines in a file starting from after a matching line?

How can I delete files from low graphics mode?

How can I delete all unordered lines from a text file?

How can I delete all existing Pushpins from Bing Maps?

How can I delete all data from multiple Baqend tables?

Ocaml: How can I delete all the duplicate element from list?

How I Can delete all record from child table in room?

How can I delete all Panels from my calendar?