Hi,
I've added this post to the forum because I see a fair number of our users struggling with strange file not found issues on our Linux servers.
Case-sensitivity
Many of you are coming from a Windows environment where the file systems are case-preserving.
This means that Windows remembers the case of a file name but does 'asdf.doc' is still the same file as 'ASDF.DOC'.
On unix variants such as Linux, FreeBSD, and may others the file-system is case-sensitive.
This means that 'asdf.doc' is a completely different file from Asdf.doc or even 'asdf.DOC'.
Special characters
The following characters have a special meaning in Linux and to avoid confusion they should use only when absolutely necessary.
& ; | * ? ' " ‘ [ ] ( ) $ < > { } # / \ ! ~
The space character also has a special meaning but is difficult to show for obvious reasons.
If you must use a file name with one of these characters you need to escape the character.
The file name '$test.txt' must be written as '\$test.txt'. Any of the above special characters can be escaped by prefixing it with a \.
Example style suggestions
As as result of these differences you should adopt a naming style that works on both systems. The style should be consistent and easy to remember.
I recommend and use a simple system of making all file and folder names lower-case and using an underscore instead of a space. I've never needed to use any of the other special characters when naming a file.
Example file:
'My trip Around the world.html'
This would be written as 'My\ trip\ Around\ the\ world.html' if you needed to escape it.
This is how it would show up in a browser: 'http://example.net/My%20trip%20Around%20the%20world.html' Not pretty.
This is how I would name it: 'my_trip_around_the_world.html'


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks