Linear vs non linear functions

I’m completely confused on how to do linear vs non linear functions. Does anyone have step by step on how to do them?