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)

0
votes
1answer
15 views

Axel-command-line-downloader just show progress?

Is there any way to hide all output from axel command but DO NOT HIDE progress bar. I want to get output like; [ 5%] [0 1 2 3 ] [ 567,5KB/s] [15:59] This ...
2
votes
0answers
12 views

DiskPart status list

I'm writing a simple script that checks the output from diskpart for certain keywords. I am running echo list volume|diskpart and then checking the output for failed or whatever bad status is listed. ...
1
vote
1answer
27 views

Changing default terminal of Codeblocks 13.12 in Windows

I seem to be at a dead end here. I cannot change the terminal for Codeblocks on Windows, although it is a cakewalk in Linux. The option is greyed out. Running as admin doesn't work also. The box ...
0
votes
1answer
15 views

Operating on wildcard input files and saving output as <input> + suffix

I want to batch process my a list of wildcard input files and then output then to the input filename with a suffix appended. I'm hoping to understand this general case. In particular, I'm running ...
0
votes
0answers
29 views

Batch file to rename folders/subfodlers with random names (with option to restore the names from a txt file)

I need a batch file to rename folders/subfodlers with random names, with an option to restore the names from a txt file. Files to be ignored entirely. I found this batch file online, it does this for ...
7
votes
1answer
107 views

What is the Windows equivalent of “wc -l”?

What is the Windows equivalent of the Linux/Unix command wc -l? Basically, how do you count the number of lines output from a command on the Windows command line?
0
votes
0answers
46 views

How to convert HTML into endless one-page PDF via wkhtmltopdf?

Currently when converting the PDF from given URL, like: wkhtmltopdf http://superuser.com/ superuser.pdf where it consist multiple A4 pages (sometimes images are cut in the middle of the page). How ...
0
votes
0answers
6 views

zsh: Autocomplete filenames if no other completion available

Many commands expect a filename as one of their arguments. When hitting tab in bash it autocompletes the filenames of the current directory by default. This is not the case in zsh (oh-my-zsh). How can ...
0
votes
1answer
42 views

bash “wait” alternative for Windows batch script

In bash there is a option to wait for all the background process started by current shell using wait command. e.g. #!/bin/bash { sleep 5; echo "waking up after 5 seconds"; } & { sleep 1; echo ...
1
vote
1answer
37 views

Grouping files by parts of filename and copy these

I'm trying to find a way to group files together for easy copying. The requirement is that I have filenames like: aa0048.pdf and fg345_aa0048_somethingsomething.xml. There are 25000 files in the ...
0
votes
2answers
30 views

Bash: What command can I use to redirect the entire contents of my current Terminal window to a text file?

Lets say, I have a bunch of text in my Terminal session since the window was first opened (or since the last "clear" command was used), and exactly all of that is what I want in a text file. Instead ...
1
vote
0answers
20 views

Schedule a batch to ping at system startup and check if it's running from task manager

using system scheduler on win 2012R2 I would run the following bat file: echo %DATE%_%TIME% >> C:\test\testschedule.txt timeout /T 300 /NOBREAK start ping 8.8.8.8 -t start ping ...
0
votes
0answers
13 views

Commands lines for using “Remote Controlled Printing” from PuTTy

Well I'm trying to execute command line to open an application in order to previsualize before printing. So, if someone can help me that would be terrific!
-1
votes
0answers
15 views

How to align output from unix command in one row

I am running df command for space utilization of a number of space together and outputting it to a sheet but the output of one row gets split into two rows with misalignment in column. Ex: My command ...
0
votes
1answer
24 views

Concatenate multiple files with Windows command line

I use below two commands to concatenate multiple files from different directories: Method 1 type "C:\folder1\file1.txt" "C:\folder2\file2.txt" > output.txt Method 2 copy ...
0
votes
1answer
37 views

-bash-4.2$ for command line?

I don't know why when I SSH with putty onto my VPS, my command line starts with: -bash-4.2$ It hasn't ever been like that, it was myname@localhost Only thing I have done different in the last 24 ...
0
votes
0answers
18 views

VS2013 Developer Command Prompt PATH differs from cmd.exe PATH

On Windows 10, I installed MySQL server 5.6 with the VS 2013 integration option. Now when I open the VS2013 Developer Command Prompt, I get: 'MySQL' is not recognized as an internal or external ...
0
votes
0answers
22 views

Windows send command to terminal

I want to do something in Windows similar to screen's screen -X ___ stuff "___" command, used for stuffing input to a terminal. I'd like: The solution to be native to Windows. If programs are ...
0
votes
1answer
27 views

Print a list of all fonts used in all documents in a directory

Suppose you have a directory which contains (perhaps in sub-directories) Word 2000 (.doc) files. Now I want to analyze which fonts are actually used by a specific user. So, how can I scan this ...
0
votes
1answer
21 views

Command Line Remove Hidden (Unplugged) Device

Good morning, I am attempting to remove an unplugged/phantom device via the command line. I have tried Microsoft's DevCon.exe devcon remove "HWID" but it is not able to remove it returning No devices ...
3
votes
1answer
254 views

Starting an Application via Command Prompt [duplicate]

I can open Notepad just by typing notepad or notepad.exe in command prompt. But for other installed applications, I have to browse to the location first and then run the .exe file. Why is that? Can ...
0
votes
0answers
31 views

Batch file (or similar) to create multiple folders, named after a user input

I need to create a little application that will prompt the user for an input, (ie. John Smith) and then create a folder structure as follows - SMITH, John 1-AAAAAA 1-AAAAAA - ...
2
votes
1answer
41 views

Open a new file from command line on os/x using default application for the file type

This should be quite simple .. but is not working open x.txt Just hangs using iTerm2. The default app should be TextEdit.app. So how to do this? Note: I have also tried open -a TextEdit.app ...
0
votes
1answer
32 views

Batch File runs exe, creates file, saves and post in new folder nightly

This was a repost, I had it on stack exchange and was told it was better suited here for the superuser site. Not sure the difference. First time visitor to either site...but here it goes. ~Cheers I ...
0
votes
0answers
32 views

SSH in Windows console: wrong interpretation of some characters sometimes

I use ssh.exe from the MinGW project to access Linux servers from the Windows native commandline. Or I use Console2, a wrapper around cmd.exe which makes it more usable, but it is still cmd.exe in the ...
1
vote
1answer
26 views

How to run Chrome always with specific commands

I want to configure some PCs on my network, to always run Chrome, with some specific commands like: --app-shell-host-window-size, --window-size... and some others... I can do this changing the ...
1
vote
1answer
54 views

Can't (re)install Git for Windows after issue with previous install

TL;DR: How can I completely remove ALL remains of a (probably) broken Windows Git install so I can start fresh? Looks like something from the previous install is preventing a new one. The "Program ...
0
votes
1answer
35 views

How do I use OptiPNG on Windows to get a lossless file?

I simply what to use OptiPNG on Windows to create lossless versions of a folder full of PNGs file. Is the following command sufficient? optipng *.png I've seen things about using the o7 option as ...
0
votes
1answer
13 views

Set network card to AP mode in OSX

I am trying to do OSX's internet sharing from the command line and there doesn't seem to be a command for it, so I'm trying to do it manually by turning the network card to access point mode. I can't ...
0
votes
0answers
9 views

Ubuntu/Linux: Capture output of a command to rotated files?

I'd like to capture the output of a serial terminal to rotated files. What's the simplest way to do this? So, command | solution would yield a directory full of rotated output files. I can use tee to ...
0
votes
2answers
83 views

Open CMD Window, Run Batch File From CMD Window, Then Close CMD Window

I have tried to search for an example of how to do this with no success including with autohotkey (I'm very much a noob with AHK). What I am trying to do is open a command window at the explorer ...
1
vote
0answers
6 views

Run PhantomJS by batch

I got a question regarding creating a batch file that calls the phantomjs application and use two files. Overview of files: phantomjs application in: I:/path/to/my/file/test/phantomjs phantomjs ...
0
votes
0answers
19 views

Syntax error on setting variable in bat file

I'm trying to set up some variables in my batch file to later echo them into files. I get a a syntax error on a line of code almost identical to another line of code that works just fine. ... SET ...
0
votes
0answers
18 views

What artifacts to acquire when looking for IoC? [migrated]

I want to hunt for the Indicators of Compromise (IoC) in a potentially infected Windows PC. I am writing a batch script that would record the information needed for analysis. It includes the ...
1
vote
1answer
30 views

Running a custom batch file on keyboard shortcut in current directory

I'm developing lot of small .esb services recently and I'm pretty tired of doing Shift+Right click to open cmdin current directory then typing mvn clean install. What is the easiest way to run simple ...
0
votes
0answers
11 views

Set options (buffer, width, height) for windows command prompt globaly

On daily usage I have to use the Windows command prompt many times and many programs I use for work open an command prompt for debug or similar. And every time I have to adjust the settings for every ...
1
vote
2answers
22 views

How to insert a line between two lines which match a certain pattern in Notepad++

This is my text file echo Move date ahead 18 days to 30-09-2016 date 30-09-2016 echo Basic Rule Backups echo Move date ahead 1 day to 1-10-2016 date 1-10-2016 echo date ahead 1 day to 2-10-2016 date ...
0
votes
0answers
41 views

Pass command line arguments to a program saved in file

I want to pass command line arguments to MS Office programs (Excel, Word, Powerpoint) like below, "C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.exe" "c:\Book1.xlsx" /e/<arg1> To able ...
-1
votes
1answer
27 views

How can i compressed(winrar) a file using command prompt and the file name of the .rar is the same with the file

i have a autoback.bat file that will automatically backup my database and compress in using winrar application. the problem is i cannot create a rar file that is the same filename of my database. for ...
0
votes
0answers
9 views

Hoping to open a SQLite Manger in-memory database from the OS X command line

I like Firefox's SQLite Manager plugin because it's easy to show people how to use it. But ideally, I would like to be able to seamlessly move seamlessly between SQLite Manager and the sqlite ...
1
vote
2answers
848 views

In Windows 10, is there a command similar to wuapp.exe that will launch the Windows Update GUI?

In previous versions of windows running the command wuapp.exe would launch the Windows Update GUI. I want to be able to launch the Windows Update GUI from within a script/program thus would like to ...
0
votes
1answer
19 views

“Parameter Format Not Correct” when typing file paths

I've been trying to use the command prompt in Windows 7 to delete a stubborn folder (_MEI50722) from my temp folder. It's a highly-suspect folder in my hunt for some malware I'm thinking is hijacking ...
0
votes
1answer
91 views

How to enable the new console in Windows 10 and what are its defaults?

I expected to get to see the new console earlier in the preview, but I just was greeted by a completely different looking command prompt (not PowerShell) after installing Windows 10 without providing ...
0
votes
0answers
17 views

Linux cp command: Auto-rename files, windows-like, FAT32, file name restrictions, ignore symbolic links

Linux cp command: How can I auto-rename all files to conform to windows or FAT32 formatted device file name restrictions, and ignore all symbolic links? I am trying to copy the contents of my dropbox ...
1
vote
1answer
37 views

Customize command prompt globally

I am customizing the Windows 10 Command Prompt using the following method: Windows key => Type cmd => Open cmd => Right click window => Properties The problem is that this customization will not ...
2
votes
0answers
18 views

Is there a way to open non-runnable files directly from CLI

Let's say I have file without execution permission. Now a quick way to open such a file over the CLI is to use xdg-open which uses the system default to open a specific file. Is it now possible to ...
3
votes
1answer
37 views

Command prompt executes very slow [closed]

i was wondering, if someone could help me with this... the fact is when i run some commands on my command prompt, like trying compile some program, the execution is so slow, and i don't know why; even ...
0
votes
2answers
1k views

Can I trust this Windows 10 WiFi fix?

I've just installed Windows 10, and I my laptop can't find any wireless networks, even though I know for certain that there are ones available. I did do a little research, and found that (supposedly) ...
-1
votes
1answer
41 views

Need help finishing a batch script to rename files

i am writing a script to rename files based on date. Files are generated every day from a server outputing them like this: fil150807102600000001.txt fil150807102600000002.txt ...
1
vote
1answer
22 views

How can I print particular set of pages like 1,3,5,6,9… using lp command

I am trying to print particular set of pages using lp command, but page-ranges option is not getting me the exact pages. lpr -o page-ranges=1,3,5,6,9 filename