How to Modify and Manage the Hosts File on Linux
Dec 14, 2019 · The Linux Hosts File's Location. On Linux, you can find the hosts file under /etc/hosts. Since it's a plain text file, you can open the hosts file using your preferred text editor. Since the hosts file is a system file, you'll need administrative rights to save changes. To edit the file using a Linux terminal-based text editor such as nano, you'll need superuser access.
DA: 5 PA: 96 MOZ Rank: 10