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
1answer
26 views

How to show a caret-C in canceled command line in zsh, like bash does?

When I'm in the middle of entering a line to my shell of choice, and change my mind, I can quickly throw C-c and start afresh. Under bash it looks like this: user@machine:~$ rm everything^C ...
0
votes
1answer
67 views

Find highest possible screen resolution from command line

With Powershell, I can request the current screen resolution. this is not what I'm trying to do. I'm trying to find the maximum resolution I can set the screen to (slider all up). Is this even ...
0
votes
1answer
32 views

How to resume execution after pressing pause/break key in windows command line

Whilst compiling a rather huge python extension in cmd with the command pip install. I wanted to pause and look at some of the output, so I pressed the Pause / Break key on my keyboard. Pressing ...
0
votes
0answers
8 views

Tab complete setsid

I regularly use setsid to open a program as a separate process, however it doesn't use tab completion so I end up writing the full program name. Is it possible to add tab completion to setsid? Has to ...
0
votes
0answers
47 views

Running application using cmd.exe while inside the console in Windows

I have an .exe application. When I run it from the console in Windows 8.1 by executing a command C:/Path/To/My/App/MyApp.exe it starts and works just fine. But I need to run it through the cmd.exe ...
0
votes
0answers
42 views

OpenWRT swconfig; how issue command from loaded module?

I have insmod swconfig.ko and in this link: swconfig It is explained how to use >the< swconfig command as, for example: swconfig list VLAN 1: info: VLAN 1: Ports: '12345t', members=003e, ...
0
votes
1answer
41 views

Can grep show context, but not a full line?

I have a file with several very long lines. I want to grep for a string which may occur several times in the file, including possibly more than once on the one line. $ cat 2014-11-03.json | grep 218 ...
-1
votes
2answers
46 views

How to lookup a public IP address and write only the IP address to a text file?

I have looked and found the following line of code which works fine but when run in a batch file nothing happens. for /f "skip=4 usebackq tokens=2" %a in (`nslookup microsoft.com 8.8.8.8`) do echo %a ...
2
votes
1answer
71 views

Reverse bytes of a file

Is there a program or CMD command with which I can simply reverse or flip all the bytes of a file? For example if I have a text file (as a simple example) that says "Hello, world!", the ...
0
votes
0answers
14 views

No commands work in Command Prompt (Windows 7) [duplicate]

Any command I type into command prompt say (blank) is not recognized as an internal or external command: ex- 'help' is not recognized as an internal or external command, operable program, or batch ...
0
votes
1answer
39 views

Spell check in the Bash CLI

Is there any way to do a spell check on the Bash CLI? I tried doing Ctrl-X Ctrl-E to edit the command in VIM but for some reason I could not set set sp in that VIM session. I'm using Kubuntu 14.04.
0
votes
2answers
50 views

How to view serial com ports but not through device manager

How would i go about viewing a list of COM ports in use without the use of device manager? I don't want to install any software either. Is there a possible way to do this through the command line?
0
votes
1answer
12 views

pv: Change Prefix on the Fly

To me pv is really handy some times. However, I was wondering if it was possible to change the prefix on the fly. I mean usually I have something like in.sh | pv -btrcN "Watch that work!!1!" | ...
0
votes
2answers
35 views

How to mass prepend text from filename into multiple existing files

I have files with the following name GB_20141001 JPN_20141001 GB_20141002 TH_20141003 I want the date at the end of file name to prepended to its content. The content of each file may look like ...
0
votes
0answers
53 views

Encoded mp4 video won't play in Firefox v33

When this video is encoded with the following ffmpeg command, it cannot be played in Firefox v33 (a blank screen appears). But when I play it in the native VLC player, it works. So here the long ...
-1
votes
1answer
45 views

Delete an ordinary shortcut on my desktop using command prompt

I am just learning command prompt. I want to delete a shortcut on my desktop using command prompt but it says the file could not be found. The path and other things are OK. The shortcut is orbit ...
0
votes
0answers
31 views

powercfg gives invalid parameter error

I am trying to run powercfg according to these site: http://ss64.com/nt/powercfg.html To be exact I want to run this command via .batch file Set _Custom_Power=B1234567-SS64-SS64-SS64-F00000111AAA ...
0
votes
0answers
34 views

Windows path and semicolon

In Windows 8.1 I have an environment variable LATEX equal to C:\Program Files\MiKTeX 2.9\miktex\bin\x64 and the path variable set to %JAVA_HOME%\bin;%ANT_HOME%\bin;%LATEX% The problem is ...
0
votes
0answers
42 views

Connectify v/s command line hotspot creation in windows

I just want to know that if there is some difference b/w creating a hotspot using Connectify and creating the same using CLI in windows (I use win 8). I observed that success of connecting to hotspot ...
0
votes
0answers
23 views

Linux - recursively zip files into cbz files based on folder and move to a new directory preserving structure

I'm trying to figure out how to write a script to automate creating .cbz files from images in folders on LINUX. I have found this solution for OSX in Recursively zip files into .cbz-files based on ...
1
vote
2answers
25 views

Linux: not able to see all options for `tree` command

I'm trying to list the contents of a directory recursively and in color using the tree -C command. However, my shell reports an error and it displays an info-entry for sed instead. The tree command ...
1
vote
1answer
36 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
92 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
77 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
92 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
31 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
459 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
83 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
34 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
55 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
37 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
58 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
31 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
24 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
27 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
73 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
58 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
24 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
57 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
34 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 ...