- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
Linux 拦截 reboot 命令
拦截用户输入的 reboot 命令,防止手滑输入成reboot导致服务器重启
把下面代码写入到 /etc/profile 内,并执行一次 source /etc/profile
# 自定义一个 func
sendya_reboot() { while true do echo -n "You really want to restart the server? (yes/no):" read crm if [ "$crm"x = "yes"x ]; then echo "rebooting" \reboot else break fi break done } # 别名 alias reboot='sendya_reboot'
售前咨询
售后咨询
备案咨询
二维码
TOP