文件操作 - readonly-root
返回文件管理
返回主菜单
删除本文件
文件: /root/sh/sysconfig/readonly-root
编辑文件内容
# Set to 'yes' to mount the system filesystems read-only. # NOTE: It's necessary to append 'ro' to mount options of '/' mount point in # /etc/fstab as well, otherwise the READONLY option will not work. READONLY=no # Set to 'yes' to mount various temporary state as either tmpfs # or on the block device labelled RW_LABEL. Implied by READONLY TEMPORARY_STATE=no # Place to put a tmpfs for temporary scratch writable space RW_MOUNT=/var/lib/stateless/writable # Label on local filesystem which can be used for temporary scratch space RW_LABEL=stateless-rw # Options to use for temporary mount RW_OPTIONS= # Label for partition with persistent data STATE_LABEL=stateless-state # Where to mount to the persistent data STATE_MOUNT=/var/lib/stateless/state # Options to use for persistent mount STATE_OPTIONS= # NFS server to use for persistent data? CLIENTSTATE= # Use slave bind-mounts SLAVE_MOUNTS=yes
修改文件时间
将文件时间修改为当前时间的前一年
删除文件