Problem one: DOS and Windows CMD difference

In Windows, you can choose Start, Run, CMD to open cmd.exe to perform CLI operations. The operating system can be divided into kernel and Shell. Shell is the main interface between the operating system and the outside, located in the outer layer of the operating system, and provides users with a way to communicate with the core of the operating system. Exe (Explorer) is the graphical shell, and CMD is the command line shell. This is the biggest difference between CMD and DOS, one is an interface, the other is an operating system. However, some commands in CMD are similar to commands in DOS, so many people confuse the two. CMD belongs to a part of Windows system, DOS itself is a system, in the DOS system can be deleted, repair Windows system, and in the CMD is not.

Question 2: What is the shell under Linux?

A Shell, commonly known as a Shell (to distinguish it from the kernel), is a “command parser.” As defined by ABS, 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 programming language. It is divided into graphical interface shell and command line shell. The Shell manages your interaction with the operating system: waits for your input, interprets it to the operating system, and processes the output of various operating systems. Different systems have different shells, such as bash, C shell, Windows Power shell, etc. On Linux systems, this is usually the Bourne Again shell (bash).

Can bash shell be used on Windows?

Bash is a shell for Linux and Unix. If you really want to try it out, you can install the Cygwin environment on MS Windows and then use it under it. Note that the Cygwin environment is different from the real Linux or Unix environment, and some commands will not run properly. The most direct experience, or use Linux to intimate, almost can do anything. If you want to use Shell in MS Windows, it is recommended to use Microsoft PowerShell, which gives you full functionality in MS Windows.

Q4: What is the difference between a scripting language and a normal programming language?

Programming language “compile – compile – link – run”, scripting language is “explain – execute” rather than compile, scripting language program code even the final executable file, through the corresponding interpreter to explain execution, so more convenient and fast. Each scripting language needs its own interpreter. For example, Perl, Python, Ruby, JavaScript and so on are all scripting languages. Shell also belongs to a special scripting language.

Q5: What is the difference between Bash and Windows CMD?

The shell is a command interpreter (also an application program) that sits between the kernel and the user, passing the user’s instructions to the kernel and displaying the results back to the user. At the same time, the shell can also serve as a powerful programming language. On Linux/Unix platforms, the shell is mostly Bash shell by default. CMD is short for Command shell. Microsoft defines it as: The command shell is a separate software program that provides direct communication between 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 screen by using Individual characters similar to the MS-DOS Command interpreter Command.com. CommandShell is a stand-alone application that provides the user with the ability to communicate directly to the operating system. It provides a non-graphical runtime environment for character-based applications and tools that execute commands and echo MS-DOS style characters on the screen. So, it can be approximatively thought of as Linux shell=bash and Windows = CMD, both of which are command-line interpreters, and both of which are interfaces between the user and the operating system. But bash is much more powerful than CMD, and Windows also has a powerful shell called Windows Power Shell.

Blog.csdn.net/zhrrr111/ar…