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

Possible to get a bash script to accept input from terminal if its stdin has been redirected?

Say I've got a bash script: #!/bin/bash read -p "Gimme some stuff: " stuff echo "**${stuff}**" If the script is invoked with something piping into it, such as: echo "Here's some stuff" | ...
0
votes
1answer
80 views

Node.js won't run from cmd.exe in Windows 7 x64

I installed Node.js from the installer on the project's main website. I checked all of the options on install to make sure it could be used correctly. However, when I go into an administrator command ...
0
votes
0answers
13 views

Is it possible to change php settings from the command line?

I have a vagrant controlled environment that uses a base box I don't have control over and is a near replica of our production servers, I do have control over the provisioning scripts, however, and ...
0
votes
1answer
71 views

Is it possible to run a program in Windows XP Mode directly from a batch file that is in Windows 7?

I have Windows 7 Ultimate with Windows XP Mode installed. In my host OS (Windows 7) I have a batch file which executes some commands. I have to execute also three programs that are installed in my ...
0
votes
0answers
19 views

Disable ansi colors in Windows console

I am using the windows console a lot (Windows 8.1) and many utilities, apply different colors to different parts of their output, which is extremely annoying to me. Some of them even forget to revert ...
0
votes
0answers
84 views

Knife commands in chef is not working

my knife config was working. Chef server was updated to a newer version. the pem files match and the knife config should be correct. But when I run any knife command..for example knife user list ...
0
votes
1answer
29 views

Doskey Variable Expansion

I'm thinking the answer to this question is no, but it shouldn't be. From the command prompt normally, the following (as an example): C:\> FOR %I IN (*) DO ECHO %~xI would give me the ...
6
votes
3answers
378 views

How to determine what is running in DLLHOST.EXE that's missing /ProcessID switch?

I have multiple dllhost.exe processes running on my computer: Every one of these image's command line is missing (what I am thinking is) the requisite ...
0
votes
2answers
81 views

How do I open a command prompt as a regular user (not an adminstrator)?

I'm trying to fire up a regular command prompt to test the limitations of certain commands. However, whenever I open the Command Prompt from the start menu, it automatically runs as Administrator. If ...
2
votes
1answer
26 views

Linux : Setting which php bin to use in CLI

Hi i'm trying to use php command in linux. However I have two installations of php, one I got from the sudo-apt-get and one from a stack, Lappstack. Don't ask how I got there, but nevertheless i'm ...
0
votes
1answer
33 views

What could cause HostName in command line to display differently?

I am on OSX, and my host name in the preferences panel reads "User's Computer Name" but when I go to my command line it is reading: something else:~ myusername$ My understanding is the first part of ...
1
vote
2answers
52 views

Get SSH one-liner commands to show color

I'd like to enable colored text output on SSH one-liner commands, but I can't seem to get it to work on OS X, Ubuntu 14.10, or OpenSUSE 12.2. If I ssh into a server and type, say, ls --color=auto in ...
0
votes
3answers
24 views

How to avoid .git when search for a string using grep

I am trying to make a search in a folder for a string using grep. grep -r "word" . But it is including a search in .git files which I would like to avoid. Thanks
-2
votes
1answer
34 views

command prompt opens and closes while startup in windows 8.1

Command prompt opens and closes while startup? Two days before I tried to install java application but because of problem in installation i cancelled the installation and removed it's setup. After ...
0
votes
1answer
54 views

Prompt yes or no to repeat a command in a bash script

I've attempted using "while" and "ask" without success but the whole goal of this script is to run a command or commands and then ask if you want to repeat the command again. Example: echo "adding a ...
0
votes
1answer
23 views

Convert ogg to mp3 in batch

I have a huge collection of about 3k folders and have ogg files in each of them. I would like to do a convertion to mp3 for all the folders in a batch. I have 1 folder as a main directory, 12 folders ...
0
votes
1answer
32 views

ffmpeg: How to add two consecutive audio streams to a video file

I have following files: - video.mp4 (120sec, no audio) - audio1.mp3 (70sec) - audio2.mp3 (50sec) I want to combine these files in such a way that audio1.mp3 will start at the begining of a video, ...
0
votes
0answers
21 views

Windows chcp not work for 1251

OS: Windows 7. For some reason I need 1251 encoding in console window. But get this G:\Scripts\DAA>chcp 65001 Active code page: 65001 G:\Scripts\DAA>chcp 866 Текущая кодовая страница: 866 ...
1
vote
1answer
26 views

Mac command-line sort files into subfolders

I want to run a command on a very large folder to sort every item into subfolders based on modification date. Can this be done with one line? I.e., all files modified in July 2013 would be moved to ...
0
votes
3answers
68 views

remove rm command not working with wildcards on Mac OS X

I am trying to remove the below file for all user accounts through a bash script but the wildcard * does not seem to work. I have been testing the script locally by running it on mac os x terminal. ...
3
votes
1answer
41 views

Batch files to combine multiple files (that have parentheses in their names)

The background: I'm using IFTTT to pull DC Metro bulletins from their RSS feed into a text file for my BBS. The biggest problem is that IFTTT cannot overwrite or append to files, so I get multiple ...
0
votes
1answer
49 views

Copy Paste on Command Line Ubuntu on Virtual Box with Cygwin Terminal

What is a command line tool that enables copy paste text on ubuntu, also Is it possible to paste on Host machine that is copied from a virtual box, on a Cygwin terminal.
0
votes
1answer
25 views

I can't see apache, nginx process while using “top” command

As the title said: "I can't see apache or nginx process while I'm using top command" I'm using CentOS 6.5 and of course I already installed it on my server. I run them as a service by using these ...
1
vote
0answers
10 views

yast network settings: print or log

I'm trying to configure a static ip address on OpenSuSe but don't know how to log or print the network settings to the console with Yast. How do I print out the yast settings? I've been reading the ...
0
votes
2answers
23 views

Can gnu diff recursively compare only filenames in different folder structures?

I know that I can recursively compare two dirs with diff -qr and output only the differences. However, this appears to compare file positions within the trees (for example, /a/b/file01 != ...
0
votes
2answers
48 views

Executing Commands In Parallel That Never Finish

I'm attempting to run a few commands that never finish. These commands watch a directory and update files when they change. The idea is that I need multiple folders watched by different tools, able ...
0
votes
1answer
29 views

Execute “tar -cf” command from “send to” batch file to .tar.gz a file quickly

I installed the GNU tar for windows to speed up tar-ing files so I don't have to mess around opening 7zip twice to tar then gzip a file. To speed up the process even more, I tried to write a send-to ...
1
vote
1answer
15 views

Date command - adjusting the date works on my mac but NOT the server's shell

On my mac I can ask for the date in threes days time: Josephs-MacBook-Pro-3$date -v 3d Fri 3 Oct 2014 08:54:26 BST Josephs-MacBook-Pro-3$ but when I try that on my dreamhost server: ...
21
votes
1answer
2k views

Why does the “>” command in a Windows console not redirect all messages to a file?

I am trying to build a Scala project with sbt, so I run a command: sbt clean test > log.log Which means that any messages that the sbt tool writes to the Windows console should be written to the ...
0
votes
0answers
26 views

How To Enable Syntax Highlighting for Nano In Windows?

I am a huge fan of the nano editor, but I can't get the syntax highlighting to work in the windows version. Is it possible to have syntax highlighting in windows?
5
votes
2answers
708 views

Why does “ipconfig”not work in my windows 8 elevated command prompt? [duplicate]

Im needing to find my ipv4 address to make a server because my old one was on windows 7 then i upgraded to windows 8, which i now regret because i cant find my computers ipv4 address when i type ...
1
vote
1answer
32 views

Using the mv command with multiple wild cards

I'm still relatively new to Linux, so take it easy on a noob, eh? I have scripts set up to move media files to a specific directory based on its name. I used a wildcard to accomplish this, but I need ...
0
votes
1answer
21 views

Windows: send midi note over command line?

does anybody know of a way to send a simple midi note from the command line? I've checked out sendmidi, which works but I can't seem to recieve the send note and midicom, which doesn't work on 64bit. ...
1
vote
0answers
54 views

Unable to send files over 1 MB via FTP on Windows

I tried to send multiple files via FTP commands using simple batch script. It works fine when the file size is less than 1 MB but when the file is larger than 1 MB I get the following error log. ...
0
votes
1answer
50 views

REG DELETE command is not working on 64 bit OS

I'm using command below to delete a simple registry key which is not protected, I mean you can easily delete it using regedit GUI, so the permission is free and unlocked. reg delete TargetKEY /f ...
1
vote
0answers
49 views

Change playback device “default format” in Windows 7 from command line

How can I change the speaker's default audio format from the command line? I have an intermittent audio problem (probably from driver/sound card/motherboard incompatibility) that I can temporarily ...
0
votes
1answer
77 views

How can I copy a file from a usb drive to a directory on the hard drive in windows 7 using command prompt

How can I copy a file from a pen drive to particular directory on the hard drive in windows 7 using command prompt in quickly compare to ordinary copy paste. Scenario 1: need to copy the files from ...
0
votes
1answer
32 views

how to move folders to another folder in command line [closed]

I want to move everything in batch folder to previous folder including all folders in batch but this command only moves files, not folders move S:\Study\Study\batch\* S:\Study\Study\
0
votes
1answer
280 views

bcdedit.exe is not recognized… Win 8.1

I am running Windows 8.1, and when I tried to use bcdedit.exe (for the first time on this install) it told me that: 'bcdedit' is not recognized as an internal or external command, operable program, ...
0
votes
0answers
34 views

How to find the culprit of high sysload on NAS?

I have a QNAP TS-410 NAS, modest little ARM-based box. In the past the sysload of the NAS would be well below 0.5 for all load averages (1, 5 and 15 mins), it would only spike while sabnzbd was ...
1
vote
1answer
37 views

From the command line, how do I zip specific files and directories into one compressed folder?

I'm working in a directory that looks like this: folder >.git >css >img >js Archive.zip bla.html bla.yml During work on this project I very regularly have to zip up the ...
1
vote
3answers
42 views

How to move Documents, Images, etc. from windows command line?

In windows, I can move (change the location of) special folders / directories like Videos, Pictures, Downloads, Documents (ex. "My Documents"), etc. via right-clicking them, selecting Properties, ...
5
votes
2answers
473 views

LSOpenURLsWithRole() failes with error -10810 on Yosemite from within tmux

Trying to open an application from the commandline (terminal.app), inside tmux (installed through macports, version 1.9a), and getting the following result: $ open /Applications/Adobe\ Reader.app/ ...
0
votes
1answer
34 views

Perforce on Cygwin Prompts for a visible password

When I run the perforce login command in a cygwin shell running inside a mintty terminal emulator, the password prompted by perforce is visible--as I type the characters that make up my password, the ...
2
votes
1answer
22 views

I tried copying invisible files to a directory but I can't find it

I just did this: $ cp .cordova && ../../../ In Terminal (Mavericks). Totally forgot to include an actual path to a directory. I went back to the directory where I thought .cordova was ...
0
votes
1answer
26 views

ubuntu terminal — how to get back prompt after message that takes away prompt?

I'm doing something in terminal on ubuntu. I have a message like "please ask your system administrator to enable user sharing." Ok, great. Thanks ubuntu. But when I press enter, it goes to a new ...
1
vote
1answer
42 views

I changed my system path in system variables, how can I bring it back to what it was?

I've been trying to unlock my htc device's bootloader and I couldn't get a fastboot command from the cmd to work. I had tried everything and eventually I found this site which said that I just have to ...
1
vote
5answers
97 views

How to copy hidden (starting with a dot) files and subdirectories in linux?

How to copy hidden files and hidden subdirectories (the ones starting with a dot) in folder A to folder B? For example if I have this structure: A/a A/b A/.a A/.b/ A/.b/somefile A/.b/.c I would ...
1
vote
1answer
22 views

No output / stdout / feedback in mysql prompt on Ubuntu 14.04

I'm running Ubuntu 14.04 and Nginx, and I recently installed mysql-server while following Digital Ocean's LEMP stack setup guide (I intend to run a WordPress site with it). When I try to log into an ...
-2
votes
1answer
66 views

Prevent - “java” is not recognized as an internal or extenal command

The "java is not recognized as an internal or extenal command." is a fairly common problem. Note that I am not looking for a solution to this. If someone came here for such a solution, it can be found ...