tagged [command]

Changing default startup directory for command prompt in Windows 7

Changing default startup directory for command prompt in Windows 7 How do I change default startup directory for command prompt in Windows 7? I usually do the following to start command prompt from C:...

28 Mar at 20:38

How to open a URL in chrome incognito mode

How to open a URL in chrome incognito mode I set Chrome as default brower. To open a URL in Chrome, I wrote: Is any way to open that URL in incognito mode by c# (nomarly press Ctrl + Shift + N)?

7 May at 02:19

How to check if SMTP is working from commandline (Linux)

How to check if SMTP is working from commandline (Linux) I have a SMTP-server, for the purpose of this question lets call it: `smtp.mydomain.example`. How do I check if the SMTP-server is in working? ...

22 Jun at 19:9

How to run TestNG from command line

How to run TestNG from command line How exactly do I run a .java TestNG project from a command line? I have read through the TestNG documentation, and tried the following to no avail: ... with the fol...

How to connect to MySQL from the command line

How to connect to MySQL from the command line How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're alread...

Get Folder Size from Windows Command Line

Get Folder Size from Windows Command Line Is it possible in Windows to get a folder's size from the command line without using any 3rd party tool? I want the same result as you would get when right cl...

21 Dec at 20:59

Convert line endings

Convert line endings I have been using `d2u` to convert line endings. After installing Puppy Linux I noticed that it does not come with `d2u`, but `dos2unix`. Then I noticed that Ubuntu is missing bot...

22 May at 20:59

How can I process command line arguments in Python?

How can I process command line arguments in Python? What would be an easy expression to process command line arguments if I'm expecting anything like 001 or 999 (let's limit expectations to 001...999 ...

How To: Execute command line in C#, get STD OUT results

How To: Execute command line in C#, get STD OUT results How do I execute a command-line program from C# and get back the STD OUT results? Specifically, I want to execute DIFF on two files that are pro...

17 Apr at 08:34

search text file using c# and display the line number and the complete line that contains the search keyword

search text file using c# and display the line number and the complete line that contains the search keyword I require help to search a text file (log file) using c# and display the line number and th...

What is a unix command for deleting the first N characters of a line?

What is a unix command for deleting the first N characters of a line? For example, I might want to: I was thinking that `tr` might have the ability to do this but I'm not sure.

18 Aug at 07:21

Arguments to main in C

Arguments to main in C I don't know what to do! I have a great understanding of C basics. Structures, file IO, strings, etc. Everything but CLA. For some reason I cant grasp the concept. Any suggestio...

diff to output only the file names

diff to output only the file names I'm looking to run a Linux command that will recursively compare two directories and output the file names of what is different. This includes anything that is prese...

10 Aug at 11:16

C# application both GUI and commandline

C# application both GUI and commandline I currently have an application with a GUI. Would it be possible to use this same application from the commandline (without GUI and with using parameters). Or d...

run a python script in terminal without the python command

run a python script in terminal without the python command I have a python script let's name it script1.py. I can run it in the terminal this way: but I want to run like a command-line program: how ca...

23 Mar at 14:28

How to get Command Line info for a process in PowerShell or C#

How to get Command Line info for a process in PowerShell or C# e.g: if I run `notepad.exe c:\autoexec.bat`, How can I get `c:\autoexec.bat` in `Get-Process notepad` in PowerShell? Or how can I get `c:...

30 Jan at 12:40

How to install JQ on Mac on the command line?

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 an...

How can I get a list of user accounts using the command line in MySQL?

How can I get a list of user accounts using the command line in MySQL? I'm using the MySQL command-line utility and can navigate through a database. Now I need to see a list of user accounts. How can ...

5 Aug at 20:10

Passing command line arguments in Visual Studio 2010?

Passing command line arguments in Visual Studio 2010? I am working on a C project and can not figure out how to pass command line arguments to my main function in Visual Studio 2010 Express Edition. I...

Edit text in C# console application?

Edit text in C# console application? Is there a way to edit text in a C# console application? In other words, is it possible to place pre-defined text on the command line so that the user can modify t...

How to set CommandTimeout for DbContext?

How to set CommandTimeout for DbContext? I am looking a way to set CommandTimeout for DbContext. After searching I found the way by casting DbContext into ObjectContext and setting value for CommandTi...

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

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: but that doesn't work. Does anybody know what the com...

28 Feb at 11:57

Shell Script: How to write a string to file and to stdout on console?

Shell Script: How to write a string to file and to stdout on console? How to write a string to file and to `stdout` on console? If I do I view only `hello` in `logfile.txt` but how can I write `hello`...

28 Mar at 13:24

Xcode 6.1 - How to uninstall command line tools?

Xcode 6.1 - How to uninstall command line tools? I installed Xcode command line tool by issuing `xcode-select --install`; now I want to uninstall it (without uninstalling Xcode). I've tried but then I...

3 Jan at 16:27

How to run "brew" command in windows..?

How to run "brew" command in windows..? It shows "" in windows command prompt. [](https://i.stack.imgur.com/suFT2.png) I am trying to install [codeigniter-reactjs-example](https://github.com/makasimen...