LinuxQuestions.org
Help answer threads with 0 replies.
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 02-26-2009, 10:07 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Rep: Reputation: Disabled
case sensitivity


Why are Linux commands so case-sensitive? I see it all the time in terminal windows, and wonder at it. For instance, how is "NDISWRAPPER -i [file]" any different from "ndiswrapper -I [file]"? And just now, I hit F7 in KWrite to enter the "date" command. My caps lock was on, and KWrite didn't recognize "DATE." Since it means the same thing, it's ridiculous to me.
 
Old 02-26-2009, 10:45 PM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by newbiesforever View Post
Why are Linux commands so case-sensitive? I see it all the time in terminal windows, and wonder at it. For instance, how is "NDISWRAPPER -i [file]" any different from "ndiswrapper -I [file]"? And just now, I hit F7 in KWrite to enter the "date" command. My caps lock was on, and KWrite didn't recognize "DATE."
Case-sensitivity is greate for making your own version of commands, aliases, or visually distinguishing shell variables from commands in scripts.

Quote:
Originally Posted by newbiesforever View Post
Since it means the same thing, it's ridiculous to me.
Machine doesn't know what you meant, it only know what you told it to do.
"DATE" isn't the same as "date".

Anyway, commands are case-sensitive because they are programs and filesystem is case-sensitive. Honestly, I like it this way, because I remember getting problems because of case-insensitivity on windows (in certain cases in programming), and case-sensitivity makes you better organized. Also with case-sensitive filesystem you can create directory and file with same name. Without it you can't do that.

If you don't like this:
http://ubuntuforums.org/showpost.php...05&postcount=6
But I wouldn't recommend that.

Last edited by ErV; 02-26-2009 at 10:47 PM.
 
Old 02-26-2009, 11:08 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by newbiesforever View Post
Why are Linux commands so case-sensitive?
Why is the sky so blue... It's just the way it is. Or at least, the way we perceive it (not the "blue" means anything to the sky, it's just an arbitrary name for a sensation that a certain wavelength range of light produces in our brain.

When you write a letter, you write it following some rules. You don't write "my Dog iS lazy.", nor "my dog IS LAZY", nor even "my dog is lazy.". You write this:

Quote:
My dog is lazy.
And anything else is -strictly speaking- incorrect in most contexts.

Well, Linux has it's own language, and you have to learn it to be able to speak it. It's that simple. Case sensivity is just part of Linux. Some people like it, some others don't, but it's just part of Linux, just like accents and dieresis are part of the Spanish language and kanji, katakana and hirakana are part of the Japanese one. Asking "why language X is not like my language" doesn't make much sense to me. Just like asking "why linux doesn't behave like windows/dos" (which I suspect is the real question here).

Quote:
Since it means the same thing, it's ridiculous to me.
Maybe for you, and only semantically speaking. Even in human language, these subtle things are important, You obviously don't mean the same when you say "us" or "US" (unless we are living in the US ), and when you want to write the first person pronoun you write "I" (uppercase) and not "i".

In my opinion, ambiguity in a language is a bad thing. There are all kind of different opinions of course.

Disclaimer: English is not my native language, so maybe the examples above were not the best, still I think they are understandable enough for my illustrative purpose.

Last edited by i92guboj; 02-26-2009 at 11:15 PM.
 
  


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
Kerberos and case sensitivity chriscowley Linux - Networking 1 05-02-2008 09:53 AM
Apache case sensitivity problems VeeDubbs Linux - Networking 1 02-19-2006 06:00 PM
Activating case sensitivity in `sort' command? wirawan0 Linux - General 4 06-26-2004 10:20 AM
Case-Sensitivity in Python Odd_Bloke Programming 2 09-02-2003 04:20 PM
Case sensitivity in SED substitutions jkoch Programming 1 02-21-2003 04:15 PM

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

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