📜  程序和命令的区别

📅  最后修改于: 2021-09-13 02:41:37             🧑  作者: Mango

1. 程序:
程序,顾名思义,就是由程序员用编程语言开发的一组简单的指令,由编译后的代码组成,直接从计算机操作系统运行。

2. 命令:
命令,顾名思义,是用户给计算机执行特定任务的指令,由用户通过命令行转发给操作系统,由应用程序和用户界面发起。

程序和命令的区别:

Program Command
Programs are collection of instructions understandable by CPU. Command are orders to computer program to perform particular task.
Programs are instructions created by programmer or software developer. Commands are instruction given by user to computer.
It is used to indicate that which operating CPU should execute on set of data. It is used to tell application or system to do something or perform task.
Types of programs include word processors, game programs, graphic programs, data base systems, etc. Types of command includes input program commands, utility commands, internal command, external command, etc.
These are files stored in one of bin directories like /bin, /usr/bin, /usr/local/bin. It comes in different forms i.e. special words that program understand, function keys, buttons, etc.  
Programs are handled by programmer who write compute programs. Commands are handled by part of operating system i.e. command interpreter.
Translators transform entire program form one language to another, interpreters execute program sequentially at each step, debuggers execute program allowing programmer to check operation of program. These are issued by typing them in command line and then pressing enter.
Computer without programs is just considered as dump box because these programs make computer active. Computer without command is useless because there users give command to computer to specific task and if there will be no user then computer is just a dump box.