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
24
votes
5 answers

CMD command to check connected USB devices

I would like to obtain by a command prompt a list of all USB devices connected to my computer (O.S. Windows 10). I've googled to find such a command, but all results seems useless to me or worse workless. Does anybody know how can I do that? Thank…
Luca
  • 243
  • 1
  • 2
  • 5
23
votes
3 answers

How to enable python interactive mode in cygwin?

I like python in interactive mode when on linux. However on cygwin, the interactive mode doesn't start. I don't see the ">>>" prompt and whatever I enter doesn't result in anything. Solved: I figured out the problem from the answers below. I was…
Mudit Jain
  • 4,163
  • 1
  • 22
  • 18
23
votes
3 answers

How to decompile a jar into .java files from command prompt

How can I decompile a JAR (.class binary files) into .java source files from command prompt?
Karuna
  • 719
  • 1
  • 11
  • 22
21
votes
6 answers

List files with path and file size only in Command Line

Windows Command Line (or maybe PowerShell). How can I list all files, recursively, with full path and filesize, but without anything else and export to a .txt file. Much preferably a code that works for whichever current directory I am in with the…
user3026965
  • 673
  • 4
  • 8
  • 22
20
votes
3 answers

how concatenate two variables in batch script?

I want to do something like this in batch script. Please let me know if this is the proper or possible way to do it or any other way? set var1=A set var2=B set AB=hi set newvar=%var1%%var2% echo %newvar% This should produce the value "hi".
Kantesh
  • 875
  • 3
  • 8
  • 19
20
votes
2 answers

sh.exe.stackdump when use git stash

I'm new with Git and have a problem with "stash" commands. When i write commands like "git stash", "git stash list", "git stash apply", "git drop", ... , i always get a file named "sh.exe.stackdump" with this: Exception: STATUS_STACK_OVERFLOW at…
twis
  • 313
  • 2
  • 4
  • 8
20
votes
2 answers

What is the reason for the CD /D switch in Windows cmd?

First I would like to note that I do understand the purpose of the /D switch for the Windows Command Prompt cd command. I'm just curious why it works this way and not otherwise. As we know from the help: Use the /D switch to change current drive in…
kefir500
  • 4,184
  • 6
  • 42
  • 48
20
votes
2 answers

zsh not re-computing my shell prompt

This might be a bit fringe, but I recently moved to zsh and am having a problem customizing my shell prompt. Part of my .zshrc looks like this: # keeping this simple right now by just printing the date, but imagine this function would look for…
D.C.
  • 15,340
  • 19
  • 71
  • 102
20
votes
8 answers

How do I tell MSTEST to run all test projects in a Solution?

I need to know how to tell MSTEST to run all test projects in a solution file. This needs to be done from the command line. Right now I have to pass it a specific project file, I'm trying to get it to run from a SOLUTION file. I'm hoping this is…
Jeremiah
  • 5,386
  • 9
  • 38
  • 45
19
votes
3 answers

How to get Fabric to automatically (instead of user-interactively) interact with shell commands? Combine with pexpect?

Seeking means to get Fabric to automatically (instead of user-interactively) interact with shell commands (and not just requests for passwords, but also requested user input when no "stdin/interactive override" like apt-get install -y is…
Johnny Utahh
  • 2,389
  • 3
  • 25
  • 41
19
votes
1 answer

VS code terminal : Activate.ps1 cannot be loaded because running scripts is disabled on this system

I created a virtual environment in python, now while activating the same from my command line in vscode I am getting the error PS C:\Users\hpoddar\Desktop\WebDev\ReactComplete\DjangoReact\ArticlesApp\APIProject> ..\venv\scripts\activate …
19
votes
3 answers

Runas Error: Unable to Acquire Password

I'm trying to start visual studio 2010 from command prompt using 'RUNAS' so that I can run it as a different user. I ran the following command: runas /profile /user:myPCName/SomeUserName "C:\Program Files (x86)\Microsoft Visual Studio…
John Fischer
  • 1,115
  • 3
  • 13
  • 24
19
votes
1 answer

Adding ANSI color escape sequences to a bash prompt results in bad cursor position when recalling/editing commands

If I set my command prompt like: export PS1='\033[0;33m[\u@\h \w]\$ \033[00m' The color of the prompt will be yellow and everything after the '$' character will be the default terminal color. This is what I expect. However, If I recall a command…
Xaq
  • 558
  • 1
  • 4
  • 13
19
votes
14 answers

Getting MySQL path in command prompt

How can I get the mysql installation path up to bin folder using command prompt in windows.Is there any command to get the location of mysql installation path?
rakesh menon
  • 1,081
  • 3
  • 15
  • 30
18
votes
3 answers

C color text in terminal applications in windows

I know "textcolor();" is for C++ and i've seen methods for unix... but is there way for windows also? #include int main() { printf("\ntest - C programming text color!"); printf("\n--------------------------------"); …
Joe DF
  • 5,438
  • 6
  • 41
  • 63