Wednesday, 13 July 2016

Linux - File name and Directory name are case sensitive

Note to self : Not every operating system is as forgiving as Windows.

So I have started to use the Linux (Ubuntu 16.04) operating system as side activity for last couple weeks, primarily because Microsoft has allowed me to be less dependent on OS when I build applications (read .NET core). While using the OS, I learned that it is unforgiving when it comes to names of files and directories. They are case sensitive. See examples below:




Another encounter with the same problem:

I installed "Docker for windows" and "Docker tools for Visual Studio". After adding "docker support" in the ASP.NET Core application, "publish" operation kept failing with following error:


But the file was present :)


And then it struck me again. Script was instructing the docker daemon to look for a file with extension name ".Debug" but the file present in package had extension name as ".debug". Its a wonderful world :).

PS: Experience with Ubuntu has been quite positive for me. I can run the VM with just 4 GB RAM and it does not have any responsiveness issues. Plus I can install VS Code and code in .NET.

No comments:

Post a Comment