Top "Command-line-interface" questions

The interface to a program that consists entirely of text, as opposed to (although not necessarily mutually exclusive to) a GUI, or Graphical User Interface.

Is there a way to follow redirects with command line cURL?

I know that in a php script: curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); will follow redirects. Is there a way …

redirect curl command-line-interface
Fatal error: Maximum execution time of 300 seconds exceeded

I keep getting this PHP error: Fatal error: Maximum execution time of 300 seconds exceeded I have tried setting my max_…

php command-line-interface
Git commit in terminal opens VIM, but can't get back to terminal

Trying to learn GitHub at the moment and doing this Git essentials tutorial over at nettuts. I'm on the lesson …

git vim terminal command-line-interface commit
How to change the project in GCP using CLI commands

How can i change the current running project to another project in GCP (Google Cloud Platform) account using cli commands …

google-cloud-platform command-line-interface gcloud
Parsing arguments to a Java command line program

What if I wanted to parse this: java MyProgram -r opt1 -S opt2 arg1 arg2 arg3 arg4 --test -A opt3 …

java command-line-interface args
How to store command results in a variable in on shellscripting?

I want to find out number of directories and files in home directory and want to store count some variable …

bash shell unix grep command-line-interface
Switch php versions on commandline ubuntu 16.04

I have installed php 5.6 and and php 7.1 on my Ubuntu 16.04 I know with Apache as my web server, I can …

php apache command-line-interface php-5.6 php-7.1
Is it possible to create a remote repo on GitHub from the CLI without opening browser?

I created a new local Git repository: ~$ mkdir projectname ~$ cd projectname ~$ git init ~$ touch file1 ~$ git add file1 ~$ git commit …

git github ssh command-line-interface github-cli
How to expand/collapse a diff sections in Vimdiff?

I've started using vimdiff today, and wanted to do some of the things that I've taken for granted on Windows …

linux vim diff command-line-interface vimdiff
Skip download if files exist in wget?

This is simplest example running wget: wget http://www.example.com/images/misc/pic.png but how to make wget …

parameters download command-line-interface wget