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

How to see where a program is installed on windows from CMD? [duplicate]

I can run a program by typing its name in the command prompt, however I need to know where the executable is. I would like to do this without looking through every directory in the system path. Is ...
0
votes
0answers
19 views

How to open windows on RDP thin client

We use RDP thin clients in our company. Each have an IP address with a stand alone linux OS on it I want to open windows(gvim, xterm, ...) after ssh'ing to another remote server. Though I set DISPLAY ...
1
vote
1answer
15 views

Performance with multiple instances of rsync across different direct-attached storage devices?

Would running multiple instances of rsync with all the sources and destinations on different direct-attached storage devices cause any performance hits, or would the speed limits for each individual ...
0
votes
0answers
39 views

Finding Where Download is Coming From

How would I determine where a download (or update) from software is coming from where it doesn't give the user a URL? Take for example Google Chrome Web-Based Installer, Origin Updates / Game ...
-1
votes
1answer
20 views

How do I start a program with a hotkey after I started another

I want my program to start by pressing a hotkey, but only if another specific program has already been started, like for example, when I started fraps and then want to start a game after some minutes. ...
0
votes
0answers
23 views

Why OneDrive displays itself incorrectly in wmic?

Try following line in command prompt with OneDrive working: wmic process get Caption, ExecutablePath, ParentProcessId, ProcessId You will see that there is one space difference after ExecutablePath ...
1
vote
0answers
9 views

Ubuntu Launcher PHP working directory

I have created a launcher for PHP: [Desktop Entry] Type=Application Name=PHP Terminal=true Exec=/usr/bin/php %f Icon=/home/virsacer/Icons/php.png When I open a PHP-file with it, the working ...
2
votes
2answers
73 views

How to send an email attachment using command line in Linux without physically creating the file

I am trying to send an email with a CSV attachment, however it is not possible to locally create the file. Is there any way to pipe the content (I have the content in a variable in memory), to ...
0
votes
0answers
9 views

Is it possible to create a bookmarklet for firefox's dev-tool command line “screenshot”?

I'd like to have a bookmarklet with the options screenshot homepage.png --fullpage executed in Firefox's Shift+F2 command line. Is that possible?
0
votes
0answers
34 views

Command prompt application is not working with windows 10

I have a simple command prompt application that I've used to change some registry settings which was working fine in Windows 7, it's not working with windows 10 though, it just opens with a blank ...
0
votes
0answers
11 views

how to expand to full path file name according to path variable in cmd

As I thought, the variable expand command: %~dp$PATH:I is used for iterating through the paths in %path% variable and find the first occurrence in which contains the file name specified by the ...
0
votes
0answers
29 views

PING cmd request no response?

This has the command window state for 15 minutes and it does not time out or ping
0
votes
1answer
16 views

Highlight selected words in Linux Command Usage Doc

What I want to do is print a command-help (viz. "ls --help") and grep the output for any specific word. Consider the following: ls --help | grep 'F' But what this does is just filter out the other ...
0
votes
1answer
22 views

Run command on tab completion in zsh

I'm trying to set up a zsh function that will take me back to the top level git directory with an optional argument to move relative to that directory. I've currently got this which works: alias ...
2
votes
1answer
66 views

Debian : -bash: ls: command not found

I have a vm to play with linux and wanted to try rbash. I followed a tutorial to make it work. Then I wanted to remove the stuff i've done, and delete a symlink from /bin/ls to /etc/skel/. But instead ...
0
votes
1answer
22 views

Add character before a very large file to send to a shell script

I am trying to run a shell script on a 31,65 Go json file. ./oetl.sh database.json I need to have brackets before and after the file. What I have in database.json : {..},{..},.. What I want : ...
0
votes
0answers
57 views

`open` command is not working

I do have a problem with the open command on Mac OSX 10.11.5. It works fine when opening the finder via open ., however I can't seem to open Firefox: $ open test.html [1] 78952 trace trap open ...
1
vote
2answers
30 views

How to determine what GPU is being used via command line Windows 10?

I am trying to determine what GPU is being used (dedicated or integrated) via command line. I can run a benchmark program and read the output of that, but I am trying to figure it out from command ...
1
vote
1answer
38 views

Netsh the filename directory name or volume label syntax is incorrect

I would like to change an IP address in a Wireless network connection with a cmd line. I have tried: Netsh -c "interface ipv4" set address name=”Wireless Network Connection” static 192.168.168.6 255....
3
votes
1answer
44 views

Notepad++: Create shorcut to Batch file and open file afterwards

I have a batchscript with the following contents: python.exe c:/path/to/my/pythonscript/script.py %1 which I currently use to be able to drag-n-drop a file onto it. script.py then makes a duplicate ...
-1
votes
1answer
26 views

Using wmic to Find if Product Exists

I'm looking to write a batch file that checks to see if a program exists, and if it does exist I'd like to have it uninstalled. This is what I've got so far. @echo off (wmic product get name| ...
2
votes
0answers
57 views

Restart Computer After IE Reset

I am using IE11 (latest KB) and I tested on Win 10, Win 8.1, and Win 7. I reset IE using the menu options: Tools → Advanced → Reset After reset is complete, IE showed a yellow bar at the ...
0
votes
0answers
28 views

Robocopy transferring more data than available on source

first question on StackExchange, so apologies if there are etiquette breaches! I am using Robocopy to mirror a complete disk drive to an external drive for backup/archive purposes. I used the ...
1
vote
1answer
20 views

How can I send a notification for a job, when it terminates?

I am working on a Linux system and I have been able to find solutions in the case where it will send a response for success or failure. But, in my case I need to know which one it is and I am often ...
0
votes
2answers
47 views

lnav not recognizing our logs. Custom format not seeming to be applied.

I am working on adding a lnav format to parse the logs of my companies java application. I am running into difficulty getting lnav to recognize them. Here is what my json format file looks like so far:...
0
votes
2answers
57 views

Create shortcut with arguments

I would like to create desktop shortcut to cmder with argument, for example SSH connect. I was trying: "C:\Program Files\cmder\Cmder.exe" ssh root@localhost But unfortunately I getting that ...
1
vote
1answer
31 views

LibreOffice OS X: converting a .odt to .pdf from terminal?

Using LibreOffice, I can open an ODT document and export it as PDF manually. Is there also a command line do to this from the shell?
1
vote
1answer
20 views

Building web projects with one Terminal command

I'm looking for a way to create web projects using one Terminal command. The project contains the basic structure of a normal website (index.html, style.css, script.js, images folder .. etc). Thanks,
1
vote
0answers
7 views

Looking for command line values for an older (9.22 beta) 7zip

Better yet, is there a help file for the older 7zip utility? I want to test some PW recovery tools (build encrypted zip w/ known PW). This is probably trivial but starting from a 7zip.exe that has ...
1
vote
0answers
16 views

alias to programs in cmd? Where are they stored?

How do I add "shortcuts" (aliases) into cmd? For example the shortcut to HypersnapDX. On one computer I can simply enter HypSnap6.exe and Hypersnap openes. From any location. On the other computer ...
-2
votes
2answers
38 views

What's the use of a script that is run after login? [closed]

In several different network computers (school/company/...), I noticed that a script is run in the terminal after logging in with your personal account. Why would a network administrator run a script? ...
0
votes
2answers
14 views

Find highest numbered files in directory

Scenario: A backup system creates rar archives and splits them in 100 MB parts. I would like to find the highest numbered files within this directory. For example in- and output: Input: ...
80
votes
4answers
15k views

Why does “cd..” work in the Windows command line?

When typing cd.. without a space between cd and .. the Windows command prompt will happily switch to the parent folder. Is there an explanation for this behaviour? The command does not follow the ...
1
vote
0answers
21 views

script with print screen and task scheduler problems

On a production system a script opens screens and sends them to hypersnapDX. Hypersnap then saves a picture in a folder which then is copied onto a server. This script is done by a cmd script. The ...
3
votes
1answer
31 views

Gateway / Router Detection with Bash: Functions and Variables

I'm drafting / still brainstorming / a bash shell script. The aim of which, is to; help the user to: Interface with various CLI tools. Perform various administrative tasks. It might, ...
1
vote
1answer
22 views

Trouble making files in Windows folder lowercase

I need to make all files in a Windows 10 folder lowercase I ran the following command but some of the files still have uppercase letters for some reason for /f "Tokens=*" %f in ('dir /l/b/a-d') do (...
0
votes
1answer
68 views

SSH executes the command differently

After several experiments I got to a surprising behavior by SSH. I usually access to a specific application through an SSH connection. In fact, that app is on a virtual-box on a workstation in a LAB. ...
0
votes
1answer
45 views

Windows version of ''mkdir folder{1..100}/subfolder"

I am new to using the command line, especially in Windows. I would like to generate a (large) number of folders, say 100 of them, each with a subfolder of the same name. In Linux, I used mkdir ...
0
votes
0answers
44 views

create shortcut with runas admin privileges in parameter

I have a shortcut of a custom terminal/cmd program. This program always needs to be run with elevated/admin priviledges. Assume my program is situated at this location: C:\Users\User\custom_program....
4
votes
1answer
117 views

Where is the echo command file found

If I type where echo it returns a message like : INFO: Could not find files for the given pattern(s). Where is the echo command found?
0
votes
0answers
25 views

Single-line command to change process affinity by PID in Windows?

Is there a single-line command to change process affinity by PID with Windows? Preferably without a PowerShell dependency. The single-line aspect is a must and all the examples I've seen utilize ...
0
votes
3answers
58 views

Save Terminal Output command on OSX

It is simple question but couldn't find the answer, I found and tried tee output.txt and system_profiler > output.txt but no success, they save blank text file. How do I save my terminal output ...
0
votes
0answers
18 views

Windows 7 cmd window codepage

I have weird situation with cmd window codepage on windows 7(32bit). Since I need codepage 852 this was installed together with windows. Additionally, for DOS programs entry KB16 yu,852 is added in ...
0
votes
1answer
37 views

Batch file not running due to weird symbols at the start of the line

I have a piece of code i am trying to execute in a batch file it works fine when i run in in the command line but when i save it as a .bat file it fails with some weird symbols at the start of the ...
0
votes
0answers
7 views

How to make a shortcut of Magic Rush installed on Bluestack?

I'm stuck with this problem. My bluestack has not made a shortcut for the Magic Rush, it can't be found in folder MyApps. I know I must make shortcut from HD-RunApp but I don't know the command. ...
1
vote
2answers
24 views

Why does the command-line window disappear quickly while using Visual Studio 2013?

I am using Visual Studio to work on computer code, most times I run pieces of code and they execute successfully but the output flashes on the window so quickly that I don't get to see the output of ...
0
votes
0answers
20 views

Change directory for use with CMD

I have the SSH command line utility installed via chocolatey on Windows 8. The only problem is, it has an ssh key path with Linux OS' in mind, this means that the path is /home/roconnor/.ssh. This is ...
0
votes
0answers
19 views

Transfering files to MTP-Device from Windows via commandline

I am searching for a way to transfer files form my PC to a MTP-Device (No Android) using batch-file (command line). Is there any command line based application which can just transfer files from PC to ...
0
votes
1answer
33 views

Turn off pc after tot. daily uptime

I need to turn off my system after it reach a certain amount of daily uptime. I was planning nof writing a batch or a simple program, schedule his boot only for a specific user, that checks the daily ...