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
0answers
64 views

sh command not found on Windows 10

I'm trying to install devkit using the command npm install -g devkit. It makes a loading bar which goes on for a few minutes then gives an error, firstly saying that the sh command can't be found, ...
0
votes
1answer
30 views

Unable to execute FOR loop from batch file

I am trying to execute the following command from inside a batch file: @echo off & for /f "delims=*" %A in ('dir /s /b') do echo %~fA %~zA >> "\path\to\output.txt" I found this command ...
0
votes
2answers
62 views

How to run multiple batch files with one master batch file

I have three bat files I would like to run, in three different directories: directory/bat1/bat1.bat directory/bat2/bat2.bat directory/bat3/bat3.bat I would like to use one master .bat to start all ...
1
vote
2answers
32 views

How to download a .gz and use it as a command?

I recently had the need to install a command to limit cpu recources to a task. (If you're interested, the source is here: http://www.willnolan.com/cputhrottle/cputhrottle.html) This task has always ...
1
vote
0answers
15 views

linux - append but skip existing data

Being somewhat new to linux, I am trying to copy but append existing information from multiple updated lists under different directories, to the existing files that may have some matching information, ...
0
votes
1answer
37 views

Command line to rename file using name of other file type

I have 2 files: fileone.txt and filetwo.mkv. How can I use the command line to rename filetwo.mkv to fileone.mkv.
0
votes
1answer
16 views

How can I get dictionary size of 7z archive using comand line?

I've got an 7z archive, I've read manuals but couldn't find how can I get dictionary size of this archive using comandline?
1
vote
1answer
34 views

Is there a way to silently extract a self extracting multipart rar files via commandline?

I have a multipart self extracting rar file; setup.sfx.part1.exe setup.sfx.part2.rar setup.sfx.part3.rar Now when I try to extract it by starting the exe via commandline I get a nice screen where ...
0
votes
1answer
39 views

Is it possible to embed a command line statement in a Hyperlink?

Here's what I'm trying to make happen: User gets automatic email-reply with a hyperlink inside. The hyperlink contains a net use command to map a network drive. A confirmation should not be necessary. ...
0
votes
1answer
50 views

Repairing a specific file or folder in windows 7 with chkdsk or alternative program

I have a 500 GB NTFS partition on which there is a folder that I know contains some bad sectors.So to save time and resources, Is there any possible way to run chkdsk or alternative program to repair ...
-1
votes
1answer
49 views

Getting the following error when using ls in Mac terminal: -bash: ls: command not found

I am getting the following error when running ls or nano or clear in the terminal... SE-ASLAE002-MB1:~ aslae002$ ls -bash: ls: command not found SE-ASLAE002-MB1:~ aslae002$ nano newfile -bash: nano: ...
0
votes
0answers
33 views

Batch script with FOR /R and ECHO don't work

The script below don't work, it doesn't create the file with the ECHO command. If I run the FOR line (changing %% by %) in CMD it's working perfectly. Do you know why ? SET TXTDATDIR=c:\TEST\EXPORT ...
0
votes
1answer
63 views

Make ConEmu close after exiting batch file

I am running a batch file from ConEmu and want it to be as little intrusive as possible. I have set ConEmu to run minimized and close on exit. But.. after the batch is run, the window stays open and ...
1
vote
1answer
230 views

Auto extract .rar files from qbittorrent with WinRAR command line CLI

After a torrent download on qbittorrent completes, I am executing an external program via the options menu: Tools -> Options -> Downloads --> Run external program on torrent completion "C:\...
1
vote
0answers
15 views

How to start Firefox with activated firebug via command line

Is there a way to activate firebug when starting Firefox via command line? c:\Program Files (x86)\Mozilla Firefox\firefox.exe mysite.dev /{ACTIVATE_FIREBUG}
0
votes
0answers
54 views

Windows Batch - Insert file name and spacer into contents of all text files in a directory and subdirectories

I have a directory and subdirectories of text files like this: my text What I'd like is to insert the file name (with or without the '.txt') and some spacing characters into the beginning of each ...
0
votes
1answer
45 views

ConEmu: how to redirect output of spawned application

I successfully use ConEmu to start different instances of a command line application MYAPP in different tabs. E.g. by predefined task cmd /k MYAPP Tab1 -new_console:t:MyAppTitle ... To monitor ...
0
votes
1answer
46 views

ffmpeg time format in filter_complex

I wanted to trim video. I mean I wanted to select few sections from one video and then concat they or mix they together! I did it. But in "filter_complex" I can not type start point time format like: ...
0
votes
1answer
31 views

CMD Command Copy and paste

I want to make a .CMD/.BAT program that copies a cmd command like: title Ipconfig Copy ipconfig /all ... This program is not completed because I want to copy all information and addresses of ...
0
votes
0answers
25 views

How to remove items from dock in Yosemite by Command Line?

Maybe someone know how to delete specific items(iBooks, Maps, Photos) from Docks by command line?
0
votes
2answers
28 views

Installing Linux on old Vista Machine

I have an old Vista Laptop that will not boot. It is not offering Recovery options however, that is not an issue since I don't really need anything from it. I have used a freeware program to get ...
0
votes
2answers
59 views

What is this attrib command saying?

Could anyone tell me what this command says? I used this command when I couldn't find my files on my flash drive. but I don't know what it is saying, I only know -h and -r which remove the hidden ...
0
votes
0answers
36 views

Backup an arborescence from Robocopy /CREATE to WinRAR archive in one step

I would like to know if it's possible to save a large arborescence / file tree using Robocopy with /CREATE switch (which creates zero byte files -- the purpose is to have a reference of the files/...
1
vote
1answer
48 views

Export a csv file to multiple csv files with batch command

I have a 100 line csv file, with 5 values per line. I am looking for a way to export each line to its own csv file adding a 2 line header to each. I have used the split command seen elsewhere to ...
0
votes
0answers
21 views

Windows Commandline - Change directory directly on different drive

I'm making a guide that everybody should be able to use. At one point, I need them to go to the commandline and type something - but it's important that it happens from the correct folder. So it's ...
0
votes
1answer
55 views

How does `pushd` exactly behave regarding path with slashes `/`?

Consider the following commands given from a cmd prompt: D:\test>cd D:/ D:\>cd /test D:\test>pushd D:/ The syntax of the command is incorrect. D:\test>pushd "D:/" D:\>popd D:\test&...
0
votes
1answer
43 views

How to do a FOR loop properly in batch script in windows

I am trying to convert from a bash script, this is what I came up with. When I try to run this, I get the syntax of the command is incorrect error. I followed this post and wrote the commands.What is ...
0
votes
0answers
37 views

How do I read system environment variable in Windows 10 (without using admin right)

How to I read system environment variable in Windows 10 (without using admin right) my %JDK_HOME% = C:\Program Files\Java\jdk1.8.0_77 when i use command line echo %JDK_HOME% it will show %JDK_HOME% ...
0
votes
0answers
47 views

Run command-line to turn display backlight off and on

Windows 7 Starter, HP 110 3500, Toshiba NB550D netbooks Sorry to be such a novice but trying to find out how to make the following (I presume command prompt) utility to work. It was posted by ...
2
votes
1answer
191 views

Serial console login on OSX

Background I've got a Wyse WY-50 terminal here that, for various nolstagia and productivity reasons (really!), I'd like to connect to my Macbook and use as a login terminal. I'm using OSX 10.10 El ...
2
votes
1answer
26 views

How to display key to a file using OpenSSL?

I'm a newbie at encryption so I could do with some help: I'm trying to follow a tutorial on the MariaDB website to create an aes-256-cbc key to encrypt my data at rest. The line which it tells me to ...
0
votes
1answer
23 views

Batch and Count inifite stdin

Assume you have some linux/shell command (i.e. nc) which outputs to the stdout some line-break separated strings. This commands never finishes with outputting (or outputs for a long time). I'm ...
0
votes
1answer
64 views

Double quotes not working on Windows command line

I'm trying to run an executable from the command line. Here is the full path to the .exe: C:\Program Files\R\R-3.0.2\bin\Rscript.exe So, the command I type into the command line to open this .exe ...
0
votes
3answers
55 views

converting a simple sh script to the equivalent batch script on windows

This is the script that I need to convert to batch file in windows : #!/usr/bin/env sh TOOLS=./build/tools $TOOLS/caffe train \ --solver=examples/cifar10/cifar10_full_relu_solver_bn.prototxt ...
0
votes
0answers
15 views

how to enter commands in a cmd window and keep it open with a batch script?

How can I create a batch script, that opens a cmd window, issues commands in it, and then keeps this cmd window open? I have a production system, where I have to operate quite often using a special ...
0
votes
1answer
364 views

SVN: Vacuum/delete pristine copies from command line

How can I vacuum/delete all pristine copies of a working copy from command line? Use case: I have multiple working copies (20+) checked out (same case for many developers in our firm) some of those ...
1
vote
2answers
25 views

How to browse to a file server and add a printer via command line

I have a file server that holds all of the printers my company uses. Lets call this \printers. I can add the printers by browsing to this location and double clicking on the printer. It will install ...
0
votes
1answer
74 views

ffmpeg join two mp4 files with ffmpeg on command line

I can successfully join multiple files using the following command: ffmpeg -f concat -i input.txt -codec copy output.mp4 the only problem with this command is that ypu need to read the filepaths ...
3
votes
2answers
52 views

Is there a way to keep already executed commands on some sort of cache in bash?

Is there another program or app than would let you keep a list of previously executed commands on a cache or something similar, so you can then press a key and acces or search on a list of previously ...
0
votes
3answers
27 views

Delete lines that are not n consecutive lines starting with the same id

I have a file that looks like this: 194104,41.8,38.3 194104,46.7,39.6 194104,47.4,39.7 194104,49.8,44.3 194104,50.8,47.5 194136,39.9,36.3 194136,45.2,37.8 194170,46.9,42.2 ... I want to keep the ...
0
votes
2answers
28 views

Command to list all apps capable of opening a given extension

I'm building a file catalogue app of sorts, and for one of its uses I'd like to get a list of all apps currently installed capable of opening files with the extension of the currently selected file. ...
0
votes
0answers
12 views

Is it possible to associate an extension one way for Windows Explorer and another way for the command line?

I have several "executable file types", like FinalBuilder scripts with an extension .fbp8. I want the following scenario: If I type the name test on the command prompt, the script will be executed ...
0
votes
1answer
72 views

Launch program with Wine using .exe arguments

I have this program that I'm able to launch via command prompt in Windows or via a crafted .lnk when adding the specified arguments like this: "C:\My\program.exe" /ID:"MyID" /CompanyID:"123" /TheAddr:...
1
vote
1answer
17 views

Copy specific subfolders from multiple folders in bulk

I have hundreds of folders all structured the same way: g:\Collections\001\p g:\Collections\001\a g:\Collections\001\m g:\Collections\002\p g:\Collections\002\a g:\Collections\002\m g:\Collections\...
0
votes
1answer
52 views

Enable a Local Group Policy Via Command Line?

I'm attempting to disable OneDrive on some new machines my client has acquired. They are all (about 200 in total) running Windows 10 Pro (unfortunately not enterprise). I'm trying to figure out a way ...
-1
votes
1answer
34 views

How to use CURL tool?

I just got introduced to CURL today and I went to their website to download the tool and all I got is .cgi file called "metalink" and I don't know how to use it or how to run it, can someone help ...
0
votes
1answer
45 views

Change CreationTime using the file name

I name all of my home video files according to an exact protocol. An example is: Aug 09,2005@13.21.12.mp4 Typically, the original file is not an mp4 so I go through the process of converting, ...
1
vote
1answer
58 views

Automatically extract ALL audio streams from a video file into separate files?

I have a .mov video file, for which ffprobe/avprobe reports: $ avprobe -show_streams test.mov Stream #0.0(eng): Video: dvvideo, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 28811 kb/s, PAR 236:162 DAR ...
0
votes
1answer
84 views

How to output net group command in list format in batch

I'm using the net group "Groupname" /domain command which outputs a bunch of users in the group in the format of 3 columns. There are spaces between the columns. How do I output the command so that ...
1
vote
0answers
55 views

Remove my own access rights from from files in a network folder from the commandline

I have full access rights to a share on another Windows PC, e.g. \\Backup\PC. After I copied files from my normal Windows office PC to that share, I want to remove all rights from the copied files (e....