Static IP address

I am using VIM2 with Fenix 0.6 Ubuntu 18.04.3 LTS Server.
How do I set static ip address from the terminal window?