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

Batch Issue - Creating folders and Moving Documents

I’m trying to create a batch script in Windows 7 that will look at the first 6 numbers of 100s of pdf, create a folder based on the 6 unique numbers and move the pdfs into their respected folders. ...
1
vote
2answers
9 views

Is there a way to create a command line wrapper for a bash file?

The title says it all. I would like to type "run" in the command line and it would execute /pathtoscript/script.sh. Thank you!
0
votes
1answer
19 views

Terminal Command Colors

I like to have a really beatiful console style. I use zsh and I have changed my theme to "agnoster" See it under: oh-my-zsh My problem is that I do not have OS X and iTerm2 but I want to have these ...
1
vote
0answers
9 views

get output from cmdline application independently of system's locale

I'm trying to get the full OS-version information of a w32 host in a script (thus: from the cmdline), to be run on a variety of different machines. For this, i'm using the systeminfo as described ...
2
votes
1answer
17 views

Hostname is not displayed appropriately on command prompt & syslog messages

I try to set my hostname as 0.6.0.07252014 but when i see on command prompt and syslog messages, it is not getting displayed appropriately. Entered hostname: 0.6.0.07252014 Command prompt output: ...
0
votes
1answer
23 views

Repairing HDD - help to command prompt

I've dropped and destroyed my HDD with family stuff and so on aboard, and I read online, that I should just use /R /F /X D: in commandprompt, runned as administrator. I did that, and this is my ...
1
vote
0answers
12 views

Applications and .bat script get locked in Windows 7 for some minutes

I am playing around with Windows batch scripts and simple C++ applications on a Windows7 64Bit PC. The problem I am facing is that I cannot modify neither the batchfile nor the mingw-exe for minutes ...
2
votes
1answer
17 views

Does anyone knows how to delete a sub-directory in a source directory that does not exist in the destination directory using windows command prompt?

I am trying to create .bat file that syncs files and folders and so far I got up to this: xcopy "C:\Users\user pc\Google Drive" "J:\Google drive offline backup" /d /e /f /h /i /j /k /r /s /y /z for ...
0
votes
1answer
14 views

FFmpeg error when doing first pass of WebM encoding: Unrecognized option 'auto-alt-ref'

I'm using OS X Mavericks (10.9.4) and installed ffmpeg from homebrew. When executing this command (assuming input file exists): ffmpeg -i ololo.wmv -vf scale=500:-1 -auto-alt-ref 1 -lag-in-frames 20 ...
1
vote
0answers
29 views

How to stop previous command proccess?

I moderate my windows server remotely by command line. Once I wrote: "netstat -an" It showed up the results normally, but after this command, when I write any command it displays the results of ...
0
votes
1answer
11 views

Is it possible to toggle disabled/enabled devices from Command Line, simlar to Device Manager?

I like to play Fallout 3 which is very buggy normally, and even more so once I've added some mods. Needless to say, it crashes a lot. I can deal with the crashes, the only problem is when it does my ...
0
votes
0answers
10 views

Command prompt shows “???”

Now, from what I know, this usually happens when a file using a encoding that doesn't match the encoding used by command prompt Now the trouble is, it already screw up without opening any file, all ...
0
votes
1answer
26 views

How to shuffle large text files efficiently while piping it on Linux?

I have a text file that is couple GBs. I am trying to shuffle this text file in a pipe. For example these are some sample lines of what I am using but it is not efficient and in fact the pipe does ...
1
vote
1answer
21 views

How to send commands from a file to VIM?

This is the content of cmd.txt: :w 2.txt :q In command line, I do D:\>vim 1.txt<cmd.txt I expect cmd.txt as input stream (rather than my keyboard) and vim will save 1.txt as 2.txt and ...
0
votes
1answer
17 views

Run PHP at specific time - oneliner

I'm trying to run some code that sends an SMS at a specific time in the future. All on one line... Here's my command line command: php -r ...
0
votes
1answer
15 views

diff of two folders excuding file types with OS X command line

I found diff -rq folder1 folder2 however, being an OS X user you get the lovely hidden files like .DS_Store just clouding up the results in the terminal. So, I really don't care about those files. ...
-1
votes
0answers
12 views

The Powershell console hangs after a command execution

From time to time, though rather frequently, my Powershell console hangs after a (both successful and unsuccessful) command execution. I use the Powershell version 2.0.-1.-1 for the Sharepoint 2010 ...
0
votes
0answers
26 views

Entered wrong .bash_profile and now my laptop is running hot

I am just learning how to use the command line and was editing the bash prompt setting in .bash_profile. I made an error in the prompt settings in .bash_profile and I lost the prompt and the ability ...
0
votes
0answers
17 views

View hidden files/folders on windows phone?

I have a Windows Phone, and when I connect it to my pc, I can only see files such as music, pictures, music, etc. I already enabled the ability to see hidden files, but I still can only see the ...
0
votes
2answers
31 views

Accidently deleted PATH environment variable - how do I get it back?

I had to add the JDK path in the system variables which is under environment variables, but by mistake I deleted the default path which was present in the Path and pasted the JDK path. So how do I ...
0
votes
1answer
32 views

Batch script to take the output of a command and create a variable out of it?

For example, I want to search for a file where /r C:\ "myfile.txt" and then make the output of that command which would be the file path to "myfile.txt" a variable I choose, So then the path to ...
0
votes
1answer
14 views

Can't run start-process command

I'm trying to run a command found in this answer. The command is start /w %SystemRoot%\system32\pkgmgr.exe /ip /m:Windows6.1-KB2506143-x86.cab Trouble is, it doesn't work for me. Indeed, it ...
2
votes
0answers
15 views

Detect vga signals from command line

Currently I am working on Ubuntu 12.10. I am using vga2usb device for interacting with other vga devices such as monitors. Is there any command line utility or any specific command from which I can ...
2
votes
1answer
36 views

wc / cat command not found

I'm trying to run some simple bash script which uses wc and cat commands. The script fails with this: wc: command not found or this (after I commented string which uses wc): cat: command not found ...
0
votes
0answers
12 views

How to hide cmd window of a Calibre Content Server batch script?

So I manage to be able to share more than one Server Content at the same time with the same PC. If someone want to know how can I do this, is easy. Make a batch script and put this: @echo off ...
0
votes
1answer
14 views

Using su with screen

When I am under one of my user-names, I can fire off, say, screen -S -p 0 -X eval 'stuff "say command"\015'. However, I cannot su username screen -S -p 0 -X eval 'stuff "say command"\015'; it ...
0
votes
1answer
35 views

How does Git Bash differ from the Windows Command Prompt?

How does Git Bash differ from the Windows Command Prompt? For example: What is the purpose of Git Bash and what is it used for? And what is the purpose of the Windows Command Prompt? I am trying to ...
0
votes
0answers
18 views

Create user to execute select tasks

I would like to allow a application user to perform select sudo or root tasks without the need for sudo or root permissions or password being entered. Normal (Prompts for password): sudo appuser ...
1
vote
2answers
56 views

Batch command for Searching & Replacing Text in a Text containing non-TXT file

I am working with iMacro JavaScript .js files which are simple unencrypted lines of code-like text. The file contains the following code: var i; for (i = 1; i <= 10; i++) { iimSet("loop", i); ...
-1
votes
2answers
51 views

WIN7 CMD how to create command to open text files in selected editor

Is there a way to create a command in Windows 7 command line to open some text file in selected text editor? E.g. pspad "text file location" that will open text file in PSPad.
-1
votes
2answers
39 views

how to start a program with command line arguments on windows cmd

i know there are a couple of questions similar to this one out there but and while i have browsed through them, none have been able to resolve my problem. My code takes in three strings as parameters ...
0
votes
1answer
13 views

Tried Installing ZSH through cygwin and then trying to use zsh through Cmder

I tried to install Cygwin (64 bit version) on my computer, and it went through hunky-dory until at the very end, autorebase.bat failed with exit code 1. I read through the logs and they weren't too ...
0
votes
0answers
6 views

Deleteing site on IIS using addcmd won't remove bindings

I have an installer that adds SSL website using following command %windir%\system32\inetsrv\appcmd add site /site.name:SSL /physicalPath:C:\inetpub\wwwroot ...
0
votes
2answers
29 views

copying file from UNC path to startup folder on Windows 7 machines

I have sucessfully figured out how to copy a file to "\machinename\C$\ProgramData\Microsoft\Windows\Start Menu\Programs\startup" however I want to run this as part of an existing startup batchfile. I ...
0
votes
2answers
25 views

How to enable Remote Assistance and add an exception for it in Windows Firewall from the command line?

I need to enable Remote Assistance from the command line. The equivalent of checking this box and hitting Apply. This is for automation and I tried editing the registry entry ...
1
vote
0answers
34 views

Why copy-paste in Windows command-line tools is usually cumbersome

I've used the command prompt, cygwin, mobaxterm in Windows. Although they do support copy-paste, the operation is usually not that straightforward. The selection of the text in the command prompt is ...
0
votes
2answers
21 views

Not process a variable in a string immediately in batch script

I'd like to know if it's possible to process a variable containing a variable not immediately but only when asked. For example this batch: @echo off setlocal EnableDelayedExpansion set VA=Two set ...
0
votes
0answers
8 views

Libre office impress is slow to convert pptx to pdf

I'm running Libre Office on my server to convert the powerpoint to a pdf file. Using a .ppt file: libreoffice --headless --convert-to pdf filename.ppt is running fine and take like 3 or 4 ...
1
vote
2answers
36 views

Search-and-go in Windows CMD

I know that for file search on Windows CMD one can use the following command: dir /S /P "PATH/FILENAME" Is there an easy way to go straight to the result directory. For example, the requested file ...
0
votes
0answers
9 views

Installing mysql - Fedora20 - Where is the installation directory

I am trying to install mysql on to a Fedora 20 box. I am using the below guide which states the following; First, MySQL was replaced by MariaDB since Fedora 19 ...
0
votes
0answers
17 views

Command fails in a script?

I'm trying to script the OpenSSL ec command. The script is used to validate a collection of keys produced by another library. The script is shown below after the question. The following works from a ...
-1
votes
0answers
23 views

DD stop and resume cloning inquiries and the optimum BS size on OSX

I have a dead harddrive , that cant be mounted on mac although disk utility can still recognize it. So i opt for using dd utility to clone the hard drive and recover it later. Its been painfully slow ...
0
votes
1answer
27 views

Windows command-line installers used by some programs: problems showing syntax and parameters

As time goes by, it is (fortunately) more usual to find command-line installers for most Windows GUI programs, so you can make batch and offline console installations. But sometimes I have found a ...
0
votes
1answer
31 views

WinRAR - Using rar.exe command line to extract all files in all archives in a folder then delete all the archives?

I want to use rar.exe via command line to extract all files in all archives in a folder then delete all the archives automatically if they extracted successfully? I tried -df and -dr to no avail. ...
1
vote
0answers
23 views

.exe files wont close with task manager or command prompt - Windows 7

This is happening with my video game DayZ StandAlone and Google Chrome Browser and a few other programs. But I will close the program normally and it will appear closed until I check Task Manager. (I ...
0
votes
1answer
16 views

command line: spawning a process

I have a perl program that accepts an argument (intent is to change directory "cd") without spawning a child process. $FPATH/pcd.pl allows the user to choose among a number of possible directory ...
0
votes
3answers
26 views

Redirect stdin to stdout

I've got a script, ex myscript.sh, and it has to redirect to stdout what it gets from stdin (like a cat). For example: myscript.sh < myfile.txt > myfile2.txt How to do this? Also, how can i ...
1
vote
1answer
39 views

windows cmd - return first 3 files of a search

Searching to return the 3 most recently modified files of a particular extension. The search is simple: C:\> dir /od .zip "C:\Users\foobar\Desktop" Other solutions employ creating temporary .txt ...
0
votes
0answers
10 views

GNU screen command on path not found

When I use GNU screen in the following way, it works: screen java -jar .... but why does screen bukkit .... not work when bukkit is a executable script from my path ($PATH)? I've read here, ...
0
votes
1answer
46 views

split a file by a line prefix

My data looks like this: 60 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 61 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 62 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 62 ...