文件操作 - removepkg
返回文件管理
返回主菜单
删除本文件
文件: /snap/core20/2769/usr/share/bash-completion/completions/removepkg
编辑文件内容
# Slackware Linux removepkg completion -*- shell-script -*- _removepkg() { local cur prev words cword _init_completion || return if [[ "$cur" == -* ]]; then COMPREPLY=( $(compgen -W '-copy -keep -preserve -warn' -- "$cur") ) return fi if [[ "$cur" == */* ]]; then _filedir return fi local root=${ROOT:-/} COMPREPLY=( $(cd "$root/var/log/packages" 2>/dev/null || return 1; \ compgen -f -- "$cur") ) } && complete -F _removepkg removepkg # ex: filetype=sh
修改文件时间
将文件时间修改为当前时间的前一年
删除文件