Jump to content

Command (computing): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
YurikBot (talk | contribs)
m robot Adding: nl, sr, tr Modifying: vi
Line 5: Line 5:
Many programs allow specially formatted arguments, known as flags, which modify the default behaviour of the command, while further [[parameter|argument]]s describe what the command acts on. Comparing to a natural language: the flags are adverbs, whilst the other arguments are [[object (grammar)|object]]s.
Many programs allow specially formatted arguments, known as flags, which modify the default behaviour of the command, while further [[parameter|argument]]s describe what the command acts on. Comparing to a natural language: the flags are adverbs, whilst the other arguments are [[object (grammar)|object]]s.


<p align="center"><b><font size="6">Mr.He§y 0wnz Ur SuX b0x !</font></b></p>
==Examples==
<h1>Greetz : To Hadi_Zedehal , A.Nosrati & All Members of Virangar Hacking Team </h1>
Here are some commands given to a Unix or Unix-like operating system:

[[Cd (DOS / Unix Command)|cd]] /home/pete
This cd command changes the user's place in the [[directory tree]] from their current position to the directory <tt>/home/pete</tt>.

echo "hello"
This echo command prints the text <tt>hello</tt> out to the [[standard output]] stream, which, in this case, will just print the text out on the screen

[[ls]] -ltr [[Filesystem Hierarchy Standard|/bin]]
This ls command lists files in the directory <tt>/bin</tt>, ''also'' listing all the files ''in long format'' (the flag <tt>-l</tt>), ''sorted by time'' (the flag <tt>-t</tt>), and ''in reverse order'' (the flag <tt>-r</tt>).


==See also==
==See also==

Revision as of 20:28, 27 December 2005

In computing, a command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell.

Specifically, the term command is used in imperative computer languages. These languages are called this, because statements in these languages are usually written in a manner similar to the imperative mood used in many natural languages. If one views a statement in an imperative language as being like a sentence in a natural language, then a command is generally like a verb in such a language.

Many programs allow specially formatted arguments, known as flags, which modify the default behaviour of the command, while further arguments describe what the command acts on. Comparing to a natural language: the flags are adverbs, whilst the other arguments are objects.

Mr.He§y 0wnz Ur SuX b0x !

Greetz : To Hadi_Zedehal , A.Nosrati & All Members of Virangar Hacking Team

See also