Linux
It is simple but useful, especially you may need it able to connect to the network and save all you stuff inside it, long story short, by doing do:
Run the below command and check what is the name of your network adapter:
Then run the below command to turn the network on
for example, if your network adapter is called eno1, and you want to assign it as 192.168.1.2, subnet mask is 255.255.255.0, then it should be:
then add default gateway for it
For example, it the default gateway is 192.168.1.1, then:
And Done!