LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-22-2014, 12:40 AM   #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, 01: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 01:50 AM.
 
Old 04-22-2014, 02:20 AM   #3
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
But why?
 
Old 04-22-2014, 02: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, 02:49 AM   #5
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
Hi Automatic,

my "but why" was for the author of this topic
 
Old 04-22-2014, 03: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, 03:23 AM   #7
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,424

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
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, 03:51 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 07:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration