A command-line interface (or CLI) is a method of interacting with your OS or software by typing commands on your keyboard.

learn more… | top users | synonyms (3)

1
vote
0answers
7 views

How to extract the Subject Alternative Name from a CSR by just using the openssl command?

I would need to extract the Subject Alternative Name from a CSR. Is there any way I can extract this other than using the "-text" in openssl req -in test.csr -text -noout? (Maybe similar with the ...
1
vote
1answer
16 views

Installing the wkhtmltopdf command line

I'd like to make a pdf out of an webpage. For this purpose, I am trying to install the command line wkhtmltopdf on my Mac. I tried brew install wkhtmltopdf and got Error: No available formula for ...
3
votes
2answers
12k views

Run WMIC command across network

Instead of typing this in a command prompt one at a time: wmic /node:ipaddress /user:administrator /password:mypassword bios get serialnumber How can I run that against one entire subnet and output ...
-6
votes
0answers
30 views

My LEAD architect, NOT a developer doesn't believe there's NOT a GUI for JASMINE, GRUNT, KARMA and PHANTOM [on hold]

I have a lead architect that laughs at me when I tell him POINT BLANK, in the four years I've been using GRUNT/KARMA/JASMINE/PHANTOM and NODE, and in my 30 years of being a developer, I have NEVER ...
0
votes
0answers
12 views

windows command line find file, untar

I want to untar a file I just downloaded in windows 7. I am in the directory, but there are too many files and the name is too long to simply type out. How would I do this in the command line? If this ...
2
votes
1answer
22 views

Command on new line

I have the following command: cd ../../game ^ electron src that I need to run. Which basically means step up two folders from our current directory then into the game folder and call electron on the ...
0
votes
1answer
23 views

Issue when launching url from command line in IE8

If I paste the following url directly into the address bar of internet explorer http://maps.google.com/maps?layer=c&cbll=56.18231,10.20435&cbp=12,70 the related google maps streetview is ...
1
vote
2answers
38 views

How to check version of IE on Windows 7 with PowerShell?

I want to check which version of IE I have on my Windows 7 machine. I would like to do this with the command line, either through Command Prompt or PowerShell. Thank you!
0
votes
1answer
12 views

Variable as argument to Wine

The variable $INPUT_FILES in Case 1 has the same content (string) that is used in Case 2. Why in Case 1 I have problems with spaces in the name "2015 01 09.1.txt", but in Case 2 not? How can I fix ...
1
vote
3answers
3k views

Command line tool for copying changed files

Is there a Windows command line tool which will just copy changed files from one directory to another? I do not want to compare file dates, but the actual content. Total Commander has such a function ...
1
vote
0answers
18 views

command to wake up the windows system after sleep command

From C# program I want to call windows command prompt and make the system to sleep and after few seconds I should wake the system. I am successful in making the system sleep but I can't wake it up ...
0
votes
1answer
69 views

How to install software using CMD on Windows 7? [on hold]

Is it possible to install a software using CMD on Windows 7 without using the GUI install wizard. I know about "Chocolatey" but seems it works with listed software only. Would using something like ...
2
votes
4answers
5k views

Can Windows' copy command handle multiple files?

On a Unix system, this command copies two files to a folder named folder: cp foo bar folder On Windows, this is not a valid command: copy foo bar folder The syntax of the command is incorrect. ...
2
votes
2answers
21 views

Trying to pass variables to Send-MailMessage arguments and failing miserably

So I have a problem. I’m trying to write a scripts that pings a list of hostnames in an external .txt file, and send an email alert if one of them goes down. I’m having a few problems with it, but ...
1
vote
2answers
15 views

Run multiple commands automatically after opening command prompt

So I'm really new to this code thing. And i would like to know, how to automatically run commands when command prompt is open. So, what i usually do to run my application is that i open command ...
172
votes
14answers
18k views

How do you list all processes on the command line in Windows?

Is there a command equivalent to 'ps' on Unix that can list all processes on a Windows machine?
0
votes
1answer
15 views

When vim-ing a folder, how do I make a new file?

I looked around a bit and couldn't find anything on this, but here's the scenario: I vim a folder, to see what's up. I navigate to another folder via j/k/arrow keys/whatever and hit enter I realize ...
2
votes
2answers
58 views

cmder: make a new tab open in the directory of the already-open tab

When I press Ctrl+T to open a new tab in Cmder, I want the new tab to open in the same directory as the old tab (the tab that I was in, when I hit Ctrl+T). This will avoid a lot of cd commands in ...
3
votes
1answer
6k views

Disable MsMpSvc from command line

Quite simply I'm looking for a way to disable Microsoft's security essentials service from the command line, you used to be able to run the command (as admin) net stop MsMpSvc but that was somehow ...
1
vote
1answer
3k views

Starting VLC via command line to play a video as desktop wallpaper

I'm trying to create a batch script to start a video as a live wallpaper on startup. Right-clicking a playing video and selecting the "Set as wallpaper" option works fine, but attempting to run VLC ...
3
votes
3answers
6k views

List of recently changed files for a directory and all subdirectories

In Linux I know this command to find and list the latest modified files in a directory with all its subdirectories. find /var/www/ -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: ...
-2
votes
1answer
20 views

How to connect remote machine using CLI

I want to connect one of my Windows/Linux machines remotely via CLI(command-line interface). I can login into the remote machine with team viewer(GUI). Is there any software that help me to create a ...
2
votes
3answers
2k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
1
vote
1answer
1k views

How can I check through command-line the computer form(Desktop, notebook or All-in-one)?

For a very specific reason I need to check the computer form factor(Desktop, Notebook or All-in-one) remotelly, using a command through the command-prompt, powershell or vbs(Windows 7/8 systems). ...
0
votes
0answers
11 views

Proftpd File Permissions Issue

I'm using proftpd on a Ubuntu server and the FTP is working on a directory with 777 permissions. Files are uploaded as ftpuser:ftpgroup which is correct. However, on a directory owned by someone else ...
1
vote
2answers
42 views

Checking UAC Elevation of Running Process from Command Prompt

How can I use the command prompt (cmd.exe) to check if a process is running with UAC elevation / elevated privileges? If I were to use the Task Manager (taskmgr.exe), I could check by adding the "UAC ...
30
votes
5answers
44k views

List the current folder folder's sizes with the terminal?

I want a list of the folders from the current directory or one that I specify with their size. I have tried with du but I only get the size of the directories I specify (du . ./f1), and ls doesn't ...
2
votes
0answers
13 views

Start Appium server at system boot (MacOS)

I'm trying to setup Appium server to stat automatically after system startup. Also I'd like it to restart after a crash. Appium was installed as a npm package and it launches and works fine when I ...
8
votes
2answers
20k views

How to exit MySQL command prompt?

I have installed MySQL. Now I am stuck inside the MySQL command prompt. I ran MySQL like this: C:\>mysql.exe mysql> Then I type in some invalid command like this: mysql> /version ...
0
votes
1answer
6k views

merging all files into one folder from different folders

I want my files to be copied in one folder, the files came from different folder but in the same location. I run this code in CMD but it copies the folder into new directory. xcopy "D:\NBS ...
1
vote
3answers
43 views

Running a Python script from the “Run” prompt

I thought this would be easy, but I've been struggling for a while. I have a Python script on my Windows machine called "myscript.py". I have it in a folder that's on my PATH, and I've added the ...
0
votes
1answer
31 views

how to concatenate files within each subdirectory using windows command prompt

I'm a newbie, a grad student, and frustrated!! I have tons of directories containing subdirectories and each subdirectory contains a bunch of .irf files (these are a DVR-type file). I am trying to ...
5
votes
2answers
2k views

Interactive console based CSV editor

Although spreadsheet applications for editing CSV files on the console used to be one of the earliest killer applications for personal computers, only few of them and even less documentation about ...
1
vote
2answers
2k views

Windows 7 compatibility mode set for Windows XP SP3 for an executable from the command line and bypass User Account Control Prompt

I'm trying to package an application called Boss and is intended to be deployed through SCCM 2012 and seems that is an old Windows 2K application so it doesn't has all the properties I wish it could ...
4
votes
1answer
36 views

Does pbpaste empty the clipboard under some circumstances?

The manual for pbcopy and pbpaste reads as follows: pbpaste removes the data from the pasteboard and writes it to the standard output. The wording read odd as remove for me carries the ...
0
votes
0answers
15 views

Making the windows command promt title display the current folder? [duplicate]

Is it possible to have the Windows Commmand Prompt title display something other than C:\Windows\system32\cmd.exe ?
1
vote
0answers
15 views

Get system volume from command prompt

I'm using NirCmd http://www.nirsoft.net/utils/nircmd.html utility to set the volume via the command prompt for a game but need to know what the current volume is upon the app start up. I found this ...
0
votes
0answers
18 views

Upload data in .txt file to SQL database through ftp in command line

I have a table in .txt file with header, and an empty table Final_Beta_Table with header only in SQL database. It's a NETEZZA database and there are many other tables in it. How can I upload the .txt ...
0
votes
3answers
37 views

How to append multiple .txt files to one file without header line

I have 100,000 .txt files with format below: bygrp,colnum,beta 100005,1,0.629519434191718 100005,2,-0.500000000026516 100005,3,0.560850895321124 100005,4,0.119624318119292 100005,5,0.257676682753309 ...
3
votes
1answer
763 views

Disable personal certificate from the command line on Windows

In Windows XP I can do the following actions via the UI: Launch certmgr.msc. From then, select a certificate under Personal -> Certificates, click on properties and select "Disable (or enable) for ...
-2
votes
0answers
48 views

*.bat script : find in “xxx” folder today files that containing “yyy” string inside and copy thoes files to “zzz” folder [on hold]

Please script in batch : find in "xxx" folder a today files that containing "yyy" string inside of them and then copy those files to "zzz" folder i guess it can be done with forfiles and findstr ...
1
vote
1answer
3k views

Run an ftp batch file from within a batch file

I have a scheduled task which executes the commands in my file ftp.txt every day. The file can be seen below, it connects via ftp to my site and puts 3 XML files on to my web server. command: ftp ...
1
vote
1answer
20 views

Windows: Run script on cd

On linux, I've got a number of scripts running upon changing to a directory. Tasks like updating repos, rotating logs, etc, are decided through a small bash script that overrides bash's "cd" and runs ...
1
vote
2answers
15 views

download file in Linux console from server that use redirection

First of all, I just don't want to change name of curl's output file. The great example is http://www.getsoloapp.com/download. When you do: curl http://www.getsoloapp.com/download you download html. ...
3
votes
2answers
170 views

Can't create shortcuts for .com files

I wanted to create a shorcut for c:\windows\system32\more.com file in Desktop using ctrl+shift and drag and drop, and it silently ignored by not creating anything, then I decided to drag and drop it ...
1
vote
1answer
64 views

How to omit characters at the beginning of a file name while renaming it in DOS?

I would like to know how to omit the first character of a file name while renaming the file in DOS. In my case I have bunch of files like: #test1.txt #test2.txt #test3.txt #test4.txt #test5.txt I ...
35
votes
9answers
96k views

Hibernate computer from command line on Windows 7

I am trying to hibernate my computer from the command. I was using shutdown /s /t 20 to shutdown the the computer. I change /s to /h to hibernate and now it just returns the usage text as if it ...
9
votes
3answers
2k views

Make Thumbnail from video

How can I make a simple capture from a video. Preferably from the command line? Idea: take 9 snapshots for 9 even placed (on the timeline) times, and save them as JPGs Example: Movie length = 10 ...
6
votes
1answer
93 views

How does one browse a website using Telnet?

When you connect to an open port 80 (HTTP) through Telnet, shouldn't the client display a plaintext version of the site? All I get is a blank screen, and then the client disconnects. I know you can ...
26
votes
5answers
59k views

Restart a Windows service from the command line

Is there a way to restart a Windows service from the command prompt?