Prompt
A prompt may refer to any of the following:
1. A prompt is text or symbols used to represent the system's readiness to perform the next command. A prompt may also be a text representation of where the user is currently. For example, an MS-DOS prompt or Windows command prompt may look like the example below.
C:\Windows>
This prompt indicates the user is currently in the windows directory on the C drive, and the computer is ready to accept commands.
Use the prompt command to change how the prompt is formatted in MS-DOS.
2. A prompt may also refer to a message or window, alerting the user or asking for a confirmation. Below is a basic example of this prompt asking if the user wants to continue. In this example, pressing "y" or typing 'yes" would continue performing the action.
Are you sure you want to continue? (Yes/No)
On a command line, any command that deletes a file or directory also has a switch to remove files without a prompt. For example, in Linux using the "-f" switch with the rm command (e.g., rm -f example.txt) would remove the example.txt file without a prompt.
JavaScript prompt
Using JavaScript, you can enter anything into the below box and click the Prompt button to create a prompt with that text in your browser window.
3. In an FTP (File Transfer Protocol) session, the prompt command turns the FTP prompt on and off. See the following link for information about prompt and other FTP commands.
4. With AI (Artificial Intelligence) tools like ChatGPT, a prompt, prompting, or prompt engineering describes knowing how to give an AI a request. See our prompt engineering page for further information.
Command prompt, Operating system terms, Option, Prompt engineering