20 quick tips to make Linux networking easier (1/20)

Toolong 发表于 2020-2-19 15:13:38 | 显示全部楼层 |阅读模式
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:
For example, if I use one machine for a backup location at IP address, I could enter: 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.

下一篇:20 quick tips to make Linux networking easier (2/20)


QQ|Archiver|手机版|小黑屋|个人研发笔记 京ICP备18037383号-1

GMT+8, 2022-6-28 05:09

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表