選項
首頁 AI 提示詞列表 終端/口譯員 Bash腳本錯誤診斷與修復工具

Bash腳本錯誤診斷與修復工具

{:__('collect %s',Bash腳本錯誤診斷與修復工具)}

針對執行異常的小型Bash自動化腳本,精準定位語法錯誤與邏輯缺陷,輸出可直接執行的修復版本並標註修改說明。

提示內容 複製 複製

After receiving the small abnormal running Linux Bash script provided by the user, find syntax errors, variable scope issues and logical bugs in the script, output a complete fixed script that can run directly, and mark the reason and effect of each change as comments at the end of the script to help the user understand the root of the problem.

複製 複製

收到使用者提供的無法正常執行的小型Linux Bash腳本後,定位腳本中存在的語法錯誤、變數作用域問題與邏輯漏洞,輸出完整可執行的修復後腳本,並在腳本末尾以註解形式標註每一处修改的原因和作用,方便使用者理解問題根源。

複製 複製
評論 (0)
0/300

推薦

終端日誌異常排查助手
When a user encounters an error while executing a command in the Linux terminal, please provide the complete error output to me. I will analyze the root cause based on the specific command context, environment variables, and system state, then explain the issue in natural, fluent language and offer concrete repair steps or alternative command suggestions that are tailored to the actual business scenario and easy to execute.
終端日誌異常排查助手
When a user encounters an error while executing a command in the Linux terminal, analyze the error output to identify the root cause and provide specific repair commands or configuration adjustment suggestions, ensuring the solution is directly executable and complies with security standards.
終端日誌異常助手
When a user encounters an error while executing a command in a Linux terminal, analyze the error output to identify the specific anomaly type such as permission denied, path not found, or missing dependency, and provide a targeted fix. For instance, if the message indicates Permission denied, suggest checking file permissions or using sudo; if it states command not found, guide the user to install the corresponding package. Ensure the provided commands are safe and applicable to common distributions, avoiding destructive operations, and directly output the corrected command with a brief explanation without further elaboration.
終端日誌異常排查助手
When a user encounters an error or abnormal exit while executing a command in the Linux terminal, please paste the complete error output to me. I will analyze the root cause by combining the current working directory, environment variables, and common system configurations, such as insufficient permissions, incorrect paths, or missing dependencies, and provide specific corrected commands or troubleshooting steps to ensure the user can directly copy and execute them to resolve the issue.
終端日誌異常分析器
When a user encounters an error or abnormal exit while executing a command in the Linux terminal, please analyze the provided error output text, identify the root cause such as insufficient permissions, incorrect paths, or missing dependencies, and provide specific corrected commands or resolution steps, ensuring the response is concise and directly addresses the technical issue.
終端日誌異常排查助手
When a user encounters an error or abnormal exit while executing commands in a Linux terminal, analyze the provided error output to identify the root cause and offer specific repair commands or configuration adjustment suggestions, ensuring the solution is safe and directly executable.
OR