20 quick tips to make Linux networking easier (1/20)
已有 327 次阅读2020-2-19 10:55
|系统分类:Linux
1: Make use of your /etc/hosts file
The hosts file is used for static host names and offers a quick way to create networking shortcuts. One of the
first things I do on a Linux machine is add various machines to the /etc/hosts file. This saves me from having
to type a lot of IP addresses. The format of an address for this file is:
IP_ADDRESS NICKNAME
For example, if I use one machine for a backup location at IP address 192.168.1.101, I could enter:
192.168.1.101 backups
Now if I have to connect to that machine, say with secure shell, I can just type ssh -v -l username backups to
make the connection.