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
31 views

zsh: command issued gets repeated in output

I'm having an issue identical to: Repeated command in output for zsh prompt. As in, the command I execute is being repeated on the next line, and then the output of the command follows. But ...
1
vote
2answers
30 views

How do I run a command that uses the result of a nested command on Microsoft's Windows?

On Linux, I can run a command and use its result immediately in another command: go test $(glide novendor) The above command will first evaluate glide novendor and then substitute the result in. ...
0
votes
0answers
23 views

List zip file's contents using 7zip command line with non-verbose machine-friendly output

Is there a way, in windows, to use 7z.exe's list command such that the copyright heading, file information, and column headers are skipped and you're left with just a terse machine-readable list of ...
-2
votes
2answers
82 views

How to stop every batch file opening as a process named cmd.exe as seen in task manager

This is very complicated. I'm developing a malicious batch file just to test myself. This will be done at the startup. what I have is Three + Six (hidden) Batch Files. First file makes six other ...
0
votes
1answer
30 views

Delete files if condition is met

I have the following directory tree: /Directories/ /Directories/somedir/somefile.mkv /Directories/somefile.rar I'm trying to find a way to delete the .rar file if the .mkv file exists and is larger ...
3
votes
3answers
49 views

recursive batch rename files

I have audio library that has artworks in every folder and the names are: Cover.PNG, Cover.png, Cover.JPEG, Cover.jpeg, Cover.JPG, Cover.jpg… How to recursively find all those files and rename them ...
1
vote
1answer
34 views

Unintended escaping of double quote in Bash

I am trying to add the following Git alias as a command in Git bash (windows user here). yolo = "!git init && git remote add origin $1 && git pull" None of this seem to be working. ...
0
votes
0answers
16 views

Upload songs to IPOD Shuffle using CLI

I'm wondering if there is a way to upload songs to iPod Shuffle (v1.0.3) using just command line. I tried copying files into /Volumes/IPOD/iPod_Control/Music and /Volumes/IPOD/iPod_Control/Music/F0*, ...
0
votes
1answer
19 views

Getting the list of command history using Clink

I recently installed Clink and I'm quite happy with the history being kept in between session and the ability to search history using Ctrl+R / Ctrl-S. However, I would very much like to have access ...
1
vote
0answers
36 views

Why does the same ping command behave completely different on two systems?

The Software Ubuntu Server: ubuntu@server: $ cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=15.10 DISTRIB_CODENAME=wily DISTRIB_DESCRIPTION="Ubuntu 15.10" NAME="Ubuntu" VERSION="15.10 (Wily ...
3
votes
1answer
29 views

Loop/Batch file for extracting all .aac from .m4a files in folder

I'm desperate. I need to extract the .aac stream from ~1749 .m4a files with ffmpeg, but I can't get a batch file working for me and it would take years to do it manually. This is what I use for ...
0
votes
0answers
8 views

Passing command line arguments to a Parallels app from a Mac Icon

Found a great article 'How do I pass command line arguments to Dock items?' on passing command line arguments to a Mac icon. Problem is each time I run it I can't get the parameter to take. I was ...
3
votes
1answer
68 views

How can I wake-up a PC using a command? (i.e. equivalent to moving a mouse, etc)

It doesn't seem like this would be very difficult, but how can I wake-up a PC by doing the equivalent of moving a mouse or pressing keys on a keyboard? My PC is running Windows 10 and I only have the ...
0
votes
0answers
17 views

Linux - How to record speaker and mic from command line?

I'd like to be able to record my VoIP conversations. I'm looking for a solution which: Runs command line (no GUI; I want this to automate) Doesn't disrupt the audio (that is, it can record the mic, ...
1
vote
1answer
30 views

How to list incoming network connected users

Suppose I am on my desktop PC, and on a couple of laptops the following command are given: Laptop1: NET USE X: \\DESKTOPPC\SHARENAME /USER:FRED Laptop2: NET USE X: \\DESKTOPPC\SHARENAME ...
0
votes
0answers
12 views

Make ConEmu.exe the new default cmd.exe

I'm trying to replace the dreaded Win 7 cmd.exe with the much more useful ConEmu. However I cannot seem to be able to make it the default command line tool. I want any application, anywhwere, anytime ...
0
votes
0answers
18 views

Getting exit code from xcopy when it's embedded in cmd.exe

I'm using xcopy this way: p = New Process psi = p.StartInfo AddHandler p.ErrorDataReceived, AddressOf NetErrorDataHandler psi.Arguments = "/C "xcopy *SOURCE* *TARGET*" psi.FileName = "cmd.exe" ...
1
vote
1answer
36 views

Run command located at C:\ from folder in another drive

I want to run the following command: C:\Anaconda3\Lib\site-packages\PyQt4\pyuic4.bat -x gui.ui -o gui.py From a folder located in R:\, that folder contains the file gui.ui and the command is ...
3
votes
2answers
189 views

Ubuntu: Run the output of another command

I have command line that outputs a different command line, for example: > commandlineA param1 param2 commandlineB param1 I would like to have a single command line execution that will run ...
2
votes
1answer
28 views

How, exactly, is ! meant to be used with 7-zip CLI parameters?

The -i and -x parameters of the 7-zip CLI interpet ! in a special way. Or at least it looks that way from their documentation. That documentation includes the following: Syntax ...
8
votes
2answers
371 views

Where should non MS command line tools be placed in Windows? [duplicate]

I recently needed some of the really useful nirsoft tools. Many are command line tools and they need a location in the path to run from. I dumped them somewhere to get things done but I want to know ...
0
votes
1answer
15 views

Installation issues github program: truecrack

I am trying to install TrueCrack from github: https://github.com/lvaccaro/truecrack . As the description says I do this: cd truecrackDirectory ./configure --enable-cpu make However, when I do the ...
0
votes
2answers
69 views

Recycling bin access denied on windows 10

I've used unlocker to remove some files. Now I have issues emptying my bin. I've ran cmd with admin, but am still unable to empty. Rest assured these files are not important. cmd commands: My next ...
0
votes
0answers
20 views

curl -X POST not working properly?

Here's what I'm running as a test and it is working: curl -X POST http://zone-h.org/notify When I run that, I get the HTML of the page returned. However, when I run this, it isn't returning the ...
0
votes
1answer
26 views

A way to split a text file into arbitrary blocks based on first column?

I have a (very large) text file of the form... /folder1/fileA /folder1/fileB /folder1/fileC ... /folder999/fileA /folder999/fileB /folder999/fileC ...etc with an unknown number of entries for each ...
3
votes
2answers
45 views

execute a command for each line of stdin immediately?

How do I execute a command for each line of stdin immediately? Example: (echo abc; sleep 10; echo def;) | ??? The xargs tool does not do the job because it blocks until it sees all the data (waits ...
2
votes
2answers
141 views

How to move files into corresponding folders which have the same name?

Example scenario: I've multiple files ending with .torrent and I would like to move them into folders which has the same name. For example given the following files: abc.torrent def.torrent some ...
0
votes
0answers
15 views

Can't access command line of Raspbmc/Debian on boot by pressing ESC

I can't get to the command line by hitting Esc on reboot when prompted. Kodi version from the settings screen is "Compiled: Feb 2 2015)". I can't SSH in because my RPi isn't getting DHCP renewed on ...
1
vote
4answers
27 views

UNIX Command to sort file based on word delimited

I have a file that has lines file.txt like this: www.site.com/230207|Sophie Rundle title: Episodes|5irko3ke www.site.com/228264|Camilla Luddington title: Balifornication|5423234 ...
1
vote
0answers
8 views

Sublime Text 3: Using the line as an arg for a Keybinding

I want to use sublime text to edit scripts, and it could be helpful to "evaluate" (run) a line in the command line, right in sublime text. I thought I'd do this with the Shell Command Plugin, which ...
15
votes
4answers
2k views

dir C: vs dir C:\

I've accidentally found that if I do: dir C:\ I get a list of files that are direct children of the C: drive, in the root. However, if I do: dir C: I get a huge list of files that I'm not even ...
0
votes
0answers
63 views

Windows 10 system font size change from command line

Have a TV and a monitor connected to my Windows 10 box. I'd like to switch between two modes via a keyboard shortcut: Work: TV: 4K, text scaling 100%. Monitor: 2560x1600 Movie: TV: 4K, text scaling ...
1
vote
2answers
157 views

ForceBindIP: Couldn't run the specified command line?

I'm trying to bind two programs to two different networks like this: ForceBindIP.exe (network1 ip) "C:\Program Files\TeamSpeak 3 Client\ts3client_win64.exe" and ForceBindIP.exe (network2 ip) ...
1
vote
1answer
51 views

Compare and replace files using a batch file

Using a batch file you can do fc folder1\* folder2\* Now, I'd like to extend that to support subfolders (assuming it doesn't already, idk), and additionally automatically move the missing files from ...
1
vote
1answer
27 views

Windows command (copy) | parameters | allow destination file path to be created

When using Window's command copy, i'm unable to find a way to force the destination-path to be created. In the following example (assume that the source destination isn't created which is drive D:/ ...
3
votes
2answers
52 views

How to forget wireless networks from command line?

Using the command line on Debian, how can make the system forget the wireless networks I previously connected to? Thanks.
0
votes
0answers
27 views

Find “mystring” in files and return only certain portion of matching lines

I have below command to list out every file in current directory and it's sub-directories containing "mystring" along with the line where search string match is found. @echo off setlocal findstr /s ...
0
votes
2answers
49 views

sed command returning “sed: bad option in substitution expression”

For example:- I have a file named file.txt $ cat file.txt $key I have a environment variable, for eg: $key in a text file and lets say $key = 1234, so I can replace the value with the below ...
-1
votes
1answer
30 views

How to show a particular section from a line in linux?

Let's say I have a file with the following line: ...
0
votes
0answers
30 views

Compiled batch file doesn't require admin privileges?

The following command requires admin rights: netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%pass% However, when I compile the batch file to an exe using the converter at f2ko.de, the ...
1
vote
2answers
52 views

Quickly create a new Firefox profile and load Firefox with it

I want to be able to quickly create (and delete) Firefox profiles for testing purposes in Win 7 SP1. To do this, I created a batch file with the single line: firefox.exe -CreateProfile test ...
0
votes
2answers
24 views

Write command output to a file and to std out/error

I have a command that I run a lot which I like to direct it's output to a file. I do this like so: runFooBar > output.txt 2>&1 Is there a way that I can write the runFooBar output to the ...
6
votes
1answer
74 views

Variable for getting absolute path in windows batch script

I have following script to list out all the files, recursively from a directory, having a .phtml extension. @echo off setlocal for /f %%G in ('forfiles /s /m *.phtml /c "cmd /c echo @relpath"') do ...
1
vote
1answer
21 views

Recursive removal, preserve directories in Linux

In a Linux command line is it possible to - without prompting - recursively remove files (like with rm -r [path]), but preserve directories under [path]? EDIT: For the interested, I've used Paul's ...
0
votes
1answer
14 views

Auto-updating directory-listing?

I would like to have a directory listing ls . that auto-updates its output when files are added and removed to the directory. Is that possible or is there another commandline tool which can do this?
1
vote
2answers
50 views

How to write Debian to a USB flash drive from a Debian live CD?

I’m new to Linux, and I want to create a live USB flash drive for Debian Jessie. I burned Debian to a CD in order to then create a live USB flash drive of it. Win32DiskManager doesn’t download due to ...
3
votes
1answer
105 views

VLC Stream with fallback video track

I'm trying to use VLC for video-streaming, but I can't figure out how to add a fallback (external) video file. For example, I have a playlist consisting of both .avi and .mp3 files, when VLC starts ...
-1
votes
1answer
146 views

Completely disable UAC in Windows 10

When I was running Windows 7 Ultimate 32-bit, I had UAC disabled and everything was working smoothly for me. Now I've updated to Windows 10 Pro 32-bit (and recently also the 2015-11 update), I'm ...
1
vote
1answer
15 views

How do I find files by *error* condition in the terminal

I know that using find . -exec <command> returns all of the files which return a success condition for that command. How do I make it so that I can find all things which have errors? My basic ...
0
votes
0answers
36 views

Program gets error after starting from command prompt

I have a clients application that I am having trouble with. I start it from Autoit code using Run. Autoit is just a scripting language if your not familiar with it. We have received a new version ...