LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2014, 11:40 PM   #1
Sharath Ravi
Member
 
Registered: Jun 2012
Posts: 37

Rep: Reputation: Disabled
Case insensitive


Hi All,

Can Linux (centOs 6) made case insensitive.. if yes can some1 please explain me how it can b done.

Thanks in advance.
 
Old 04-22-2014, 12:49 AM   #2
Automatic
Member
 
Registered: Mar 2013
Posts: 42

Rep: Reputation: Disabled
Err... no?

That'd require literally modifying and recompiling every program out there, what about programs that use capitalization to specify the negative? Such as useradd (-m = create directory, -M = don't create directory). What about programs that rely on capitals? Etc...

You could maybe run some hackery on the VFS to get a case insensitive file table, but, far from a good idea.

Last edited by Automatic; 04-22-2014 at 12:50 AM.
 
Old 04-22-2014, 01:20 AM   #3
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
But why?
 
Old 04-22-2014, 01:34 AM   #4
Automatic
Member
 
Registered: Mar 2013
Posts: 42

Rep: Reputation: Disabled
Quote:
Originally Posted by kooru View Post
But why?
I'm going to assume you're asking OP that, not me, but, for the sake of answering OP when he inevitably asks that:-
Code:
if(args[0] == "-m") {
//do dat
} else if(args[0] == "-M") {
//do dis
}
Obviously you wouldn't code like that, but, it's a simple method to understand. It's impossible to programmatically change all of that, especially without recomiling all the programs.
 
Old 04-22-2014, 01:49 AM   #5
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
Hi Automatic,

my "but why" was for the author of this topic
 
Old 04-22-2014, 02:16 AM   #6
Sharath Ravi
Member
 
Registered: Jun 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
kooru,

i have a apache server in which i have some images. while opening that file in windows box its says image not found. Reason is the file has a upper case letter in the name.So i need to rename all the files to lower case or make linux box case-insenstive.

For example
/var/www/html/content/LessonPlan_Master/147815/images/
b3487t5.jpg
B3487T5.jpg

Where as in windows it works fine.
 
Old 04-22-2014, 02:23 AM   #7
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,006

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
So in other words, absolutely nothing to do with Linux but actually your web page and apache setup. You might try asking your actual question next time and you will get a much swifter response.

I will leave this for the apache / html gurus to explain what you need.
 
Old 04-22-2014, 02:51 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe this is of some help:
http://answers.oreilly.com/topic/108...s-with-apache/
 
1 members found this post helpful.
  


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
Apache2 case insensitive NetEng1 Linux - Server 5 02-18-2013 09:39 AM
gcc case insensitive nav_linux Programming 1 07-11-2010 11:29 PM
Checking of Case insensitive gregarion Programming 5 01-19-2010 11:09 PM
Apache Case Insensitive RiceAnis Red Hat 4 12-03-2009 08:45 AM
Copying files from case-sensitive Linux to case-insensitive Windows via CIFS? SlowCoder Linux - General 4 05-07-2008 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:33 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