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)

3
votes
0answers
85 views

Is there a way to get the path of a bash script when used in the source command

I want to set an environment variable relative to the location of a script. I can easily find and set it for the duration of the script (test.sh): #!/bin/bash export MY_VARIABLE=$(dirname $0) echo ...
3
votes
0answers
100 views

Installing GNU mailutils on windows

I'm using Windows 7, and would like to use the GNU mailutils, specifically mu and mu4e. Unfortunately, these are not available as Cygwin packages. Is there any way to use GNU mailutils on windows ...
3
votes
0answers
1k views

Open a URL file in a new tab of existing IE window from command line

When IE10 is set as my default browser, double-clicking an internet shortcut (*.url file) opens it in a new tab of the existing IE window. However, when it is not the default, every way of opening a ...
3
votes
0answers
344 views

Shortcuts with command line arguments blocked with IE error - These files can't be opened

My local shortcuts (.lnk files) do not execute if the shortcut has any command-line arguments On freshly-installed 64-Bit Windows 8 Shortcut worked fine on Windows 7 32-Bit It depends where the ...
3
votes
0answers
382 views

Change icon positions from the command line?

Is it possible to use the Windows command line to get or change the positions of icons the screen? For example, I can drag and move a file's icon on my desktop. How would I retrieve that position ...
2
votes
0answers
20 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
0answers
158 views

Specifying printing options to libreoffice on the command line?

I'm attempting to come up with some means of converting .pptx files to a pdf format from the command line. I have set up a cups-pdf printer to which I can actually send jobs, and so far I have it ...
2
votes
0answers
333 views

Is there a automatic way to extract highlighted text from pdf?

Is there a command-line solution to extract highlighted text from pdf? I have a bunch of pdf documents where I personally annotated, and was wondering if there is a convenient way to automatically ...
2
votes
0answers
42 views

scp doesn't work when my .bashrc is echoing to console

Ok, so I have used linux for a long time but this is the weirdest thing I have encountered in a long time. Maybe I just don't do a lot of scp so probably missing something simple here. So in my ...
2
votes
0answers
92 views

Coloured commands in terminal prompt

I've customized the prompt in my Mac terminal like this: export PS1="\[\e[31,1m\] \w $ \[\e[0m\] " This way I get the /working/directory $ in bold red, but I also want to get the command I execute ...
2
votes
0answers
26 views

Is there any command-line to change my network mask in Windows shell?

I have not been able to find nothing on the netsh command shell documentation for changing only the netmask configuration without modifying rest of it (ip, gateway, DNSs and so on). The closest I know ...
2
votes
0answers
93 views

Downloading and building O3D

I'm trying to get a program called O3D into my computer by following the instructions on O3D's wiki. I tried to download the project to my directory but the prompt gave me this answer: gclient is ...
2
votes
0answers
175 views

How can I get millisecond-level accuracy timestamps on screenshots (vlc)?

I'm currently using rt.exec("C:\\VLC\\vlc screen:// --dshow-vdev=screen-capture-recorder --dshow-fps=10 -I dummy --dummy-quiet --rate=1 --video-filter=scene --vout=dummy --scene-format=jpg ...
2
votes
0answers
335 views

Rsync fails for files that start with underscore when destination is zfs

I'm using rsync3.1.0pre1 on Mac OS X 10.8.5, and am trying to rsync one folder to another. The destination is a ZFS volume mounted via SMB. The problem I'm having is that files that start with ...
2
votes
0answers
110 views

How can I use bitcoind from the command line on OS X

Apparently bitcoind should be bundled with Bitcoin-QT which I have installed, but I can't find it?
2
votes
0answers
539 views

telnet on Windows 8: even after installing still an unknown command

I installed telnet by going to -> Control Panel -> Turn Windows Features on/off -> checked "Telnet Client" Reopened a cmd window. Still the same result: 'telnet' is not recognized as an ...
2
votes
0answers
212 views

Preventing Windows Update from updating a certain driver via command line/script?

I work as a part-time system administrator and recently (in the last few months), we've been experiencing BSODs on almost all PCs in our group. We do know that most of these BSODs were caused by a ...
2
votes
0answers
120 views

Open in Command line doesn't work anymore since the last windows update

Since the last Windows update (2013/11/12), this doesn't work anymore on Windows 7 64bit: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd] @="Open cmd ...
2
votes
0answers
308 views

Error 10053 using composer

I need to use Composer in my wamp server on a windows 7 machine but I keep on getting a 10053 error. For example when I try to install laravel I get the following message: ...
2
votes
0answers
90 views

Is it possible to check which stream is used by the command? (bash)

I have an irritating problem: redirecting stderr does not work. I get: iptables: Chain already exists I can't be bothered to check if a chain exists already (pointless, iptables just throws an ...
2
votes
0answers
163 views

Bash: color prompt and command differently from output stream

I'd like to color the prompt and command of my shell differently from the text printed in the output stream. My current export for PS1 is as follows: export PS1="\e[0;36m\h:\e[m ...
2
votes
0answers
62 views

Launching Sublime Text 2 on the command line doesn't result in opening the specified file

When I type subl ~/.profile I expect Sublime to open my .profile file. This works with some files, although I couldn't find a pattern to which files. Is this a bug in Sublime or have I done ...
2
votes
0answers
159 views

Dummies guide to mailutils

As a prelude to learning more about postfix and dovecot (as a pure hobbyist) I'm trying to understand the mailutils package. I'm using Davmail so I have the server set up at localhost and my ...
2
votes
0answers
493 views

Start/stop services from command prompt under non Administrator user, but belonging to administrators group

I have a WIN7 computer with user which is in Administrator group. Let's call it MyUser. UAC turned ON. I have several services launched under local system. When I'm trying to start or stop these ...
2
votes
0answers
179 views

Terminal Command to Check if Mac Book Pro Lids Closed

I'm running OS X 10.8 (Mountain Lion). I was wondering if there was a terminal command to check if the macbook pro's lid is currently closed. The reason I ask is because I have cron jobs scheduled ...
2
votes
0answers
371 views

How to reload windows color settings after change of registry key?

I've got a little question regarding the color settings in windows 7: Via Desktop-Right-Click -> Personalize -> Window Color -> Advances Settings I'm able to change the color of the selected items. ...
2
votes
0answers
94 views

Binding .inputrc on Mac?

On Linux I had this line on my .inputrc: "\C-/": undo which doesn't work on Mac. Is there a way to make it work? On another note, is there a way to bind command keys on inputrc?
2
votes
0answers
350 views

Windows Command line way to get network usage of a process

I would like to get the network usage (in bytes or KB) of a specified process through the Windows command line (I'm using Windows 7). Also if its possible to get a list of all running processes with ...
2
votes
0answers
53 views

Using the heap command line tool

I am getting a crash while using libgmalloc and I get a complain which says something like Failed to VM allocate XYZ bytes Explicitly trapping into debugger!!! Now I when I encounter this ...
2
votes
0answers
2k views

TrueCrypt Command Line: Dismount by Volume Name?

Considering the command: TrueCrypt.exe /q /e /v "dummy.tc" 1: Is there a way to dismount dummy.tc from the command line WITHOUT knowing its drive letter? 2: Is there a way to discover, after this ...
2
votes
0answers
634 views

Chrome: How to refresh tab if open, otherwise open new tab?

I'm opening a .pdf file from the command line in Chrome (Windows 7 64 bit). Every time the pdf file changes open the pdf to view it, but I don't want Chrome to open it in a new tab every time. Is ...
2
votes
0answers
298 views

Which command line text editor has the closest keybindings to Notepadd++, Gedit, or Kate (or any modern CUA style editor)?

I'm looking for a text editor that has an amazing common user access (CUA) mode (or can be configured to have it) that resembles closely modern editors like Notepad++, Gedit, Kate, Sublime, etc. I've ...
2
votes
0answers
176 views

read unix config file from CLI

I need to access a configuration file from a Makefile, and thus seek for a short-readable-maintanable way of doing. The file is a python ConfigParser compliant file. #foo.cfg [foo] bar = baz I use ...
2
votes
0answers
631 views

Command line switching

I have read through some suggestions but I am just not technical enough to get this I think. I am a CAD designer and each file has 5 files associated with it. I have 3 sets of 5 files, and each set ...
2
votes
0answers
256 views

Script to join WPA2 Enterprise wifi

When I head to work with my MBP running OSX 10.7, I have to go through this series: Join Other Network Enter SSID select Security = WPA2 Enterprise generate a pw via my RSA soft token Join ...
2
votes
0answers
242 views

Getting return code from tee on windows

tee is a slick little utility that allows piping output to a file as well as stdout (the console). Windows ports for tee exist (wintee, gnuwin32's tee, etc), but all the ones I've tried have the same ...
2
votes
0answers
508 views

How to downmix 6-channel DTS to stereo from the command line?

I tried command eac3to.exe src.dst dst.wav -down16 -down2 (v.3.24) but it just re-produces the same 6ch audio without any warning. Operating system: both Windows 7 and Ubuntu. Update: See a solution ...
2
votes
0answers
1k views

command line remove read only flag on all subfolder entries or overwrite read only files with robocopy

I need one of two things to work: I use robocopy to copy all sub-files and sub-folders from one folder to another, and the destination contains older files + files not in the source, and I need the ...
2
votes
0answers
246 views

forslash as the default path separator in windows?

Since windows now accept the forslash "/" as a path separator in addition to its default backslash path separator, so that both c:\windows and c:/windows are valid paths (though the former is ...
2
votes
0answers
107 views

Query value of button with current focus (together with xdotool) from the command line

I am using xdotool to automate some GUI usage. That works pretty well, but sometimes I want to check what button currently has focus. So I need to query the value of that button. xdotool doesn't seem ...
2
votes
0answers
344 views

Is there a command line interface to the Drobo tools in Windows?

Before powering down the Drobo and removing it you're supposed to use the "shutdown" functionality from the Drobo Dashboard. Is there a way to call this from the command line so it can be included in ...
1
vote
0answers
8 views

Is there a command line tool to run carbonite's “back this up”?

Is there some way to say "Back this up" to Carbonite on the command line on Windows? I know I can do it through explorer and the right click window, but I'm bit of a scripting fiend. I'm only trying ...
1
vote
0answers
26 views

Windows Script Issue - Works line by line, not as run.cmd

The following lines of code work perfectly for what I am wanting to do if I copy/past into CMD/DOS one line at a time. However, if I put all the code into a run.cmd file and run the file, it appears ...
1
vote
0answers
21 views

php is not recognized as an internal or external command although it is available in commandline

this is somewhat of a tricky question when it comes to "where should I place it?", but I assume a general problem behind it, which is why I am putting it on superUser. I have a Doctrine script which ...
1
vote
0answers
34 views

Is there a simple command line UPnP AV Control Point?

I am looking to implement a Glorified Internet Picture Frame at work. The goal is to show a 4k picture on our wonderful 4k television, with all pixels intact, from a network-accessible source which is ...
1
vote
0answers
41 views

Linux command-line utils with built-in support of multithreading

I would like to be able to compare performance of multicore computers from a point of view of a user who performs typical day-to-day tasks in Linux. My current goal is to collect a list of compute ...
1
vote
0answers
56 views

allow sudo user to execute multiple commands for only ONE file

I'm trying to allow only one user to be able to use only 'cat,head,tail' on some of the log files. What is the exact syntax to use here. I tried user ALL /bin/cat /var/log/maillog Which works ...
1
vote
0answers
35 views

How to set up a multi-user text mode in Debian wheezy 7.6?

I'd like to set up one of the available runlevels to work as a 'multi-user text mode' runlevel. Such mode available e.g. on CentOS. Another example of what I need would be what you get when you add ...
1
vote
0answers
34 views

Appending filename and path in Batch file

I'm having a hard time learning how to use command lines and the using batch files. What I want to do is write a custom path and then add the filename so that the output could be saved there. This ...
1
vote
0answers
20 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 ...