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

How to make MinTTY not to close on Ctrl-C?

I would like some servers, like MongDB, inside terminal under Windows. Standard Windows terminal is very rough, so I tried MinTTY from Cygwin. I found it works fine except one thing: it closes itself ...
1
vote
2answers
15 views

How to subtract values from a numeric string, in Windows command line?

In Windows command-line I can print the year of the current date by doing this: echo %date:~10,4% result: 2016 Of course, depending on how dates are displayed in your language you need to change ...
0
votes
0answers
6 views

How to change volume while using “duplicate” to “display” in VLC?

While using VLC on Windows, I want to listen to online OGG audio stream in real time and simultaneously save the stream to file. After some research and experiments, I came up with the following ...
0
votes
1answer
10 views

Procmon command line does not save filtered output

I am using procmon command line. procmon.exe /Quiet /Minimized /Openlog C:\Python27\code2\logs.pml /LoadConfig C:\Python27\code2\pmc.pmc /SaveAs C:\Python27\code2\output.csv After running the above ...
0
votes
1answer
19 views

How to pipe output of active stream to other commands

I'm trying to pipe an active stream to another command (maybe a bash script), but it always wants to wait for the entire stream to finish before it processes the command. s.g. I can do this: tail ...
0
votes
1answer
12 views

Command line (Windows) to update same xml file with trim

Currently I am using a curl command to grab data output to a text file and trim top 14 line away, convert the file to abc.xml @echo off call :sub >output.txt exit /b :sub c:\curl -X GET ...
0
votes
0answers
6 views

Is there a way to get real time stdout and stderr from a process spawned by psexec on the same streams (pipes) as psexec

My question is very close to this question here with an additional constraint related to time-outs I'm using Jenkins to start some automated testing and then to capture the stdout (and stderr) of the ...
0
votes
0answers
10 views

Email with Lotus using cmd with multi lines in body

how do you make a new line in "body" with cmd ? I'd like to do something like "lotus.exe" mailto:someguy@someaddress.com?subject=title?body=Hello[carriage return]body text[carriage return]other ...
1
vote
2answers
28 views

windows admin command prompt find file by name

I know I have a file named Foo.bar somewhere on my Windows computer. I want to open an admin command prompt, and with a few commands, find the file. Hopefully without disabling UAC, opening other UIs ...
0
votes
1answer
20 views

Listing folders in CMD which does NOT have a specific subfolder

I've an issue where i need to locate all folders on a drive which does NOT have a folder in them called "Arg".. I know how to do it in reverse using DIR, i.e to find all subfolder with a specific ...
-2
votes
0answers
15 views

Batch file and environment variable [duplicate]

I try to use 7-zip in a batch file. I added C:\Program Files\7-Zip on my system PATH var When I launch a console and try to use the command : 7z. It works Once used in a batch file, I does not work ...
0
votes
0answers
2 views

I can't find how to clear led alarm in juniper

How can I clear led alarm in my juniper after problem has been resolved? I find the command "clear led alarm", but in my CLI I have only: root@EX2200-2501-03> clear l ^ ...
1
vote
0answers
26 views

Can't get symbolic links to work with the mklink command in cmd

I'm trying to create a symbolic link in cmd (yes, I have admin privileges) like this: mklink /D "G:\test" "C:\test" The command runs without issue: "Symbolic link created for G:\test <==> ...
0
votes
0answers
10 views

Time Machine external backup hard drive not showing on other pc [on hold]

My hard drive doesn't show in other computers. How can I solve that problem, preferably in terminal.
1
vote
1answer
15 views

How to download files matching a particular pattern from ftp command line

I am accessing ftp through command line and trying to delete all the files matching particular pattern. But seems it does literal match than regex match. Can somebody suggest anyway that we can do ...
2
votes
1answer
28 views

du is giving me inconsistent results depending on argument order

I'm running Darwin (Mac OS X 10.11.2 - the current version of El Capitan) on my Mac Book Pro, but this is about a standard command line utility, du. I am getting inconsistent results from du: 21:19 ...
0
votes
0answers
35 views

Copy Files based on different file name [on hold]

I would like to keep two different folders in sync. I was thinking of going with Robocopy with the /XO flag, however, the files are renamed when moved to the second folder and cannot be compared. I ...
1
vote
1answer
24 views

Windows cmd copy directories and content recursively if the files do not exist

The question fits in the title: I want to copy from local storage to a network storage directories and thier contant, but only the new or updated files with no prompt. My idea would be to use xcopy ...
0
votes
0answers
12 views

Is there a way to apply preferences in firefox without restarting it

Instead of using manually about:config I want to be able to change firefox settings from command line (in linux). For this the only way I know is to change some lines in user.js (just as in my answer ...
0
votes
2answers
22 views

RDP logout using bat file

Using Windows 7. When I RDP to a PC I'd like to be able to logout of the session without the screen reverting to a Ctrl+Alt+Del Login screen. The PC's in question are kiosks running Chrome in full ...
0
votes
1answer
26 views

sed align all lines to last line in a file Bash script

I have a files with below lines Dev_Campaign_1873.rpm Dev_Campaign_1987.rpm Dev_Campaign_9876.rpm http://52.30.241.107:8081/artifactory/api/storage/adifact Trying to get the output to a file as ...
0
votes
0answers
14 views

Time command execution with real time updates

Generally I use time myCommand to know how long does it take to run myCommand. I was wondering if there's a command that also shows how long it has been running so far on real time. Something like: $ ...
4
votes
0answers
43 views

Understanding wifi scan results

I'm working on a script to tell how secure a wifi connection is. Unfortunately I've become stuck pretty early trying to decode the output of the scan - can anyone help me understand what this is ...
1
vote
1answer
31 views

How to construct a proper command string in bash? Quoting issues, I think

I have a very newbie question, I am sure. I am trying to construct a script to edit the internal EXIF timestamps of a number of JPG photo files, using the commandline exiftool utility. My actual ...
1
vote
1answer
25 views

files dissapear when I run mv command

I use the below command to move files: mv *.gz directoryname but directory name has spell mistake and the file with directory name has been generated with unknown format. And I lost my file. How ...
0
votes
0answers
7 views

mitmproxy ignore all websocket connections

At the moment, mitmproxy doesn't seem to be able to handle websocket connections. How can I just pass these on so that clients can still connect with a websocket server? Here's my current command: ...
1
vote
1answer
18 views

Terminal: cp -r with directories with same name and different case

I'm trying to copy around ~250Gb from one drive to another. Catch is that the destination drive is formatted in NTFS or FAT or something and isn't case-sensitive, and I've got folders I need to copy ...
1
vote
0answers
13 views

How to disable or enable policy setting using CMD or using registry editor?

I want to known how to enable or disable group policy setting via cmd or registry editor.
0
votes
1answer
14 views

Cannot launch app minimized with /minimized

For whatever reason, AMD Gaming Evolved (Raptr) is dying randomly (ticket has been submitted). I made a task schedule that automatically launches Raptr every hour with this action: "C:\Program Files ...
0
votes
1answer
18 views

Run several processes in cmd window with ConEmu

I'm using ConEmu with Windows 8.1. I need to write a BAT-file, which will run ConEmu and open several cmd-shell tabs, running a process in each of it. Right now my file looks like this: start ...
0
votes
0answers
19 views

Display Toolbar in Command prompt Windows XP

in windows 98 there was an option in properties to display a toolbar for command prompt.When using windows XP i cant find this option. I need that toolbar because it allowed me to copy text from ...
0
votes
1answer
33 views

Open a movie with VLC from command line via SSH

I have a linux machine connected to the tv and being the lazy person I am, I would like to sit on my laptop, SSH into the linux machine and play a movie in full screen. I've tried running the command: ...
0
votes
1answer
44 views

How to know if someone else is logged to a remote shared PC?

In the company I work for, there are some shared PCs where people can log to remotely. It's boring to ask first who is logged in before login to it yourself, just not to disrupt others work. With ...
1
vote
1answer
18 views

Looping through wildcard folders and executing multiple commands in Bash

I have a set of commands to change the contents of files called MenuSettings which work fine when directed to a folder. cd /Applications/snowflake/table-updater/Testing/Applications/Salford_100 sed ...
0
votes
2answers
32 views

Copying and renaming of .xlsm files using batch

Its glad to be here and i am really excited n new to batch scripting. I have been using a batch containing below for copying an excel from one folder to another { @echo off cp -r ...
0
votes
0answers
17 views

When drive mapped on a windows machine from remotely by using “net use” command, shows unavailable status

I am trying to map a share directory on remote windows machine by executing "net use" command with admin credentials, however the directory is getting mapped and showing status as unavailable. ...
0
votes
0answers
31 views

Keyboard/mouse layout changed and weird commands in logs. Was I hacked? (OSX)

Edit: Looks like my colleagues had some fun. False alarm. My work computer is running OSX Yosemite 10.10.1. I noticed my keyboard layout was changed to Dvorak and my mouse direction reversed when ...
0
votes
2answers
28 views

How to pass parameter in linux command at the end of the line

I would like to pass a parameter at the end of the line while I am giving a command in terminal. So I would like something like the example below find /path/to/directory -type f -exec grep -irl ...
0
votes
2answers
54 views

Running a command as an administrator with Runas.exe [duplicate]

I've read several threads about using the runas.exe command to start an elevated process. However, when I type try to use the command runas.exe /user:BruceWayne\Administrator cmd.exe, the Command ...
0
votes
0answers
14 views

Command prompt “emulator” not searching PATH

I've made a cmd file to run at the school computers for things like Remote Desktop, instead of creating a new file just to type mstsc. The school computers do not allow you to open the command prompt, ...
0
votes
3answers
36 views

Batch file to run programs as admin - error 740

I am working on a small batch script that elevates basic windows programs to run as administrator. All of the functions work fine but I have ran into a problem when trying to run "regedit.exe". When ...
1
vote
1answer
29 views

Execute an SSH command with the Apache2 www-data user

I'm working on a virtual machine project where I use two servers, let's call them server A and server B, both with Ubuntu 14.04 LTS installed. Server A runs web server Apache2 with a website where ...
0
votes
0answers
23 views

From command line how do I change password [duplicate]

HP 110 desktop with win 8.1 where owner of standalone workstation has forgotten password. I have hacked into cmd prompt but don't know how to change password of account that has administrator ...
0
votes
1answer
24 views

How to overwrite an echo/printf line with another one? (Making it start at the center of the screen)

I want to write a script which outputs sentences I choose. I want them to appear in the center of the screen: output the first one, and then make the second one appear over the first. Here's my code: ...
3
votes
1answer
19 views

How to prevent opening same program on terminal server by the “same user” with command prompt?

I have several users that use Remote Desktop App (Server 2008) and when they open the .BAT file I have created, it opens up two programs...however, I need to prevent the same program (in this case ...
2
votes
1answer
45 views

Batch Script to Bulk Rename Files - Strip off Parenthesis and all Characters between

I wish to rename a group of files in a particular folder in such a way that everything between and including the parenthesis is erased. For example a file with the name of: "78 Tax Tips for ...
0
votes
0answers
16 views

Composer not working on command prompt Windows 7

I installed composer via composer windows installer and it installed to the path C:\ProgramData\ComposerSetup. The composer.phar file is in the bin folder in the directory. ...
0
votes
0answers
25 views

Autorun a bat file after a predefined inactive period

Is there a way to auto run the following command after a predefined inactive time? manage-bde -lock G: This DOS command activates the bit lock on windows on a removable G drive. I want preferably ...
0
votes
1answer
18 views

Alias command from terminal that opens a new terminal on a specific folder

I have this command already working in my .bash_profile: alias mysite='cd /Applications/sites/mysite;pwd; php artisan serve --port=9000 | open http://localhost:9000 | open -a Finder ./' So it: ...
0
votes
0answers
16 views

change letter directory for boot drive CMD

I some how messed up my boot directory. Can some one please explain to me in lay terms how to reset the root directory for my boot drive using CMD in boot up of windows 10. I have been finding info on ...