![]() |
._filenames ? Useless? Can they be removed?
I have a number of duplicated file names preceded with "._" which seem to do nothing but fill up my file lists with files that don't open. The first time I noticed them was in MPlayer. There were only a few and it was not not a big deal. In Media Box however there are WAY too many.
None of them open nor can they be found by the search tool. Are they junk that can be removed? If so I'm guessing it would be via the terminal which I'm not afraid to use, but lack the expertise to know the commands find and remove them. I tried this: find / -name '._' to no avail. |
Re: ._filenames ? Useless? Can they be removed?
I'm not sure what kind of files they are but you can find them with:
find / -name '._*' If you're sure you can delete them, this deletes all files starting with ._ in folder /home/user/ and subfolders: find /home/user -name '._*' -type f -print0 | xargs -0 /bin/rm -f |
Re: ._filenames ? Useless? Can they be removed?
They're stupid stuff generated by OS X. There's a way to turn them off, but I don't recall the method. Google it.
|
Re: ._filenames ? Useless? Can they be removed?
Quote:
xargs: invalid option -- 0 BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) multi-call binary |
Re: ._filenames ? Useless? Can they be removed?
Quote:
|
Re: ._filenames ? Useless? Can they be removed?
Code:
find /home/user -name '._*' -type f -exec rm "{}" \; |
Re: ._filenames ? Useless? Can they be removed?
Quote:
|
Re: ._filenames ? Useless? Can they be removed?
Who is up for editing the busybox's debconfig and adding some options in? I took a look last time using make menuconfig after apt-get source busybox from nokia's sdk repo and it has a lot of find related options disabled.
|
Re: ._filenames ? Useless? Can they be removed?
Argh! I'm stuck. Very frustrating not knowing what to do. I figured out how to remove them file by file using rm media/mmc2/folder/file.ext etc. I discovered that command will not work with file names that have a space. For example: I can rm mysong.mp3, but not my song.mp3 or 01 mysong.mp3
I also tried installing Emelfm2 file manager. I got the file unzipped and gpe file manager shows an Emelfm2 folder sitting in home/user, but I'm stuck there not knowing how to compile it. I have cmake installed. So I know I'm operating WAY out of my range here, but hey how else do you learn? |
Re: ._filenames ? Useless? Can they be removed?
I found another way to remove them. I changed the name of the containing folder. Recycled the original name to a new folder. I copied the visible files to the new folder and trashed the old folder with the hidden files in it. xterm conforms they are gone.
I'd still like to know the deal with the spaces in file names and install emelfm2? |
Re: ._filenames ? Useless? Can they be removed?
Hi, I downloaded emelfm2 from here: http://www.internettablettalk.com/fo...ad.php?t=18462 it is a nice .deb, so just click and install. Good luck.
|
Re: ._filenames ? Useless? Can they be removed?
Just for future note to people.. to delete a file with a space in command line you need to use an escape character (\).. so
Code:
rm -f my\ file.mp3 |
Re: ._filenames ? Useless? Can they be removed?
My way of deleting files like these from a file system is:
rm -i `find ._*` remove the -i if you don't want to confirm the deletion of each file, just remember there is no 'un'rm |
Re: ._filenames ? Useless? Can they be removed?
Quote:
|
Re: ._filenames ? Useless? Can they be removed?
Try this
Code:
~/trial $ ls -a Code:
~/trial $ for f in ._* Code:
~/trial $ ls -a |
Re: ._filenames ? Useless? Can they be removed?
or on one line
Code:
for file in ._*; do rm "$file";done |
Re: ._filenames ? Useless? Can they be removed?
or
ls ._* | while read file;do rm "$file";done |
Re: ._filenames ? Useless? Can they be removed?
Quote:
|
Re: ._filenames ? Useless? Can they be removed?
Quote:
Not only for find, for a lot of other things probably.. |
All times are GMT. The time now is 21:45. |
vBulletin® Version 3.8.8