top -c
ps -ef
netstat -antp # 查所有端口链接
ls -al /proc/$PID/exe # 查执行文件
kill -9 $PID # 杀进程
// 查文件
/usr/lib/systemd/system
/usr/lib/systemd/system/multi-user.target.wants
/etc/rc.local
/etc/inittab
/etc/rc0.d/
/etc/rc1.d/
/etc/rc2.d/
/etc/rc3.d/
/etc/rc4.d/
/etc/rc5.d/
/etc/rc6.d/
/etc/rc.d/
查找定时任务
cat /etc/crontab
cat /var/spool/cron
cat /etc/anacrontab
cat /etc/cron.d/
cat /etc/cron.daily/
cat /etc/cron.hourly/
cat /etc/cron.weekly/
cat /etc/cron.monthly/
cat /var/spool/cron/
对定时任务提权
chattr -ia /etc/cron.hourly/logrotate /etc/cron.daily/logrotate /etc/cron.weekly/logrotate /etc/cron.monthly/logrotate
删除定时任务
rm -rf /etc/cron.hourly/logrotate /etc/cron.daily/logrotate /etc/cron.weekly/logrotate /etc/cron.monthly/logrotate