Case Sensitivity

noun

say it: “KAYSS sen-sih-TIV-ih-tee” /ˈkeɪs ˌsɛnsɪˈtɪvɪti/

Whether a program treats capital and small letters as different, so that East and east count as two different words.

What is case sensitivity?

Case sensitivity is whether a program treats capital and small letters as different. A case-sensitive search for east door misses East door. grep and Linux file names are case-sensitive; PowerShell's Select-String and -match, and a Mac's file names, ignore capitals unless you ask them not to.

grep "east door" logs/*      # misses "East door"
grep -i "east door" logs/*   # -i ignores capitals: finds both

In a sentence

  • “Linux keeps case sensitivity in file names, so Photos and photos can be two different folders.”
  • “grep found only two of the three lines, because of its case sensitivity: East and east weren't the same word to it.”

Level: Novice · More Operating System terms at this level

Updated