Command prompt in Windows and Linux -- What is their language called?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World
--
Chapters
00:00 Command Prompt In Windows And Linux -- What Is Their Language Called?
00:30 Accepted Answer Score 17
02:03 Answer 2 Score 7
02:43 Answer 3 Score 4
02:55 Answer 4 Score 1
03:06 Answer 5 Score 0
03:14 Thank you
--
Full question
https://superuser.com/questions/349481/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #linux #commandline
#avk47
ACCEPTED ANSWER
Score 17
In Windows, when you open a command prompt, almost always the program that is running is cmd.exe
. It's an enhanced NT derivative of the old DOS-based command.com
, which is in turn has similarites with the even older CP/M CCP
command interpreter.
In Linux, as @Griffin mentions, usually you are running bash
in some sort of terminal emulator if you are using it in a graphical environment. (which can vary widely depending on your distro and desktop environment). This stands for "Bourne Again SHell" because it's an extended version of an earlier "Bourne" shell (sh
) that's been standard on Unix for a long time. There's other "alternative" shells in common use such as csh
, ksh
, and tcsh
.
The Windows cmd.exe
can be considered a shell as well (as can explorer.exe
).
Both the Windows command prompt and all Unix shells have several "built-ins", or commands that are handled entirely within the shell. This includes some basic commands (such as cd
) and many conditional commands and operators that control script flow if a batch file of commands are executed.
However, in both Linux and Windows, the great majority of "commands" that do useful things are in fact external programs that are "called" by the the shell. And that is the primary purpose of a shell, to enable an operator to start programs with specifying arguments for those programs. It's not really strictly a programming language, it's just a framework for launching programs.
ANSWER 2
Score 7
It's not a "language" really. It's simply the Command-Line Interface (CLI) for that particular operating system.
The commands and syntax are chosen and defined by the operating system creators.
There are various scripting languages (some more popular that others, depending on the operating system, etc.) that are commonly used with in conjunction with a CLI to perform batches of tasks.
BTW the term "Command Prompt" refers to the actual bit of text that signifies where you are to enter your next command in the CLI. (ie: C:\>
or #
, etc.).
ANSWER 3
Score 4
Windows uses batch. The most popular language in Linux is bash, but there are alternatives.
ANSWER 4
Score 1
MS Windows Shell Command Language?
In comparison to
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
ANSWER 5
Score 0
In Linux, or any other Unix-based system, they call it shell scripting.