内容一:使用 bash 命令执行命令
# bash -c ‘hostname’
(补充:这里以使用 bash 命令执行 hostname 命令为例)
内容二:使用 bash 命令执行脚本
# bash test.sh
(补充:这里以使用 bash 命令执行 test.sh 脚本为例)
# bash -c ‘hostname’
(补充:这里以使用 bash 命令执行 hostname 命令为例)
# bash test.sh
(补充:这里以使用 bash 命令执行 test.sh 脚本为例)
显示目前系统的进程数上限
# ulimit -n
配置文件格式:
-w <file> -p wa -k <search_key>
命令格式:
# auditctl -w <file> -p wa -k <search_key>
(
补充:
1) 这里的 <file> 是要监控的文件
2) 这里的 <search_key> 是个标识,用于简化在 audit 日志里搜索此命令
)
配置文件的案例:
-w /etc/group -p wa -k group_file
命令案例:
# auditctl -w /etc/group -p wa -k group_file
(
补充:这里以
1) 监控 /etc/group 文件
2) 标识是 group_file 为例
)
# augenrules
# service auditd restart
# auditctl -l
# ausearch -k group_file
(补充:这里以查看标识为 group_file 的 audit 日志为例)
https://access.redhat.com/solutions/3401281
# ldd `which ls`
# sudo dpkg --configure -a
# sudo apt install --fix-broken
# sudo apt remove --purge postfix
(补充:这里以删除报错的 postfix 软件包为例)
# sudo apt clean
# sudo apt autoremove
# sudo apt update
# sudo apt upgrade
# sudo apt-get install postfix
(补充:这里以重新安装前面报错并删除的 postfix 软件包为例)