The answer is tethering. With a smartphone you can share your mobile internet with your computer.
As long as your carrier doesn't limit how you use your data, internet connection sharing (also known as netshare) with a Linux computer is a good option. Wi-Fi tethering is one option—here's how to use USB tethering on Linux with Android and iPhone.
What Is Tethering?
Tethering is the name given to connecting a mobile device to a computer such in order to share mobile internet.
While some carriers might restrict this activity, these days that is rare. Most smartphones have a data plan which allows tethering, making tethering an attractive way to get online.
Strictly speaking, tethering refers to using a USB cable to share mobile internet. This means that you will need to carry your phone's USB data cable around if you plan to use tethering.
Wireless tethering is also possible, using Wi-Fi or Bluetooth; this is also known as "wireless hotspot". In most cases wireless tethering is easier but there are good reasons to use USB tethering:
For a reliable network connection
To keep your phone charged
Avoid wireless interference
Prevent wireless sniffers intercepting data
If you don't have a suitable USB cable, here's how to use your phone as a wireless hotspot. Simply connect your Linux computer to your phone's hotspot to get online.