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)

-4
votes
1answer
24 views

How to use command line to stop application from another pc

I have 32 clients are running on MS Windows XP numbered as GON1NU01 to GON1NU32. I want to stop application from command line to stop all or selected clients "App_Stop_All". What command should I ...
1
vote
2answers
38 views

Can't change network password from command line

I have a previous question relating to how one can change a password of the 'bottom' client when recursively logged in to multiple RDP clients: Change Windows password when in multiple RDP One ...
0
votes
2answers
50 views

Ubuntu 10.04.2 LTS backup server only starts up in command line

Basically i'm helping out at the offices where family works. They have this backup server computer - which is running Ubuntu 10.04.2 LTS - which they apparently in the past could just turn on and then ...
0
votes
1answer
32 views

How to enable writing to C drive from Dos App?

I know it's a bad idea from security perspective. But it absolutely has to be done. Problem: Windows 7 Home Premium x64, needs to run a DOS app that writes an output file to C:\ The app runs fine, ...
0
votes
0answers
14 views

posh-git not reading my profile

I'm using posh-git (part of Github for Windows). I want to set a custom prompt as in this question. However, posh-git is not reading my profile file. I have tried: Running PowerShell as ...
0
votes
1answer
18 views

Changing the Accept header for a session with Chrome

If I want to change the user agent string for an entire session, I can start Chrome from the command line with the user agent switch, e.g. open ~/Applications/Google\ Chrome.app --args ...
0
votes
1answer
80 views

Special key sequence to run cmd at Windows lock screen

I'm aware of the hack where you can copy cmd.exe to the program that launches the sticky keys GUI, thereby giving you command line admin access from the windows lock screen after pressing Shift seven ...
1
vote
0answers
182 views

Can Not Start Glassfish 4.1 Server, Download, Unzip, Install, Windows 8.1

Before I start I wanted to say, I have to put a space in many of the links because I am new to superuser & have restrictions. You'll find the spaces http:// (HERE) localhost:4848/. I'm sorry for ...
0
votes
0answers
13 views

VirtualBox command-line - setting up port forwarding

I know how to configure NAT-based port forwarding using the VirtualBox graphical interface (as in the example below). How can I do the same via the command line?
1
vote
2answers
62 views

Extract Specific Fields from a Multi-Lined Text File via batch-file (.BAT)

I am new to batch-program and my wife asked me to help her to speed up her load. Question is, how will I extract the business date, terminal num(00099106), transaction amount, and commission from this ...
0
votes
1answer
11 views

TYPE the contents of all the E**01 files in the a folder and redirect in command prompt

Sorry learning command prompt and need assistance. Is there a command for: TYPE the contents of all the E**01 files in a folder and redirect the output (>) to create a file in the "expenses" folder ...
1
vote
1answer
59 views

Robocopy Log File Meaning of New File, New Dir

I've been learning and using robocopy a lot for the last few weeks. One thing I have not been able to find is good documentation on the terms used in the default log file. There is no header row in ...
0
votes
1answer
31 views

copy files from C:\ to another location with four characters or less

I need to copy the files with filenames that have four characters or less and .TMP extension into a folder. Can this be done with one command if they are in one location?
1
vote
0answers
71 views

How do I install Nix on a custom directory?

I have been trying to follow the Nix wiki to install Nix on a custom path /scratch/gopinath/nix. The /nix path is not accessible to me due to the restrictions on the system provided by my university. ...
3
votes
2answers
95 views

Command Line : Concatenate multiple files by date

I have got a plenty of .txt files in a directory. The directory also contains .png and some .pdf files. I have successfully concatenated .txt files using this command : @ECHO Off SETLOCAL for /r %%f ...
1
vote
0answers
23 views

Different WiFi signal strengths on different commands

I'm connected to a WiFi network AIRWOLF. The two following commands on Windows 7 show different signal strengths. Why? netsh wlan show networks mode=bssid netsh wlan show interfaces The ...
0
votes
2answers
44 views

How to connect to internet using “rasdial <connection name>” method in cmd

I am able to directly connect to internet using network connection interface shown below but I'm not able to connect to the net using cmd. with the following code. rasdial "TATA PHOTON+" ...
0
votes
2answers
30 views

Windows Batch File to move contents based on file type

I was figuring out a way to manage my downloaded files from chrome.I want that my pdf file should save in ABC directory, audio file should save in XYZ directory etc.I thought a way to do so through ...
1
vote
1answer
40 views

Can robocopy show the console and create a log file?

I'm working with robocopy for the first time and have got most of it figured out and working well except logging. I have experimented a bunch and if I run my job like this: robocopy /xc /xn /xo ...
1
vote
2answers
18 views

How to add the filepath to a specified line of a file using bash script?

I have the following bash code: echo "Enter an input path" read -e input_path OLDTEXT="\put(0,0){\includegraphics{/" NEWTEXT="\put(0,0){\includegraphics{$input_path/" find . ...
0
votes
1answer
39 views

Older History of commands linux

I want to check history of commands on my linux server that dates 1month and 4 days old, but the history is showing up to 1 month only (I was late checking it earlier). I know the ' History ' command ...
-1
votes
2answers
83 views

How to use,run cURL tool with Android Studio on windows environment? [duplicate]

What is better way to use cURL tool with Android Studio 1.1.x on Windows? because there is no proper information in official site for client tools on windows environment. I tried to download from ...
0
votes
0answers
53 views

Windows Batch file nested IF statement running both IF and THEN

Not sure why this nested IF statement won't work right. I can't find any issues with it. The Last code block actually works properly, not sure why the first one doesn't. The first script is running ...
0
votes
1answer
23 views

How to list all installed and uninstalled optional Windows components on command line?

Optional components in Windows are, for example, IIS, telnet server/client, SNMP, etc. In Windows 7 GUI they are installed through Control Panel -> Programs and Features -> Turn Windows features on or ...
1
vote
1answer
15 views

How to untar an archive without the root folder, but keeping the full hierarchy inside it?

If I’ve got a .tar archive, and when I extract it, it gives me a single folder foo containing some more stuff, like this: foo/ something.txt another.txt bar/ something-else.txt Is there a ...
0
votes
0answers
40 views

Powershell not recognizing Commands

I'm a beginner in PowerShell, I've been working with it for a little while, but suddenly it started not recognizing some commands, for example , typing the Command Set-Location, generates this error : ...
0
votes
1answer
39 views

How can I prevent a command run in cmd from opening a new cmd window OR how can I keep that window open?

I want to run some commands from a cmd window. Currently, they open a new cmd window which closes immediately. This is unfortunate, because I would like to read the output of those commands. I have no ...
0
votes
3answers
42 views

Batch File to show a Directory List excluding Directories that Start with Underscore “_”

I am throwing together a batch file that will echo out a list of all of the directories in a specific path. I have a few folders in the W:/wamp/www/ directory that start with an underscore _; for ...
1
vote
4answers
69 views

Find directories that contain more than one file of the same extension

I’m using Debian 8.0 and would like for example to find directories that contain more than 1 .mkv file. I tried this and it failed: find -type d -exec find {} -name '*.mkv' | wc -l\; There is a ...
0
votes
1answer
70 views

Command to open network “connect” window?

I'm looking for a command that opens the network "connect" window. It's commonly opened from the network icon in the notification tray, but it can also be opened through the Network and Sharing ...
1
vote
1answer
56 views

how to make a batch file close automatically

I have a .bat file which its content is like this: @echo off nc x.x.x.x 23 < commands.txt exit in which nc is a .exe file in the same directory nc.exe known as NetCat. The commands.txt file ...
1
vote
2answers
35 views

What's the easiest way to update the units command on a Mac?

What's the easiest way to update the units command on a Mac? I don't think I have any package managers installed. I just came across the units command for the first time: 0ony:sse-py stphqu0$ units ...
0
votes
1answer
18 views

Exclude top level files from zip but include directories and contents

This is driving me nuts. All google results are for the reverse scenario. So I have a directory structure like: MyFiles | file1 | file2 | file3 | MoreFiles | | file4 | | ...
0
votes
1answer
52 views

Using PuTTY SSH, how do I capture the remote output of a command?

In Linux ssh me@server "echo this ran remotely" The output this ran remotely is put to standard out. This is perfect. In Windows echo "echo this ran remotely" > test.cmd putty -i ...
-1
votes
1answer
55 views

Mac Command Line Open PDF to Specific Page

The goal is to use command line to open a PDF file to a specific page. The more general question is how do I find out what args are available for any given app? I am able to open a pdf file in Mac OS ...
0
votes
0answers
94 views

Pause OneDrive sync using cmd

I would like to know how to pause onedrive from syncing using a command in the cmd. I am doing this because I have my .minecraft folder shared in onedrive and when I am playing minecraft, it is really ...
0
votes
1answer
35 views

Hide typing in Windows command line

I want to be able to paste a bunch of commands into the command prompt, but NOT show the commands that I'm typing (responses from the commands can show though). I know this is easy to do with a batch ...
0
votes
2answers
25 views

Suppressing error in batch command if reg

If I run the following: @ECHO OFF FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\SomeApp\Server" /v ServerName') DO SET ServerName=%%B ECHO Server: %ServerName% and the registry ...
0
votes
0answers
19 views

Pipeline from <filename> to <filename> in Windows CMD?

Is there a way to do this without a temporary file? I've tried with tee but that failed. Test case: >echo "foo bar" > ex2.go >type ex2.go "foo bar" >type ex2.go > ex2.go >type ...
2
votes
1answer
37 views

Windows server virtual machine in a linux server ONLY with terminal. Is it possible?

I have a linux server that I use for various services since a very long time. I would like to run some new software on it but it's a windows software that is a server of some kind. Unfortunately ...
6
votes
3answers
458 views

How to remove all the parts of a split RAR archive file using command line?

I’m generally use a Debian based Linux distribution of some sort; either Debian 7.8 or Linux Mint 17. I have a split RAR file like this: filename.rar filename.r01 filename.r02 filename.r03 etc ... ...
0
votes
1answer
38 views

passing value from powershell script to cmd script

I want to pass value “200001” from the PowerShell to cmd script “1%” The cmd script used by multiple powershell scripts, and each PowerShell script has its own value. PS script: function ...
0
votes
1answer
112 views

How to block all traffic but one IP in windows firewall using command line

I have a project and for it I need to only allow connections in from a certain subnet, everything else must be dropped. The catch is that its all going to be automated, no user interaction, there for ...
0
votes
1answer
31 views

Adding keyboard shortcuts for command prompt on Windows 7

For command prompt I'd like to add keyboard shortcuts, that I cannot find in the properties or default windows. The keyboard shortcuts I have in mind are: Ctrl+A for select all Ctrl+C for copy ...
2
votes
1answer
57 views

No available formula for “pdfunite” in Homebrew?

I am on Mac OS X 10.10 (Yosemite) and I am new to Bash. I am trying to install pdfunite. I installed Homebrew and ran the following command: brew install pdfunite And I received Error: No ...
0
votes
1answer
137 views

How does windows decide which executable to run

I have several places on my computer that have executables, and they are all added to the PATH. Occasionally, there are cases where I have multiple executables with the same name that either have ...
0
votes
1answer
33 views

Suppress output of nslookup command in batch file

Trying to cleanup my batch file... Having problems with the following command still printing out some info: FOR /F "tokens=2" %%a in ('nslookup myip.opendns.com resolver1.opendns.com') do (set ...
0
votes
2answers
39 views

How to write decisions on batch files?

I use batch files a lot to make my computer do things for me. But mostly i make it do things that I've already decided. Like opening my hidden file if I'm alone, or start playing a specific playlist. ...
0
votes
0answers
109 views

Dropbox CLI syncing issues

I have (only) SSH access to a remote server, on which I installed Dropbox and the CLI as per these instructions: ...
1
vote
1answer
41 views

Is there a command in which we can see list of shared directories and with whom they are shared for windows 7?

Is there a command in which we can see list of shared directories and with whom they are shared for Windows 7? I have tried the below commands: net share wmic share get caption,name,path But I ...