选项

Linux 终端

此提示要求人工智能模拟一个 Linux 终端,在代码块内严格执行输入的命令并输出结果。

提示内容 复制

I need you to act as a Linux terminal. I will input commands, and you should respond with the terminal's corresponding output. Your responses must be contained solely within a unique code block, with no additional text. Do not provide explanations or type any commands unless I explicitly instruct you to do so. When I need to communicate with you in English, I will enclose the text in curly braces, like {this}. My first command is

复制

我需要你扮演一个 Linux 终端。我会输入命令,你应返回终端对应的输出结果。你的回复必须仅包含在一个独立的代码块内,不得包含任何额外文本。除非我明确指示,否则请勿提供解释或输入任何命令。当我需要用英语与你交流时,我会将文本用大括号括起来,例如 {this}。我的第一个命令是

复制
评论 (6)
0/300
DonaldLee
DonaldLee 2026-06-01 01:26:31

Honestly, this prompt is super clean for simulating a terminal session. I tried it with ls, pwd, and even some apt commands—it sticks strictly to code blocks and never breaks character. Perfect for safe testing without messing up a real system. My only nitpick: sometimes I wish it could handle interactive commands like nano, but that’s a tough ask. Still, 10/10 for roleplay precision. 🤓

JonathanDavis
JonathanDavis 2026-05-26 14:26:39

This prompt is super handy for practicing Linux commands without opening a terminal! The structure is clear—just paste and go. I used it to test a few basic ls and grep commands, and it worked perfectly. Maybe adding a note about simulating specific distros or shell environments could be cool? Overall, a solid tool for quick checks or beginners. 👍

RyanSanchez
RyanSanchez 2026-04-19 15:26:32

This prompt is super clear and gets straight to the point! The rule about using curly braces for English is a clever workaround. I've been using it to practice command syntax, and it works perfectly. The strict 'code block only' output keeps things clean. Maybe a tiny suggestion? Adding a fake user@hostname prompt at the start of each code block could make the simulation feel even more immersive. Solid 9/10!

RoyMitchell
RoyMitchell 2026-04-06 15:26:32

Hmm, this prompt is super strict with its format rules but that's kinda the point. The curly braces for instructions is a neat hack to avoid breaking the terminal illusion. Actually tried it for some basic file system navigation. Works great, though sometimes you just want a tiny bit of context, you know? Solid for practicing commands! 💻

CarlLewis
CarlLewis 2026-04-03 22:26:34

This prompt is cleverly designed for a single, specific use case. I use it to test out command sequences without having to open a real terminal. The strict output in just a code block is perfect—it prevents any AI commentary from cluttering the 'terminal' window. However, it needs a bit more flexibility for multi-line inputs; sometimes pasting a script is awkward. Still, it's a great, focused tool for quick CLI experiments 🧪.

推荐

Linux网络问题故障排查脚本生成
Generate a directly runnable Shell script for Linux system administrators to automatically detect common network connection faults on servers, including network card status check, port listening verification, route reachability test and DNS resolution test. After execution, output the fault location result in an easy-to-read format and give corresponding executable fix suggestions without extra descriptions.
Git命令错误排查助手
Process the various common errors developers encounter when running Git commands, understand the error message the user provides, locate the specific root cause, give a clear corresponding fix solution, offer terminal commands that can be copied and executed directly, and explain why the error occurred so developers can resolve the issue quickly and resume work.
Bash脚本错误调试工具
Work with the Bash script content and corresponding terminal error log provided by the user, locate syntax, logical or environment compatibility issues in the script after reading the full content, give an accurate description of the problem root cause, output the complete modified runnable script, and output the result directly without extra process instructions.
Python脚本bug定位工具
Check the small to medium Python script provided by the developer, find syntax mistakes and common runtime logic errors, output the complete fixed runnable code, and explain each error's cause and the modification idea in plain language.
Bash脚本错误排查工具
Work with the failed Bash script content and terminal error logs provided by the user from the enterprise production server, find the problems in the script, output the complete fixed runnable script, and explain the cause of the error and the repair idea.
Bash脚本错误排查助手
Work with the Bash script content and runtime error output provided by developers, find existing syntax, logic or permission issues in the script, explain the specific cause of the problem, and output the complete modified script that can run normally.
OR