Gamma basics

Hello is there a way to explain a basic understanding of gamma and it’s settings? Linear workflow on/off?
and is there a default setting or range that is generally used. Is it used for rendering output? or display or both. Thanks. Just need a good general understanding of what it is used for and why I might need to adjust the settings.