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
2answers
33 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
48 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
22 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
24 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
votes
0answers
28 views

Emulate the “Apply” button from Control panel from command line or batch

Some settings can be adjusted from the control panel, like adding a mouse pointer trail or adjusting the speed. Similar changes can be done by changing registry keys. However, then a restart is ...
1
vote
1answer
26 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
15 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
33 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
31 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
45 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
26 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
57 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
39 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
49 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
94 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
32 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
28 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 ...
1
vote
1answer
49 views

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

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 ...
0
votes
0answers
13 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
23 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
39 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
26 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
23 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
47 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 ...
-2
votes
0answers
23 views

How to close a single PDF file using command prompt in Windows?

How to close a single .pdf file using the command prompt? I don't want to use taskkill /F /IM acroRD32.exe, as it'll close all open .pdf files.
0
votes
1answer
30 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
38 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
31 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' ...
0
votes
1answer
18 views

how to run an powerpoint add-in from the command line

I'm trying to open a powerpoint from the command line and run an add-in, or alternatively add an existing macro to a powerpoint programatically and then run the powerpoint with the macro. I see the ...
0
votes
1answer
23 views

why is the powershell i can open from the run box not the same thing i can open from the start menu?

If I WinKey + R to open the run box and type powershell it works to some extent as it opens up a command line box. However, this windows doesn't behave like the powershell I can open from Start > ...
2
votes
1answer
36 views

How to remove substring in Powershell script

This script is almost what I need: $input_path = 'C:\Common' $output_file = 'C:\Common\extracted.txt' $regex = 'assets' Get-ChildItem -Path $input_path -Filter *.txt | Select-String -Pattern $regex ...
0
votes
1answer
83 views

Windows 7 - Change what closing the lid does, UTILITY/CMD

I wonder if anybody knows a utility, or command, which can change this setting in windows in one click. I often need to change it on my laptop whether I want it to do nothing when the lid is closed or ...
12
votes
4answers
258 views

Which multi-user operating systems allow a user to see the current command line of other users?

I was reading the manpage of unzip, and ran into the following -P password use password to decrypt encrypted zipfile entries (if any). THIS IS INSECURE! Many multi-user operating ...
2
votes
1answer
44 views

Batch why <nul breaks my file

Well guys i am basically trying to get user input and type it on the batch I will be using backspace and enter so i cant use choice Thats why i am following this method To capture characters as ...
0
votes
1answer
15 views

print names of files in folder from path in terminal

I was making a program and want to see all the items in a folder by giving it the path. my program uses the terminal so the commands are the same. something along the lines of echo ...
1
vote
1answer
31 views

Can't Use Powershell Active Directory Cmdlets Even With RSAT Installed

A while back I wrote a simple .ps1 that let me look up the name of a user or the hostname of a computer and tell me which OU of my AD it resided in. I don't recall having any difficulty running the ...
0
votes
0answers
18 views

Send dynamic argument to an application through its shortcut

I am trying to create a shortcut link which will run/open Command Prompt (cmd) as Administrator having present working directory (PWD) set as the supplied folder path. What I have done: Created a ...
1
vote
1answer
27 views

Linux equivalent for compact /c /s windows command?

I find the compact /c /s windows command really uselful for compacting ultra verbose traces/logs directories (which in my case, when debugging, can reach several GBytes in a few days). Advantage : It ...
0
votes
2answers
27 views

How do I install Inkscape for use by Cygwin?

I'd like to know if it is possible to install Inkscape for use from the Cygwin command line. I already have Inkscape installed as a program in Windows 7 (64 bit) but Cygwin isn't recognizing inkscape ...
0
votes
0answers
28 views

PuTTY - some commands not found

I have some problems using putty. Normal commands like cd, ls work fine, but commands I need for sending files to a cluster don't work. For example bjobs, bsub - I get command not found. I already ...
1
vote
1answer
36 views

Windows 8.1, Cannot relocate Users directory without windows failing to login properly

I'm trying to relocate my C:\Users\Me folder on my SSD to F:\Users\Me which resides on my HDD. So far I've tried two approaches. Registry Modifying the following registry keys in ...
1
vote
1answer
40 views

How to connect/disconnect an Ethernet network with command line

I am using a balanced IP at work but some servers don't like that, they are considering it a security breach, so i often need to switch from my Ethernet connection (balanced with 2 IPs), to a Wireless ...
0
votes
1answer
24 views

I need to find the print history from my Macbook

How can a find a list of documents that have been printed from my mac? I need the completed print jobs only. Can this be done through Terminal?
1
vote
1answer
26 views

What are the drawbacks of '--allow-file-access-from-files' Google Chrome command line switch?

I find myself frequently needing to have Chrome do XSLT transformations on local XML files. This only works with the aforementioned switch. I am inclined to just add it to my Chrome default shortcut. ...
0
votes
0answers
17 views

How can I format the piped and refreshing output of multiple cmmands nicely?

I have a command line of multiple piped commands which executes beautifully in bash. For simplification: command1 | command2 | command3 Each command generates output while running, resetting the ...
0
votes
0answers
13 views

Change page orientation offline in LibreOffice

I am using console command LibreOffice—headless—convert-to .odt file.html to convert a bunch of HTML-files to .odt but need to change their orientation from default portrait to landscape. Is there any ...