You are on page 1of 2

Question : What is a Command ? Difference type of command with Example?

Answer:

Command: A command is an instruction given by a user telling a computer to do something, such a

run a single program or a group of linked programs .Commands are generally issued by typing them

in at the computer line and then pressing the ENTER key, which passes them to the shell. Example:

$ data (ENTER)

Wed jun 9 08:49:13 PST 1997

There are three types of Command :

1) Simple Commands.

2) Complex Commands.

3) Compound commands

1) Simple Commands: The who and data commands are examples of simple commands.A simple
command is one that we can execute by just name at the prompt:

2) Complex Commands: We can use the who command to gather information about ourselves

when we execute it as follows:


3) Compound commands: One of the most powerful features of UNIX is the capability to combine simple
and complex commands together to obtain compound commands .A compound command consists of a
list of simple and complex commands separated by the semicolon character (;).An example of a
compound command is-

You might also like