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
1answer
52 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
28 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
29 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
54 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
25 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
84 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
53 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
153 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
16 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 ...
0
votes
2answers
37 views

When to use `xargs`?

In what kind of situation can xargs be used? And when would it be considered pragmatic to do so?
3
votes
1answer
52 views

Automatically rename uploaded files not to conflict with existing files using SFTP (WinSCP)

I have file named with A.txt, Using batch command to copy the file to SFTP Server. After copying the A.txt, to copy the A.txt again to SFTP on same path.There is no possible same name with two files ...
0
votes
1answer
18 views

git diff --no-index but with multiple files

I really like git diff's output format, and I use it a lot as git diff --no-index to compare arbitrary non-git-related files. But as far as I can tell when using --no-index you can provide only a ...
0
votes
1answer
37 views

How can I run Chrome from commandline after closing explorer.exe with taskkill?

I have an old PC (I mean really old!) and it crashes every time I use Chrome. So I came with a bright idea. Why not close Explorer and run Chrome at the same same time using taskkill through a batch ...
1
vote
2answers
43 views

Mac terminal prefix has been changed

I was using the terminal to verify some downloads today using SHA1/256 and my terminal prefix has changed to inside-167-7:~ [_name_]$ Previously, it contained system info. I have no idea what the ...
-2
votes
1answer
24 views

How do I match filenames in different directories in bash?

I have two directories with files in them. dir_one contains files with names like : 10.recode.vcf.map dir_two filename pattern looks like this: genetic_map_GRCh37_chr10.txt I wrote some ...
3
votes
1answer
39 views

Why is the syntax of this copy command incorrect?

In Windows 10 the following command: copy /y libPitchExtraction.so C:\Users\adams_000\CODE\C++\PitchExtraction\android-armv7\android-build\libs\armeabi-v7a\libPitchExtraction.so causes the error: ...
4
votes
1answer
53 views

How to auto format code from the command line?

Let's say I have a JavaScript in someRandomFile.js and I want to run a command like: formatMyCode someRandomFile.js Then inside the file it just indent everything in a nice way. I want to do ...
1
vote
3answers
64 views

Can I access command prompt through an installation disk without a C drive?

My C drive can't load into Windows 7 anymore. Any option I choose, advanced, normal, repair, it just says that it's loading windows files and then a black screen. I've read that this is the hard drive ...
1
vote
1answer
31 views

Run KDE applet from command line (within i3wm)

It would be lovely to have the "Application Menu, a launcher based on cascading popup menus" as an icon in my i3bar to have a general overview of the packages I have installed in my system, within ...
1
vote
0answers
43 views

Windows XP Safe Mode Command Line detect external drive

Is it possible to detect an external USB drive to move folders to via Windows XP Safe Mode Command Prompt Command Line?
0
votes
1answer
44 views

MSConfig what does it edit specifically in Windows 7, 8, 10?

It used to be that the msconfig.exe used to edit the boot.ini from what I understand. Now in Windows 7, 8, and 10 I can't find out what it edits. Which part of the operating system does it change ...
1
vote
1answer
52 views

Why is Bash reporting “command not found” in some cases in the Terminal but not in others?

Often, but not always, when I start the Terminal on my computer and use pipe (|) in a command, pbpaste | wc as an example, bash gives -bash:  wc: command not found. (The double space is not a typo). ...
1
vote
1answer
60 views

Reverse scheduled tasks script

I have run the following .cmd file and I do not like it and want to completely reverse the changes. How would I do this without losing the original information about triggers/conditions etc. ? @echo ...
0
votes
0answers
19 views

Asterisk Win32 (SIP) Spawning Thousands of Procceses When Run

A bit of background: Recently I had found Asterisk for Windows and decided to see if I could get it set-up on a small home network. I downloaded the install file from the download link. Next I ran ...
2
votes
1answer
70 views

Getting “Host ”=“ does not exist” when trying to automate file transfers using WinSCP script

I am trying to automate some file transfers using WinSCP scripting. This is what I have. option echo off option batch on option confirm off open abcde:abcde@sftp.xxxyyyzzz.net lcd "t:\" put ...
0
votes
1answer
50 views

How to run regex find and replace using windows command line

I want to perform complex find and replace that I do with notepad++ using command line. I found many solutions from web but none of them matches my requirements. I have one file in which I want to ...
1
vote
1answer
37 views

How to prohibit access to recent files by command line

I don't want to use Windows recent folder, and I want to make the folder inaccessible for all users by command line. I thought the command below would deny all users permissions, but even after this ...
1
vote
0answers
25 views

Is it possible to “peek” on another users session on the command line

I have deployment systems which connect via SSH and execute tasks after uploading files (namely deployhq.com). In my instance they're connecting to CentOS, Wheezy or Jessie servers. I only get ...
0
votes
2answers
84 views

Create batch File to run one time and exit comand prompt window

This is the command line i want to run on my windows xp machine arp -s 192.168.1.1 11-22-33-44-11-22 I tried ti make code like this into arp.bat arp -s 192.168.1.1 11-22-33-44-11-22 exit When i ...
0
votes
1answer
76 views

Changing colors of the powershell prompt in Windows 10

In Windows 10, the powershell prompt has improved with more coloring. Command parameters are now highlighted in a different color, making the experience much nicer. However, I like to customize the ...
0
votes
2answers
11 views

Changing the “Meta” key for the readline library

I'm interested in rebinding the meta key for the readline library (command line editing in, say, bash) from the alt key to some other arbitrary key (like the caps lock key). For context, I'm already ...
0
votes
0answers
44 views

How to mount an SMB share on Linux as normal user on the commandline nowadays?

This is basically the issue I mentioned in my answer to User space application for CIFS reformulated as question as I currently don't know a real solution. In the past there was a tool called ...
1
vote
2answers
41 views

Add program to startup linux server

Hello, I have a Ubuntu Linux server (14.04) and i'd like to add NzbGet to the startup programs. NzbGet Wiki tells me this : Starting on boot NZBGet can run in background as daemon ...
1
vote
1answer
35 views

Delete all with exceptions from command

I have a folder with about 50 different files in it (NAME1.jpg, NAME2.jpg, NAME3.jpg...). I have a program that runs, and splits each file into about 4 different files and re-names them (NAME1-0.jpg, ...
2
votes
1answer
39 views

How to recursively list files (and only files) in windows command propmpt?

Wanted: I want a listing of files w/ full paths listed out recursively in Windows 7 through the command prompt. I DON'T wont folders to be listed. Attempt: This got me all files, but also ...
0
votes
0answers
24 views

Uploading client-side encrypted file to AWS S3 for loading into Redshift using command line

Trying to do the following using command line: encrypt a file with AES 256, using a key upload to S3 LOAD it to Redshift specifying the original key I understand that this is possible to do with ...
0
votes
1answer
23 views

open files in sorted order (OSX)

I'm looking for a terminal command to open many files in preview in "sorted" order. I'd like to open the files in order: 1.pdf, 2.pdf, 3.pdf, 4.pdf, etc. But without first sorting, they are opened ...
0
votes
1answer
26 views

How to export File Names (Only Image Files) from various location or directory into a text file

As mentioned in the title, I need to export the file names of various image files from various directories into a single text file as a list. How would I go about doing such a task? Secondly, would ...
1
vote
1answer
95 views

How can I make a .bat file run automatically when an alert box pops up?

Sometimes POP Peeper suddenly does not work on my computer. Whenever it happens, an alert box will pop up, and the box's PID in Task Manager is 244. The solution is to restart POP Peeper. I know how ...
0
votes
0answers
15 views

run a conditional loop command in one line

I am running following from command prompt. :Loop Rscript D:/check.r 2 3 | find "Warning" if not %errorlevel% equ 0 goto :Loop echo Connection established I want to know, how can I convert this 4 ...
0
votes
0answers
49 views

Concat (filter_complex) does not work for me, but Demux and Protocol do

Four parts were cut from a much larger .ts video file using vlc. The `cuts' were made using start-time, stop-time which possibly resulted in video boundaries which were not well-defined. I could not ...
0
votes
3answers
36 views

How to output the results of several commands in one line?

I have this bash command line: {echo -n ROT: \ ; date ; tree /Volumes/WD\ Ultra\ 2TB\ ROT/Bilder\ Archiv | tail -1 ;} >> /Users/reinard/Desktop/TestRot.txt I expected to have this output: ...