file deletion challenge

3 replies [Last post]
Tom Owad's picture
Offline
Joined: Dec 16 2003
Posts: 2460

On an HFS+ formatted USB thumb drive on Mac OS X 10.11, create a file with the following name:

test␀.rtf

(Note the 'nul' in the middle of the filename. It's U+2400.)

Now delete that file. If anybody finds a way, I'm very curious to hear it!

__________________

Admin

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dr. Webster's picture
Offline
Joined: Dec 19 2003
Posts: 1687
Re: file deletion challenge

drwebster@linuxmint-vm ~ $ sudo mount -t hfsplus -o remount,force,rw /dev/sdb2 /media/drwebster/usbflashdrive
drwebster@linuxmint-vm ~ $ cd /media/drwebster/usbflashdrive
drwebster@linuxmint-vm /media/drwrbster/usbflashdrive $ ls
othercrap test␀.rtf
drwebster@linuxmint-vm /media/drwrbster/usbflashdrive $ sudo rm test␀.rtf
[sudo password for drwebster]:
drwebster@linuxmint-vm /media/drwrbster/usbflashdrive $ ls
othercrap

(you didn't say it had to be *deleted* in OS X Evil Block Company )

__________________

Applefritter Admin

resman's picture
Offline
Joined: Feb 9 2006
Posts: 213
Re: file deletion challenge

Are you able to rename it from the Finder? Get Info on the file, change its name to something simple, then delete.

Tom Owad's picture
Offline
Joined: Dec 16 2003
Posts: 2460
Re: file deletion challenge

Nope. You can't even delete or rename by inode number.

__________________

Admin