If you drop a ball from the top of a tall building, the height of the ball at time t seconds is not a linear function.
Example of linear function:
Salary is a good example of a linear function.
If you make 300 dollars a week, and let x be the number of weeks, the total money made is y = 300x.