LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Make Linux case insensitive filename (https://www.linuxquestions.org/questions/linux-desktop-74/make-linux-case-insensitive-filename-625447/)

john_boys 03-03-2008 03:42 PM

Make Linux case insensitive filename
 
hi, can any one tell me what code to modify in order to make Linux make case insensitive filename. i do not want the following file names to be created in the same folder:
ab.c
Ab.c
aB.c
AB.c
thanks

armanox 03-03-2008 03:59 PM

To my knowledge, case sensitivity depends on the filesystem. Ext2/3/4, JFS, XFS, UFS, ZFS, HFS, HFS+, etc are all case sensitive. FAT12/16/32 is case insensitive, with FAT 12/16 having 8.3 filenaming, and FAT32 with long names.

Out of curiosity, why is this needed?

john_boys 03-04-2008 07:46 AM

Quote:

Originally Posted by armanox (Post 3076963)
To my knowledge, case sensitivity depends on the filesystem. Ext2/3/4, JFS, XFS, UFS, ZFS, HFS, HFS+, etc are all case insensitive. FAT12/16/32 is case insensitive, with FAT 12/16 having 8.3 filenaming, and FAT32 with long names.

Out of curiosity, why is this needed?

Thank you. it is school Project. No other purpos. Can you please give me more details how to this. Do i have to change the kernel? is there a filesystem (case insensitive) which i could just place in a linux source code and remove the case sensitive one.

thanks again

armanox 03-04-2008 06:30 PM

A little bit of Google-fu(TM) says that it cannot be done.

simplicissimus 03-29-2008 08:55 AM

be creative
 
Multiple options:

- use a filesystem that is not case sensitive (armanox already mentioned a few), that way you will end up with all uppercase (or all lowercase) letters, no matter what you type. Usually this will also limit the number of character possible for a filename.

- use a script as a cron job to parse your filesystem in regular intervals and and make all files either uppercase or lowercase. Usually this will overwrite a few files that already differ only by cases.

- be creative and find another (better) solution - after all, this is a school project.


Regards,
SIMP

Fedora User

pixellany 03-29-2008 09:17 AM

Quote:

Originally Posted by john_boys (Post 3077604)
Thank you. it is school Project. No other purpos. Can you please give me more details how to this. Do i have to change the kernel? is there a filesystem (case insensitive) which i could just place in a linux source code and remove the case sensitive one.

thanks again

Thank you for acknowledging that this is schoolwork.

I think it would help if you told us more about what the project is supposed to be doing. In the original post, the goal is ambiguous.

It's hard for me to imagine that they would give you a problem that required modifying the kernel.


All times are GMT -5. The time now is 05:46 PM.