Questions tagged [command-prompt]

The command prompt is the string of text that a command-line interpreter displays to you, the user, to prompt you for input in interactive mode. For programs with textual user interfaces in general, not specifically addressing their prompts for user input, see either the CONSOLE-APPLICATION (Microsoft Windows) or TERMINAL (Unices, MacOS 10, and Linux) tags. See COMMAND-LINE or SuperUser for commands invoked by command lines at a command prompt.

This tag covers questions addressing how to control the command prompt in various command interpreters, from sh to COMMAND, and programs that issue command prompts.

Command prompt reference material

4223 questions
62
votes
5 answers

Having trouble escaping quotes and braces

I am trying to execute the following line in Command Prompt: curl -X POST -d '{ "method" : "account_info", "params" : [ { "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"} ] }' http://s1.ripple.com:51234 However, I get the following: curl: (6)…
killajoule
  • 3,612
  • 7
  • 30
  • 36
60
votes
9 answers

How do I run a program from command prompt as a different user and as an admin

I am using "runas" to open command prompt as a different user but that command prompt is not running as an admin. How can I make it run as an admin? UPDATE: I am using Windows Server 2012 UPDATE: I opened cmd for another account by running runas…
Mark
  • 883
  • 1
  • 8
  • 14
59
votes
18 answers

Starting Visual Studio from a command prompt

I have three different versions of Visual Studio installed on my machine, Visual Studio 2003, Visual Studio 2008, and VS2005. How do I start a particular version of Visual Studio using a command prompt? devenv.exe opens the latest version of Visual…
SNA
  • 7,528
  • 12
  • 44
  • 60
59
votes
6 answers

What do the three arrow (">>>") signs mean?

I haven't been able to figure out what the >>> does, even though I often see it often in source code.
Dumle29
  • 809
  • 1
  • 6
  • 13
58
votes
7 answers

nuget is not a recognized as an internal or external command

While running a batch file, I get the below error: nuget is not a recognized as an internal or external command It's not working from command prompt. Have a look at the below screenshot.
Varun Maggo
  • 1,224
  • 2
  • 13
  • 27
58
votes
8 answers

ansible ssh prompt known_hosts issue

I'm running Ansible playbook and it works fine on one machine. On a new machine when I try for the first time, I get the following error. 17:04:34 PLAY [appservers] ************************************************************* 17:04:34 17:04:34…
AKS
  • 16,482
  • 43
  • 166
  • 258
58
votes
6 answers

How to run a series of vim commands from command prompt

I have four text files A.txt, B.txt, C.txt and D.txt I have to perform a series of vim editing in all these files. Currently how I am doing is open each files and do the same vim commands one by one. Is it possible to make a script file which I can…
imbichie
  • 1,510
  • 3
  • 13
  • 23
58
votes
17 answers

How to connect from windows command prompt to mysql command line

I'm trying to connect to mysql server command line from my windows prompt I write the next line in cmd but i get an error. cd C:\MYSQL\bin\ And then i execute mysql.exe -u=root -p=admin but i getting this error ERROR 1045: <28000>: Access denied…
Washu
  • 835
  • 1
  • 9
  • 20
57
votes
5 answers

Get CPU Usage from Windows Command Prompt

How would I get total CPU Usage from Windows Command Prompt?: Expected Output: 27%
Mike
  • 2,266
  • 10
  • 29
  • 37
56
votes
4 answers

How do I use a pipe to redirect the output of one command to the input of another?

I have a program which sends text to an LED sign. prismcom.exe To use the program to send "Hello": prismcom.exe usb Hello Now, I wish to, for example use a command program called Temperature. temperature Let's say the program gives your computer's…
Austin Burk
  • 930
  • 4
  • 15
  • 33
55
votes
6 answers

batch file Copy files with certain extensions from multiple directories into one directory

I'm a newbie, so bear with me... I am trying to copy all .doc files that I have scattered throughout several subdirectories of one main directory into another directory using a batch file. I have managed to get a filelist.txt of all the files…
Brandon
53
votes
26 answers

Getting "'mongoimport' is not recognized as an internal or external command, operable program, or batch file." when trying to import data from a file

New to MongoDB. I'm following this tutorial, and I get the above error when trying to follow Step 2. I'm putting the command into a Windows Command Prompt, and I've set my directory to the location of the 'mongoimport' file (C:\MongoDB). I've also…
Patrick Miles
  • 651
  • 1
  • 5
  • 6
52
votes
4 answers

difference between command prompt and anaconda prompt

I installed anaconda into my computer using python. After I install the software, I found there is one program called anaconda prompt. What is the difference between anaconda prompt and command prompt? If I want to update the package, which one I…
Michael Li
  • 647
  • 2
  • 8
  • 20
52
votes
5 answers

adb - How to reinstall an app, without retaining the data?

adb install foo.apk When using this command, if the apk exists, I should get the error *Failure [INSTALL_FAILED_ALREADY_EXISTS]* adb install -r myapp-release.apk In this case,the existing apk will be replaced, by retaining old data according to…
SatheeshJM
  • 3,575
  • 8
  • 37
  • 60
50
votes
8 answers

open program minimized via command prompt

I have a windows 8.1 machine and I want to open a program with minimized window. For a program like notepad, I just use the following command: start /min "" "C:\Windows\notepad.exe" and then a new notepad window starts in minimized mode. The…
barbar
  • 701
  • 1
  • 5
  • 11