LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-03-2008, 02:42 PM   #1
john_boys
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
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
 
Old 03-03-2008, 02:59 PM   #2
armanox
Member
 
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
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?

Last edited by armanox; 03-04-2008 at 05:31 PM. Reason: spelling
 
Old 03-04-2008, 06:46 AM   #3
john_boys
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by armanox View Post
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
 
Old 03-04-2008, 05:30 PM   #4
armanox
Member
 
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
A little bit of Google-fu(TM) says that it cannot be done.
 
Old 03-29-2008, 07:55 AM   #5
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
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

Last edited by simplicissimus; 04-02-2008 at 05:12 AM.
 
Old 03-29-2008, 08:17 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by john_boys View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to search in VI wih case insensitive lordofring Programming 7 11-16-2011 08:11 AM
Case-insensitive CVS? sundialsvcs Programming 2 06-25-2006 10:01 AM
SuSE's less(1) is always case insensitive: how to disable? wirawan0 SUSE / openSUSE 1 01-25-2006 12:10 PM
case insensitive search command ColKurtz Linux - Newbie 4 01-20-2005 07:02 AM
case-insensitive auto-complete gSalsero Programming 3 06-08-2004 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration