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.

Node.js version on the command line? (not the REPL)

I want to get the version of Node.js on the command line. I'm expecting to run a command like: …

node.js command-line
How can I use grep to find a word inside a folder?

In Windows, I would have done a search for finding a word inside a folder. Similarly, I want to know …

string command-line grep keyword-search file-search
How to find which version of TensorFlow is installed in my system?

I need to find which version of TensorFlow I have installed. I'm using Ubuntu 16.04 Long Term Support.

python ubuntu tensorflow command-line version
How to reload .bash_profile from the command line?

How can I reload .bash_profile from the command line? I can get the shell to recognize changes to .bash_…

bash shell command-line
Run cURL commands from Windows console

Is there a way to install cURL in Windows in order to run cURL commands from the command prompt?

windows command-line curl
Run a PostgreSQL .sql file using command line arguments

I have some .sql files with thousands of INSERT statements in them and need to run these inserts on my …

postgresql command-line psql
Stop and Start a service via batch or cmd file?

How can I script a bat or cmd to stop and start a service reliably with error checking (or let …

windows command-line batch-file cmd
How do I get the application exit code from a Windows command line?

I am running a program and want to see what its return code is (since it returns different codes based …

windows command-line process cmd exit-code
How to run SQL script in MySQL?

I want to execute a text file containing SQL queries, in MySQL. I tried to run source /Desktop/test.sql …

mysql command-line
Run R script from command line

I have a file, called a.r, it has a chmod of 755, sayHello <- function(){ print('hello') } sayHello() How …

r command-line