moving an object with a specific speed

hey everyone , what i wanted is when the game starts , i want an object to move on the Z axis with a specific speed ,but i don’t know how i shall code it , please help me thanks !

In the update function:

transform.position.z += 5;
or enter a different speed in stead of 5.

Cheers