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
ABC.txt
_this_is_good
amc.txt
123.txt
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
5 comments:
Thats really good dude but unfortunately except for some simple things in linux I knoow nothing about UNIX or other OS...
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.
Thanks this helped in some research i was doing.
Thanks, helped put together a quick and dirty file name sanitizer.
That's great Steve!
Post a Comment