📜  程序和命令之间的区别

📅  最后修改于: 2021-08-29 11:07:10             🧑  作者: 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.