Questions tagged [command-line]

A command line is a string given to a command interpreter that tells it actions to take, such as running programs or copying files. The interpreter processes command lines with escapes and substitutions.

A command-line interface () is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks. This text-only interface contrasts with the use of a mouse pointer with a graphical user interface (GUI) to click on options, or menus on a text user interface (TUI) to select options.

This method of instructing a computer to perform a given task is referred to as entering a command. The system waits for the user to conclude the submitting of the text command by pressing the Enter key (a descendant of the carriage return key of a typewriter keyboard). A command-line interpreter then receives, parses, and executes the requested user command. The command-line interpreter may be run in a text terminal or in a terminal emulator window as a remote shell client such as .

Upon completion, the command usually returns output to the user in the form of text lines on the CLI.

Related tag:

See also: Wikipedia Command-line_interface.

23435 questions
298
votes
10 answers

How can I read command line parameters from an R script?

I've got a R script for which I'd like to be able to supply several command-line parameters (rather than hardcode parameter values in the code itself). The script runs on Windows. I can't find info on how to read parameters supplied on the…
monch1962
  • 5,151
  • 5
  • 31
  • 38
298
votes
8 answers

What encoding/code page is cmd.exe using?

When I open cmd.exe on Windows, what encoding is it using? How can I check which encoding it is currently using? Does it depend on my regional setting or are there any environment variables to check? What happens when you type a file with a certain…
Dan Gøran Lunde
  • 5,148
  • 3
  • 26
  • 24
292
votes
7 answers

How can I disable the Maven Javadoc plugin from the command line?

In pom.xml I have declaration like this org.apache.maven.plugins maven-javadoc-plugin attach-javadocs
IAdapter
  • 62,595
  • 73
  • 179
  • 242
291
votes
10 answers

How to install JQ on Mac on the command line?

I need to know the most efficient way of installing JQ on Mac (El Capitan). The code is downloaded to my Mac but I would like to know how I can install and operate it via the command line.
Ross Brannigan
  • 3,051
  • 2
  • 10
  • 3
290
votes
3 answers

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 which I use Runtime.getRuntime().exec("cmd /C java helloworld"); There arises my doubt.
user62835
  • 3,219
  • 3
  • 19
  • 8
286
votes
7 answers

How do I include a pipe | in my linux find -exec command?

This isn't working. Can this be done in find? Or do I need to xargs? find -name 'file_*' -follow -type f -exec zcat {} \| agrep -dEOE 'grep' \;
someguy
  • 3,153
  • 3
  • 20
  • 10
286
votes
11 answers

How can I pass variable to ansible playbook in the command line?

How can one pass variable to ansible playbook in the command line? The following command didn't work: $ ansible-playbook -i '10.0.0.1,' yada-yada.yml --tags 'loaddata' django_fixtures="tile_colors" Where django_fixtures is my variable.
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
283
votes
5 answers

How to find out what group a given user has?

In Unix/Linux, how do you find out what group a given user is in via command line?
Alex Argo
  • 8,920
  • 12
  • 43
  • 46
281
votes
3 answers

Command Line Tool - Error - xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

I am getting this error while building the SwiftJSON framework to the Some Xcode project through Carthage Dependency Manager. Sivaramaiahs-Mac-mini:GZipDemoApp vsoftMacmini5$ carthage update --platform iOS *** Fetching GzipSwift *** Fetching…
Sivaram Yadav
  • 3,141
  • 3
  • 13
  • 15
279
votes
8 answers

Using multiple delimiters in awk

I have a file which contain following lines: /logs/tc0001/tomcat/tomcat7.1/conf/catalina.properties:app.env.server.name = demo.example.com /logs/tc0001/tomcat/tomcat7.2/conf/catalina.properties:app.env.server.name =…
Satish
  • 16,544
  • 29
  • 93
  • 149
278
votes
20 answers

Uninstall Node.JS using Linux command line?

How do you uninstall node.js using the cmd line in linux?
abe
  • 4,046
  • 6
  • 29
  • 33
276
votes
7 answers

How to write a multiline command?

How do we extend a command to the next line? Basically what's the Windows alternative for Linux's: ls -l \ /usr/ Here we use backslashes to extend the command onto the next lines. What's the equivalent for Windows?
Jigar
  • 8,762
  • 6
  • 25
  • 26
276
votes
33 answers

How to get Maven project version to the bash command line

Previous I issued a question on how to change Maven project vesion from command line which lead me to a new issue. Previously I was able to get the version number since the version was stored as a property that was easy to grep and parse from the…
mkko
  • 4,262
  • 3
  • 25
  • 29
274
votes
12 answers

How to run mvim (MacVim) from Terminal?

I have MacVim installed and I am trying to set it up as the editor for Git (version control), but I can't run 'mvim' from the command line as it isn't recognised. How do I setup mvim so I can run it from Terminal?
Fred
  • 4,729
  • 5
  • 26
  • 21
274
votes
6 answers

Command to list all files in a folder as well as sub-folders in windows

I tried searching for a command that could list all the file in a directory as well as subfolders using a command prompt command. I have read the help for "dir" command but coudn't find what I was looking for. Please help me what command could get…
user1760178
  • 6,277
  • 5
  • 27
  • 57