---
# System prepended metadata

title: 'Add Hosts on Ubuntu Linux '
tags: [Blog]

---

### Get your remote Linux IP 
```commandline=
hostname -I
```
### Add your remote Linux IP to the host list of your local computer
1. Edit the `/etc/hosts` file
```commandline=
sudo nano /etc/hosts
```
```commandline=
{IP} {host_alias}
## example
140.21.159.20 myLinux
```