Questions tagged [command]

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. Use [command-pattern] for the design pattern.

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.

More links:

10688 questions
6018
votes
66 answers

How do I execute a program or call a system command?

How do I call an external command within Python as if I had typed it in a shell or command prompt?
freshWoWer
  • 61,969
  • 10
  • 36
  • 35
4361
votes
35 answers

How do I check if a directory exists or not in a Bash shell script?

What command checks if a directory exists or not within a Bash shell script?
Grundlefleck
  • 124,925
  • 25
  • 94
  • 111
2146
votes
24 answers

PostgreSQL "DESCRIBE TABLE"

How do you perform the equivalent of Oracle's DESCRIBE TABLE in PostgreSQL with psql command?
Mr. Muskrat
  • 22,772
  • 3
  • 20
  • 21
1410
votes
5 answers

What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in Vim?

What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in Vim?
Chetan
  • 46,743
  • 31
  • 106
  • 145
763
votes
16 answers

Run Command Prompt Commands

Is there any way to run command prompt commands from within a C# application? If so how would I do the following: copy /b Image1.jpg + Archive.rar Image2.jpg This basically embeds an RAR file within JPG image. I was just wondering if there was a…
user
  • 16,429
  • 28
  • 80
  • 97
712
votes
18 answers

How do I ignore files in Subversion?

How do I ignore files in Subversion? Also, how do I find files which are not under version control?
andyuk
  • 38,118
  • 16
  • 52
  • 52
702
votes
32 answers

How to check Django version

I have to use Python and Django for our application. So, I have two versions of Python, 2.6 and 2.7. Now I have installed Django. I could run the sample application for testing Django succesfuly. But how do I make sure whether Django uses the 2.6 or…
maheshgupta024
  • 7,657
  • 3
  • 20
  • 18
642
votes
20 answers

How to use 'cp' command to exclude a specific directory?

I want to copy all files in a directory except some files in a specific sub-directory. I have noticed that cp command didn't have the --exclude option. So, how can I achieve this?
David Liu
  • 16,374
  • 12
  • 37
  • 38
514
votes
17 answers

Equivalent of *Nix 'which' command in PowerShell?

How do I ask PowerShell where something is? For instance, "which notepad" and it returns the directory where the notepad.exe is run from according to the current paths.
DevelopingChris
  • 39,797
  • 30
  • 87
  • 118
453
votes
2 answers

How to create a link to a directory on linux

How to create a link to an existing file or directory using a GNU Linux shell command?
read Read
  • 5,765
  • 4
  • 29
  • 30
404
votes
7 answers

How can I recall the argument of the previous bash command?

Is there a way in Bash to recall the argument of the previous command? I usually do vi file.c followed by gcc file.c. Is there a way in Bash to recall the argument of the previous command?
The Coder
  • 4,043
  • 3
  • 16
  • 4
393
votes
4 answers

PHP shell_exec() vs exec()

I'm struggling to understand the difference between shell_exec() and exec()... I've always used exec() to execute server side commands, when would I use shell_exec()? Is shell_exec() just a shorthand for exec()? It seems to be the same thing with…
Ben
  • 60,438
  • 111
  • 314
  • 488
384
votes
5 answers

What is the difference between git clone and checkout?

What is the difference between git clone and git checkout?
Praveen Sripati
  • 32,799
  • 16
  • 80
  • 117
383
votes
23 answers

Waiting for another flutter command to release the startup lock

When I run my flutter application it show Waiting for another flutter command to release the startup lock this messages and not proceed further.
Viren V Varasadiya
  • 25,492
  • 9
  • 45
  • 61
359
votes
19 answers

Stop node.js program from command line

I have a simple TCP server that listens on a port. var net = require("net"); var server = net.createServer(function(socket) { socket.end("Hello!\n"); }); server.listen(7777); I start it with node server.js and then close it with Ctrl + Z on…
Eleeist
  • 6,891
  • 10
  • 50
  • 77
1
2 3
99 100