文件操作 - hosts
返回文件管理
返回主菜单
删除本文件
文件: /etc/hosts
编辑文件内容
# Your system has configured 'manage_etc_hosts' as True. # As a result, if you wish for changes to this file to persist # then you will need to either # a.) make changes to the master file in /etc/cloud/templates/hosts.debian.tmpl # b.) change or remove the value of 'manage_etc_hosts' in # /etc/cloud/cloud.cfg or cloud-config from user-data # 127.0.1.1 ubuntu-s-2vcpu-2gb-fra1-01 ubuntu-s-2vcpu-2gb-fra1-01 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
修改文件时间
将文件时间修改为当前时间的前一年
删除文件