文件操作 - hostname.aug
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/augeas/lenses/dist/hostname.aug
编辑文件内容
(* Module: Hostname Parses /etc/hostname and /etc/mailname Author: Raphael Pinson <raphink@gmail.com> About: License This file is licenced under the LGPL v2+, like the rest of Augeas. *) module Hostname = autoload xfm (* View: lns *) let lns = [ label "hostname" . store Rx.word . Util.eol ] | Util.empty (* View: filter *) let filter = incl "/etc/hostname" . incl "/etc/mailname" let xfm = transform lns filter
修改文件时间
将文件时间修改为当前时间的前一年
删除文件