LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-15-2003, 07:49 AM   #1
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Rep: Reputation: 30
Why is linux case sensitive?


I know that linux is case sensitive and have just thought....why?
 
Old 12-15-2003, 07:59 AM   #2
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
I wondered the same thing when I first started using linux. Consider the possibility of two commands spelled the same way, with different case. Like run_command and Run_Command. In dos, or dos box in windows, they'd be the same command, but in linux they're not. I could immediately see the freedom it gives the programmer or the casual user, you have a lot more choices for script names, etc.
 
Old 12-15-2003, 08:10 AM   #3
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Original Poster
Rep: Reputation: 30
ooooooh yeah, makes sense now, cheers.
I have seen commands like 'command -U' and 'command -u' for the same program.
 
Old 12-15-2003, 08:16 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Having it as case sensitive always made sense to me.. I always wondered why Windows wasn't case sensitive..
 
Old 12-15-2003, 08:52 AM   #5
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Linux is case sensitive because 'a' and 'A' are different as far as the OS is concerned. Historically, MS-DOS only used uppercase to represent filenames. In an attempt to allow lowercase while retaining backward compatibility, Windows 95 introduced LFNs (Long File Name) into the FAT filesystem. LFN allowed filenames longer than the MS-DOS 8.3, and in an effort to keep things uncomplicated, made no distinction between upper and lower case letters.
 
Old 12-15-2003, 10:09 AM   #6
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
linux use these way because you can have alot of options in command like -t -a -T -A and etc

most linux command has alot of options

u'll see alot when you type mount --help
 
Old 12-15-2003, 10:52 AM   #7
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Well, I'll give you a different answer: because case sensitive is simpler and faster to sort. Case insensitive sorting is much slower. I don't know about it being simpler for the user, but luckily the tab key does most of the typing for me.
 
Old 12-15-2003, 09:44 PM   #8
iTux
Member
 
Registered: Dec 2003
Posts: 33

Rep: Reputation: 15
Hi,

What I like about case sensitivity is that it enforces consistency. For example, filenames will always be refered to the same way in scripts etc. You will not have ls, LS, lS, Ls, etc.

Also, about the sorting ls will sort case sensitive. This why we usually write README, Makefile instead of readme, makefile in source directories, they all go to the beginning...

iTux
 
Old 12-15-2003, 09:49 PM   #9
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
LINUX is and was and will be developed using the C Language.
C is case sensitive and case sensitiveness also gives a lot of freedom and extra options.
Hence Linux is and must be case sensitive forever!
 
Old 12-16-2003, 07:05 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Small and capital letters have different ASCII-representations, thus for the system they are not the same. And Unix being a byte stream oriented OS ... DOS/Win has consistently to "to_upper()" any file name related input as their problem.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
case sensitive Filesystem without permissions enemorales Linux - General 3 08-19-2005 05:32 AM
is it possible to make apache2 non-case sensitive snip128 Linux - Newbie 1 07-15-2005 05:00 PM
is apache case-sensitive? browny_amiga Linux - Software 2 06-21-2004 01:57 PM
case sensitive groupadd? sysmaster Linux - General 0 07-28-2003 04:53 AM
case-sensitive issue david_wliu Linux - General 4 03-06-2003 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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