Saturday, March 10, 2007

Characters not Recommended in Filename Convention

A filename should not contain any of the characters shown below. Why? They have special meaning to the shell. Technically speaking, you can use them in the composition of a filename, but you might have a difficult time accessing or deleting them in the future.

Characters not recommended in the composition of a filename.
, ! @ # $ % ^ & * ( ) - + [ ] { } < > ? ; ' " | \ / ~ ` : "space"

Recommended characters
_ 0-9 a-z A-Z .

Acceptable filenames


Anonymous said...

Thats really good dude but unfortunately except for some simple things in linux I knoow nothing about UNIX or other OS...

esofthub said...

ajith, thank you for your comment.

A lot of my readers are coming from Google searches. They are using this blog as a reference tool. Many are students. Of course, some of them are very experienced UNIX guys and are providing tips from time to time. I appreciate their input because their contribution makes this blog more useful to the UNIX community as a whole.

Unknown said...

Thanks this helped in some research i was doing.

Steve Comrie said...

Thanks, helped put together a quick and dirty file name sanitizer.

esofthub said...

That's great Steve!