文件操作 - state
返回文件管理
返回主菜单
删除本文件
文件: /usr/libexec/initscripts/legacy-actions/auditd/state
编辑文件内容
#!/bin/sh # Helper script to provide legacy auditd service options not # directly supported by systemd # Check that we are root ... so non-root users stop here test $EUID = 0 || exit 4 PATH=/sbin:/bin:/usr/bin:/usr/sbin prog="auditd" state_file="/var/run/auditd.state" . /etc/init.d/functions printf "Getting auditd internal state: " killproc $prog -CONT RETVAL=$? echo -e "\n" sleep 1 if [ $? -eq 0 ] ; then if [ -e $state_file ] ; then cat $state_file fi fi echo exit $RETVAL
修改文件时间
将文件时间修改为当前时间的前一年
删除文件