RD之家欢迎你,立即注册 登录
RD笔记 返回首页

Toolong的个人空间 https://www.rdzhijia.com/?14227 [收藏] [复制] [分享] [RSS]

日志

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

已有 103 次阅读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.

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | RD之家欢迎你,立即注册

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

GMT+8, 2020-7-12 04:04

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部