Shell, CMD, DOS, and scripting language differences and linkages

Source: Internet
Author: User

Issue One: dos differs from windows in cmd  On Windows systems, start-run-cmd can open "cmd.exe" for command-line operations. The operating system can be divided into the core (kernel) and shell (shell) two parts, wherein the shell is the operating system and external main interface, located in the outer layer of the operating system, to provide users with the operating system core communication channels. The desktop that you see in Windows systems is Explorer.exe (the Resource manager), which is the graphical shell, and cmd is the command-line shell. This is the biggest difference between CMD and DOS, one is just an interface, an operating system. Some of the commands in CMD are similar to commands in DOS, so many people confuse the two. CMD is part of the Windows system, DOS itself is a system, in the DOS system can be deleted, repair Windows system, and under the CMD is not.  question two: What is the shell under Linux?  shell commonly known as shell (used to distinguish from nuclear kernel), is a "command parser." As defined by ABS, the shell is the shell is a command interpreter. More than just the insulating layer between the operating system kernel and the user, it ' s also a fairly powerful programm ing language. There are two kinds of shell and command line shell of GUI. The shell manages your interactions with the operating system: waiting for your input, explaining your input to the operating system, and processing the output of a wide variety of operating systems. Different systems have different shells, such as bash, C shell, Windows Power shell, and so on, in Linux systems, usually Bourne Again shell (that is, bash).  question three: can I use bash shell under Windows?  Bash is a shell under Linux and UNIX, and if you really want to try it, you can install the Cygwin environment under MS Windows and then use it under. It is important to note that the Cygwin environment differs from the real Linux or UNIX, and some commands do not work properly. The most direct experience, or the use of Linux to be intimate, can do almost anything. If you want to use the shell under MS Windows, it is recommended to use Microsoft PowerShell, which provides you with full functionality to operate MS Windows.   question four: What is the difference between a scripting language and a normal programming language? The programming language "write-compile-link-run", the scripting language is "interpretation-execution" rather than compiling, the script language of the program code even if the final executable, through the corresponding interpreter to explain the execution, so more convenient and fast. Each scripting language requires its corresponding interpreter. such as Perl, Python, Ruby, JavaScript, and so on are scripting languages, the shell also belongs to a more special scripting language.  question five: Linux shell is the difference between bash and Windows cmd? The shell is a command interpreter (also an application) that is between the kernel and the user, responsible for passing the user's instructions to the kernel and echoing the execution results back to the user, while the shell can be a powerful programming language. On the Linux/unix platform, the shell is mostly the bash shell by default.cmd is the shorthand for command shell, and Microsoft is defined as: the command shell is a separate software program that provides direct communication betwe En the user and the operating system. The non-graphical command shell user interface provides the environment in which you run character-based applications and Utilities. The command shell executes programs and displays their output on the screens by using individual characters similar to the MS-DOS command interpreter Command.com. (Commandshell is a standalone application that provides users with the ability to communicate directly to the operating system, providing a non-graphical environment for character-based applications and tools, which executes commands and echoes MS-DOS-style characters on the screen. )Therefore, it is possible to think of Linux Shell=bash and windows=cmd as the command line interpreter, which is the interface between the user and the operating system. But bash is much more powerful than CMD, and Windows has a powerful shell called Windows Power Shell.

Shell, CMD, DOS, and scripting language differences and linkages

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.