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)

2
votes
2answers
78 views

DHCP not issuing out IP addresses

DHCP on my network is no longer issuing out IP addresses. Every new device must be manually configured to connect to the network. After executing show ip dhcp binding, i noticed that all the ip ...
1
vote
0answers
47 views

Using batch to automate manage-bde

We would like to encrypt C (full disk) specifying a startup password (we are ok with this in plain text, it's temporary) and simply backup the recovery key to the desktop. So far what's working is ...
1
vote
0answers
34 views

Automatically open a file when gnuplot starts on Windows

I would like to assign gnuplot to .gnuplot files (gnuplot scripts) on Windows 8.1, in such a way that the gnuplot environment starts with the script file loaded. For this I would need to pass the ...
0
votes
1answer
21 views

Identify and kill batch script started before

I need help regarding batch script handling, help because working with on-board tools again, no extras installable. I have a CMD.exe script that gathers information about running processes (via ...
1
vote
1answer
19 views

How to filter processes with “ps” to match all conditions?

In Linux, if I use ps --user john -C processname, then I get all processes owned by the user and in addition all processes named processname. Is there a way to modify the behavior to get only ...
0
votes
1answer
66 views

How to locate deleted data from recycle bin in Windows 7 and Windows 8.1?

I'm using Windows 7, but I tested Windows 8.1 with the same results. From what I understand deleted files in recycle bin are stored as $R or $I format, however nothing is visible when I search command ...
0
votes
1answer
24 views

How to set Photoshop File Associations via command line

I am trying to re-associate .psd files with Photoshop CS6 via command line. I feel like this should work. But it is not. assoc .psd=Photoshop.Image.13 ftype Photoshop.Image.13="C:\Program ...
0
votes
1answer
35 views

xcopy wont copy shortcuts

Example code where shortcut resides: xcopy "Google Chrome.Ink" %CURRENTUSER%\Desktop Another Example where chrome.exe exists: xcopy /B chrome.exe %CURRENTUSER%\Desktop Both result in: ...
1
vote
1answer
28 views

Decode QR from image (or how to run Exec in a loop)

I need to decode a folder full of QR code from image files. After A LOT of research, I finally found a libary that works on Windows. Not my ideal choice (Zbar won't install on Strawberry PERL as ...
1
vote
1answer
40 views

Terminal new window always shows -bash: Searching: command not found

When open terminal, it always shows -bash: Searching: command not found. It does not affect other functions, just each time, even though open a new terminal window, it still pops up at the top of the ...
0
votes
1answer
45 views

Can I use “gksu” to became root for CLI operation?

I don't care if this is unsafe, because I'm only doing it as a programming exercise, but that's what I want to do: I want to create a C program that, with the "system" command, will call dpkg and ...
0
votes
1answer
29 views

How to Access “My Computer” files from Command Prompt

I'm trying to figure out how to access files on "My Computer" from the command prompt. In particular, I want to access files on my phone's share, e.g., My Computer\SAMSUNG\Phone\somefile.txt. That ...
0
votes
0answers
19 views

how can i delete specific parts of the history when i type “ipconfig /displaydns” on command prompt?

I already know how to flush the history in command prompt, but I only want to delete one part of it. I'm not really an expert on command prompt; I only know a few commands, but I really want to learn ...
1
vote
0answers
25 views

How to disable and re-enable an (wireless) network device? [duplicate]

I know I can enable and disable my network Devices in Control Panel > Network and Internet > Network Connections. I use the context menu and click on "Disable" and then "Enable". Because I have to ...
2
votes
0answers
48 views

Import html favorites file into chrome from command line

I have a list of Favorites from Internet Explorer 11 (Windows 7 SP1 32-bit) which I saved into an .HTML file. I am trying to import the favorites into Chrome from a command line or some sort of ...
0
votes
0answers
37 views

Set window size Firefox using cmd

This documentation contains various parameters that could be passed to the firefox command, executing e.g., firefox -new-window google.com opens a new Firefox window and subsequently starts ...
0
votes
1answer
34 views

Is there any difference between -exec cmd {} and xargs -I?

Normally, xargs bundles everything together, but when used with the -I flag it seems to put evaluate everything as a single line. Does this mean it loses its speed advantage? Also if the -exec cmd {} ...
1
vote
2answers
25 views

Wildcard not working in cp command when using exec

I want to copy all the files in all the directories to the parent directory, but I get the error ./img/* is not a directory For example. Here is the command that I used. Is there a better way to do ...
0
votes
2answers
48 views

List all files from folders and subfolders in Windows Server 2003 and export it to notepad

I have a server that has over 600 GB of data on one of the drives. I need to list all the files from the folders and subfolders and export that to notepad or to Excel.
0
votes
1answer
33 views

What does the percent sign indicate when used as a directory in batch files?

I have made a few batch files the hard way by CD-ing into the directory by typing all the way from root drive to folder. I have seen a few example codes use percent signs enclosing a few key words and ...
1
vote
2answers
36 views

Vim Avoid “Hit the enter key or enter a command”

I have the following configuration in my .vimrc file to switch between a .c File and it's corresponding .h File function SwitchHeader() w if(&ft=='cpp') e %:r.c ...
0
votes
4answers
50 views

Please explain the man page of command mv

I understand if I mv foo.file boo.file, I just rename foo.file to boo.file, and if I mv dir1/foo.file dir2/boo.file, I delete dir1/foo.file and make a copy of that to dir2 and rename it as boo.file. ...
0
votes
1answer
29 views

How can I type Umlaut characters in a Putty session

I am trying to type some German characters in my putty session. I am able to type it on notepad or other editors. asdƲas But when I try to paste the above text on my Putty session, nothing happens ...
1
vote
1answer
53 views

How to automatically delete the original files after encrypting with GPG?

I need to use GPG on a folder with a lot of files and subfolders. I can use "find" + "gpg" for that and I can encrypt all the files but my issue is GPG does not delete the original file after ...
1
vote
1answer
32 views

BASH - run commands before and after loop

I'm having a bit of trouble with a shell script. It's something so stupid I'm almost ashamed to ask, but I can't figure it out. This is the script: #!/bin/bash MAGAZINE=" 192.168.49.3 ...
0
votes
1answer
18 views

How to delete all files in the folder which exists in the tar.gz archive

Typical mistake for me, is exctraction in the wrong directory. After i realize that, i want to delete all this file, and extract again. But how to automate this delete-all-this-crap operation? Any ...
0
votes
2answers
45 views

Recursive command-line md5 generator and verifier

I want to write a batch script that has the ability to generate and verify md5 hashes of an entire directory tree. Is there any program like this for windows? I can find many md5 programs, but they ...
0
votes
2answers
33 views

To separate the directory string from a variable in cmd

I would like to split up the directory value stored in a variable. Suppose for example if I assign directory path(with double quotes) "C:\Program Files\TeamViewer\TeamViewer.exe" to a variable a. I ...
0
votes
0answers
13 views

Auto add my account to Firefox when installing it silently

I want to make an unattended installation of Firefox so when I open it, it will automatically sync with my account, and I don't need to type it again. This Mozilla Wiki gives you information about ...
1
vote
1answer
59 views

ffmpeg and iFrame output and quality of JPEG

I was looking for a solution to a problem and on my travels I cane across something linked to what I was doing which prompted a 2nd question. I bundled both these questions here. If I should not I ...
1
vote
1answer
29 views

windows command line to move files over a certain size

I'm looking for some windows command line to scan through a directory which contains sub directories and moves files over a certain size to a new directory. I haven't been able to come up with a ...
0
votes
1answer
23 views

Facing issues while opening an application via Command Prompt

I have an application that would test the HDD performance for me. When I open the application for first time it would ask for Initial setup and I would setup the configurations and save it. Whenever I ...
1
vote
1answer
66 views

How do I delete a windows 8 recovery partition that won't delete through command prompt

I need to delete that nasty recovery image partition which is taking up my space as I moved my windows and recovery drive to different hard disk It won't delete (when I right click it says nothing ...
1
vote
1answer
58 views

How to kill a specific java process by application name

Usual taskkill /im "java.exe" will kill all java processes in the list. I however, want to kill a specific one. The problem is to identify the right process as there are multiple java.exe processes ...
0
votes
1answer
26 views

Zsh prompt's history number sometimes increments after ignored commands

When displaying the history number of the next command in zsh's prompt (I'm on version 5.0.2), it is unexpectedly incremented after ignored histignorespace and histnostore commands (and then only ...
0
votes
1answer
68 views

How do I save a string of numbers from an ongoing command to a list in a shell script?

I am trying to make a shell script for recording macros via recording the individual keycodes of each button press. The command for it looks like this: xev | grep -A2 --line-buffered '^Key*' | sed ...
1
vote
1answer
125 views

Cygwin from Windows very slow/ laggy

Suddenly all Cygwin commands I start from the Windows command line have a ~10-20 second lag before they execute. So that Cygwin becomes totally unusable, I already tried to reinstall without success. ...
13
votes
7answers
2k views

Running .exe in command prompt

I'm trying to run an iteration program, and whenever I click on it, it opens then terminates. When I open the input text file, using the program, the iteration completes, then the window instantly ...
0
votes
1answer
37 views

Using Win8.1Pro Batch: Unable to verify if BitLocker has already applied encryption

I'm working on a script that assists in standardizing a Windows 8.1 Pro image. In this part I'm trying to verify if BitLocker has already encrypted the drive or not using the following script: ...
0
votes
0answers
34 views

Python shows wrong version in command prompt

I have downgraded my version of Python from 2.7.9 to 2.7.4 for compatibility with a legacy piece of software. On Windows 7 x64 computer. I removed Python 2.7.9 and then installed 2.7.4 into the ...
2
votes
6answers
188 views

How can I convert all “x”s to “y”s in filenames for a specific directory from the command line?

I have been naming files, of out habit as a programmer working on a server command line, with underscores “_” rather than spaces “"—because from the command line you have to escape spaces—but that is ...
0
votes
0answers
18 views

Need help constructing cURL config file

I have a (rather long) cURL command that I'm currently running as follows: curl.exe -U : --proxy-ntlm --proxy myproxyserver --cookie-jar cookies.txt -H "Accept-Encoding: gzip,deflate,sdch" -H ...
0
votes
0answers
24 views

Linux: how to convert multi-mp3-audiobooks with appropriate cuesheets?

I have several audiobooks in MP3 format, which are in multi-file format which means, they are named like CD01_CHAPTER_001.MP3 and so on. Now what I would like to do is the following: convert the ...
0
votes
1answer
50 views

Batch File Won't Run - Command Line Script Does

I am using an ncftp script to upload some files via ftp. I want to automate this process so I am using a batch file to run it. Here is my script: ncftpput -u myusername -p mypassword -R myftpaddress ...
1
vote
1answer
32 views

How to Concatenate Repeating String in Batch Script

I'm trying to concatenate a repeating string depending on the first parameter value passed into the script when it is called. This value represents the number of directory levels the current ...
0
votes
0answers
33 views

ArchLinux can't install perl-wx

I am trying to install perl-wx from the AUR Repo with yaourt, but can't get it to work. I have tried "export LC_ALL=C". Still an error occurred during the check. Maybe you can help me? Pastebin: ...
1
vote
2answers
54 views

Deduplicate images synced across devices in various resolutions

I currently have a couple of scripts and Android apps that together do the following for a set of member devices (smartphones, PCs, digital cameras): all pictures taken by all member devices are ...
0
votes
1answer
37 views

How to write a Windows filename with åäö in command prompt?

I need to write a command line in the command prompt that references a file containing åäö in its name, but I can't seem to get it right. Windows should be set to codepage win1252 and the command ...
0
votes
0answers
58 views

How can I run serial commands via plink/putty with windows cmd file?

I would like to open putty command line and run some serial commands via a Windows command file but I can't figure it out. I've tried variations of the following in my cmd file: call plink -load ...
1
vote
2answers
33 views

Wrong exit status upon evaluation of command substitution via ssh?

I've the following simple shell command which I'm expecting to fail and it does on my local: $ DIR=$(false) && echo ok || echo fail fail $ sh -c 'DIR=$(false) && echo ok || echo fail' ...