⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 self-destruct.sh

📁 一本完整的描述Unix Shell 编程的工具书的所有范例
💻 SH
字号:
#!/bin/bash# self-destruct.shkill $$  # Script kills its own process here.         # Recall that "$$" is the script's PID.echo "This line will not echo."# Instead, the shell sends a "Terminated" message to stdout.exit 0#  After this script terminates prematurely,#+ what exit status does it return?## sh self-destruct.sh# echo $?# 143## 143 = 128 + 15#             TERM signal

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -