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

How do you swap the primary mouse button via commandline in Windows 8?

I've tried RUNDLL32.EXE USER32.DLL,SwapMouseButton But it doesn't work, even when run as administrator. My goal is to make a .bat file that I can call via my fancy shmancy new mouse I bought that ...
0
votes
1answer
13 views

Which program provides “lpquota” command?

At many universities, you can buy a printing contingent which allows you to print out a certain amount of pages. At the Linux terminals, students can check their current printing contingent by ...
3
votes
3answers
140 views

how to select nth result on command line without using mouse

I got this alias for searching for a file recursively and case insensitive type fr fr is aliased to `find . | grep -i' and so let's say i'm searching for a file fr nsstring+util ...
2
votes
1answer
15 views

Executable lauches if called directly from terminal, but does not work when called from shell script

I have downloaded some software (called samtools) and it is stored in a folder on my desktop. Then I've added the path to the executable into the PATH environment variable. In other words my ...
-1
votes
0answers
17 views

How do I scroll/get to the last command on the command line

I use a command line tool for our product which spews out long json outputs. I'd like to get to the start of the output. Usually I do this by cmd+F and searching for '$ ', but I'd like to have this ...
4
votes
1answer
83 views

Force Windows use .EXE on PATH rather than CMD.EXE internal command

When I execute a command with the same name as an internal command, instead of searching in the path Windows simply uses the one found in CMD.EXE. For example, mkdir is an internal command built into ...
0
votes
1answer
28 views

Rename a file and add a part of the file as the suffix of the file [duplicate]

I have file names like: A_20141001_20141224.txt A_20141002_20141224.txt B_20141001_20141224.txt B_20141002_20141224.txt C_20141001_20141224.txt C_20141002_20141224.txt I want to rename them to: ...
0
votes
2answers
32 views

cmd prompt turned from window mode to full screen mode, please provide a solution

I was working on cmd and certainly I made changes in properties from window mode to full screen. Now every when I open a new window or existing one using win+r [cmd] I am only getting a full screen ...
-1
votes
0answers
15 views

How do i get the amount of GPU RAM used by a specified program in the linux terminal?

I am needing to find out how much Video RAM is being used by chrome, and other programs we are running in my office. We have nvidia cards on Ubuntu 14.04. I have tried using nvidia-smi but with no ...
0
votes
0answers
13 views

CMD - Successful or not indication?

Suppose I have some commands in a bat file : echo 1 copy existingFile1 c: echo 2 copy existingFile1 notExistingDrive: echo 3 attrib -r attrib notExistingFile Those are just demos of commands that ...
1
vote
1answer
25 views

bash script processing files with bad characters

I received a zip file with a folder structure that include parenthesis. I've worked through two processes at the cli and now merge them into a script The first searches through the file structure for ...
0
votes
2answers
25 views

Force Verbose Mode in Windows DEL Command

I sometimes delete masses of files on multiple computers with the Windows command line, with the DEL command, and on some the function is verbose (i.e. outputs the files it deletes as it goes), while ...
1
vote
1answer
29 views

Checking firefox version using cmd and gives error

On checking the version of firefox using firefox -v, I get the following error. (process:12746): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Mozilla Firefox 31.0 I ...
0
votes
1answer
30 views

How to full screen command prompt in a Virtualbox XP vm?

I am running a legacy DOS application in windows XP command prompt and I can't manage to show it full screen. As I saw, this is not only my DOS app, but every command prompt I open in Windows vbox, ...
1
vote
0answers
15 views

Interpolate File Contents Into Command Argument Used in Puppet Manifest

I have a SQL command that I would like to use as the value of a JSON node, which is a part of an index definition. All of this is passed as a command in a puppet manifest. I would like to ...
-1
votes
0answers
12 views

Undo redirecting user profile using junction

Custom built: Windows 7, 64-bit, SSD for OS, 6TB HDD. My SSD is for OS and main programs only. So far, I haven't had much trouble installing or moving additional software and files to the HDD. I ...
1
vote
1answer
22 views

Linux command line/app to compare sets of folders against one another

I have many photos organised in folders. I also have an "Uncategorised" folder for photos before they are organised. I've found that many (but not all) photos in Uncategorised have now been organised ...
1
vote
1answer
27 views

How to get different prompt look for root and regular user

My .bash_profile has different styles of prompt for regular user and root but in order it to work the .bash_profile should be reloaded every time I switch users. How can I achieve this? Can I make ...
0
votes
2answers
29 views

find /data/oozie-admi/ -type d -ctime +1 | xargs rm -rf [0] command deleted /data/oozie-admi/ folder

/data/oozie-admi/ folder contains multiple directories. This command find /data/oozie-admi/ -type d -ctime +1 | xargs rm -rf [0] deleted /data/oozie-admi/ folder . Need to find out scenarios in ...
-4
votes
0answers
44 views

How to create Windows batch file to perform these tasks? [closed]

I need to create a batch file that should do the following: Run another batch file in administrator mode (Run as administrator) Once above file is run, delete files/folders from certain directory ...
0
votes
1answer
31 views

How to install ffmpeg on OS X? [duplicate]

You can get the binary here http://ffmpegmac.net/ How do I install said binary to use it as a commandline tool. I have a mac, with mavericks. If possible, it would be nice to install it without the ...
0
votes
2answers
34 views

Command “find” -exec replacing string

I'm trying to find JPG files in a folder tree to execute the command "" to transform it to PDF. The problem is that the code I am running leaves the file in the same directory and I want to move it ...
1
vote
1answer
26 views

mkdir -p is “ambiguous” what should I do?

When I type in "mkdir -p" windows powershell spits out that the parameter p cannot be used because it is ambiguous, any idea what I am doing wrong? Thanks
0
votes
0answers
15 views

Insert blank lines when using 'tail -f' in cmder

I recently switched from Cygwin to cmder mostly due to it's awesome interface and all that cool pre-configured stuff. ( http://bliker.github.io/cmder/ ) I am using tail -f very often and when I am ...
-3
votes
1answer
31 views

How can I get a win 7 batch file to output a list of unique filename prefixes?

I have the following files in a folder MyDocuments 2014-10-10.zip MyDocuments 2014-10-09.zip MyPictures 2014-10-10.zip MyPictures 2014-10-09.zip Ideally I would like the output to show MyDocuments ...
0
votes
2answers
30 views

how to run a batch recursively

I have a parent folder (BIG_Folder), which contains many subfoldes (folder1, folder2, folder3 ...) in each subfolder a batch file exists, it is always the same (x.bat). I want to run all bats, ...
0
votes
2answers
21 views

How do I copy a file with accompanying symlinks in Linux?

Expected scenario: $ ls -lh /lib/libcurl.so* lrwxrwxrwx 1 root root 16 Mar 26 2013 /lib/libcurl.so -> libcurl.so.4.0.1 lrwxrwxrwx 1 root root 16 Mar 26 2013 /lib/libcurl.so.4 -> ...
0
votes
0answers
25 views

OS X: How to call “Service” through command line?

I'm looking for a way to call "service" actions (In Finder, I can right click a file and find them on the bottom of the menu, see below) Through command line, is there any way to do it? Thanks in ...
1
vote
1answer
18 views

Why executing “cmd /k” after connecting in a ssh server using putty makes the keyboard stop working?

I am using FreeSSHd in a Windows Server 2003 x64 and putty to connect to that ssh server from a Windows 7 x64 machine. In the "Remote Command" of the putty interface I put cm /k "cd c:\". Everything ...
0
votes
1answer
13 views

Type file content, pipe some actions and put result back

Is there way to do something like thas: cat somefile.txt | sort | uniq > somefile.txt I.e. I want to list entire file, then pipe some actions to its content and finally put result back to source ...
0
votes
1answer
20 views

Up arrow in gnome terminal to review command line history ignores commands with leading whitespace. Is there a workaround?

When writing python code (using gvim) I often keep complex command line commands for test cases saved in my docstrings. A common time-wasting error I make is copying the entire line from the python ...
2
votes
1answer
26 views

I have a batch file that echos multiple lines. I would like to output it into the file but the file only shows 1 line

This is what I have: SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION @echo off set num=0 set "suffix=" for /f "delims=" %%s in ('dir /b /a-d /o:gen') do ( if /i "%%~xs" equ "!suffix!" ( set ...
1
vote
1answer
25 views

How fix when cmd prints command instead of run it?

I am trying to automate chef setup for windows. So I wrote .bat according to this: call winrm quickconfig -q call winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"} call winrm set winrm/config ...
0
votes
0answers
17 views

Is there cli add on for windows explorer [duplicate]

Just like you can open chrome console under website, is there one for windows. There are things that you can only do in cli, and there are things which are far easier in gui of explorer. So is there a ...
0
votes
1answer
31 views

What does `-n` option in sed do?

This is the man page entry for -n: -n suppress automatic printing of pattern space I notice that when not using -n for certain operations, each line is printed to stdout (and the requested ...
-1
votes
0answers
11 views

HYDRA_PERMISSION_RESTART argument on running executable

Recently, I discovered strange behaviour on my mom's laptop. I tried to install Utorrent, when I tried to run the executable UAC prompt and dimmed the screen. Previously I set the UAC not to dim the ...
0
votes
1answer
33 views

How do I decode `mailto:` link to more readable form? [closed]

Is there a simple tool that just dumps the content of a mailto link to console? $ decode_mailto 'mailto:a@b.c?subject=qqq&body=www%20eee&' To: a@b.c Subject: qqq www eee
1
vote
1answer
62 views

What does %Path% mean at the end of PATH?

My PATH on Windows looks like this: C:>echo %PATH% C:\WINDOWS\system32;C:\WINDOWS;C:\dwimperl\perl\bin;C:\dwimperl\perl\site\bin;C:\dwimperl\c\bin;%Path% What does %Path% mean at the end of ...
0
votes
1answer
25 views

Batch file to search for a file, then delete that and the parent folder

Basically I need to search the folders within C:\Windows\ccmcache and search for adobe cc.msi and then delete the entire contents of that directory This is what I already have @echo off set ...
0
votes
0answers
27 views

Shell command shortcut using input filename as output filename

Hi could someone help me with a little command shortcut please? Im trying to run an ffmpeg command and was wondering if there was a shorter way to type it, Ive been reading up on parameter expansion ...
0
votes
0answers
11 views

Defining git commands on windows

I have a script that I use to add some functionality to git. For this particular case I cannot do it with an alias. The name of the script is git-cim. In linux if I place this script in my path and ...
0
votes
1answer
23 views

LFTP: SSH with private and public keys

I'm using LFTP in order to mirror SFTP server folder with local folder. But currently I'd be glad to correctly connect to SFTP server and list contents... I'm using Windows 7, and I've downloaded ...
1
vote
3answers
37 views

Bash script to find all folders containing a specific file and copy a new file to those folders

I'm trying to write a script that will loop through all subfolders of a directory to search for a specific file and then copy a new file to those folders that contain that file. This is what I have ...
1
vote
0answers
23 views

The Command “copy /b Source+,,” does not work in a Batch Script

I'd like to update the timestamp (Modified Date) of a file in a batch script by using the following command "copy /b Source+,," but it does not work. I tried the same command through command line ...
0
votes
2answers
51 views

Change Windows Desktop Background command line

Is there a command line option to change the Windows desktop background color? I want to set my desktop background to use Solid Colors (blue - rgb: 57, 109, 166) with no background image. The only ...
0
votes
0answers
8 views

Command Prompt set UTF8 not working after opening specific directory

I'm trying to automate opening up PSQL (PostgreSQL command prompt). I've got the batch program opening the correct directory however I'm not sure how to get it to run the command to switch to UTF8 ...
0
votes
2answers
24 views

Linux slightly different behaviour If we give '&' before io redirection '>' and after redirection

I was starting jboss recently in background in Linux and saw that if you run command as follows: nohup ./startjboss.sh > server.log & Output is : [1] 18835 [root@cnt5-01b downloads]# The ...
2
votes
1answer
56 views

Changing Visual Effects settings through command line

Is there a way to change/modify the Visual Effects settings via command line? For example, I want to control (enabling and disabling) on Animate windows while minimizing and maximizing option from ...
0
votes
2answers
26 views

How do I restore my command prompt/power shell to default settings?

I took a java class a few semesters ago, and in order to do things like compile the code, they had us modify a number of things. I wasn't paying attention to what I was changing and I no longer have ...
0
votes
2answers
46 views

giving permission to program to run with out confirmation in start command windows

I am using this start /b C:\wamp\wampmanager.exe command to start a program in my windows( Windows 7 Ultimate - 64 bit). But then the program want a permission to run Do you want to allow the ...