Top "Command-line" questions

A command line is a string given to a command interpreter that tells it actions to take, such as running programs or copying files.

How to run .sh on Windows Command Prompt?

How can I run .sh on Windows 7 Command Prompt? I always get this error when I try to run this …

windows bash command-line sh
How to read/process command line arguments?

I am originally a C programmer. I have seen numerous tricks and "hacks" to read many different arguments. What are …

python command-line command-line-arguments
Is there an equivalent of 'which' on the Windows command line?

As I sometimes have path problems, where one of my own cmd scripts is hidden (shadowed) by another program (earlier …

windows command-line path-variables
send/post xml file using curl command line

How can I send/post an xml file to a local server http://localhost:8080 using curl from the command line? …

xml command-line curl
'echo' without newline in a shell script

I have a problem with echo in my script: echo -n "Some string..." prints -n Some string... and moves to …

shell command-line sh
What does cmd /C mean?

I can understand cmd but not cmd /c. I was trying to invoke a java program from the current for …

command-line cmd
How to check if a process is running via a batch script

How can I check if an application is running from a batch (well cmd) file? I need to not launch …

windows command-line batch-file
ls command: how can I get a recursive full-path listing, one line per file?

How can I get ls to spit out a flat list of recursive one-per-line paths? For example, I just want …

bash command-line find ls
How to remove all MySQL tables from the command-line without DROP database permissions?

How do I drop all tables in Windows MySQL, using command prompt? The reason I want to do this is …

mysql command-line sql-drop
Run function from the command line

I have this code: def hello(): return 'Hi :)' How would I run this directly from the command line?

python function command-line