文件操作 - test_logwatch.aug
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/augeas/lenses/dist/tests/test_logwatch.aug
编辑文件内容
module Test_logwatch = let conf = "# Configuration file for logwatch. # #Mailto_host1 = user@example.com MailFrom = root@example.com " test Logwatch.lns get conf = { "#comment" = "Configuration file for logwatch." } {} { "#comment" = "Mailto_host1 = user@example.com" } {} { "MailFrom" = "root@example.com" }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件