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:
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.



上一篇:2020年2月19日签到记录贴
下一篇:20 quick tips to make Linux networking easier (2/20)

本版积分规则

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

GMT+8, 2020-9-29 22:12

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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