In the field of computer science, "script" usually refers to a scripting language or script file. A scripting language is an interpreted programming language commonly used for tasks such as automation, batch processing, and rapid prototyping development.
# Operating system for this tutorial: Windows 10 system, Dell G3 computer.
In the field of computer science, "script" usually refers to a scripting language or script file.
A scripting language is an interpreted programming language commonly used for tasks such as automation, batch processing, and rapid prototyping. Unlike compiled languages, scripting language code is interpreted and executed line by line at runtime rather than pre-compiled into machine code. Scripting languages include many different languages, such as Python, JavaScript, etc.
Script files are text files containing scripting language code, usually with a specific file extension, such as ".sh", ".py", ".js", etc. Script files can be executed through tools such as operating systems, command line interfaces, and script editors.
In addition, in Unix and Linux systems, "script" is also a command line tool used to create a record of an interactive shell session. Using the "script" command, you can save the shell session output to a file for subsequent reference or review.
The above is the detailed content of what is script. For more information, please follow other related articles on the PHP Chinese website!