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
votes
1answer
43 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
60 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
42 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
23 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
53 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
66 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
35 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
8 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
39 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
15 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: ...
83
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
22 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
43 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
23 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
69 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
47 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
49 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
123 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
30 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
67 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
20 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
40 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
9 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
26 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
21 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
21 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 ...
0
votes
1answer
39 views

Scripting with tmux?

Can I script several bash/sh instructions to open and run in separate tmux panes? I have about 5 or so different commands that need to be executed simultaneously or consecutively. I usually type ...
0
votes
1answer
51 views

How to handle variable in Batch script nested loop?

the following batch work well until the comment "the following do not perform as expected" I've try any kind of %; %%, ! around the variables but always fail, either do not have any thing or errors! ...
0
votes
0answers
14 views

AIX cut the file size from the ls -l output

Given the 2 lines from the ls -l command: ls -l /text*.txt -rw-r--r-- 1 root root 1307250 Jun 01 10:44 text1.txt -rw-r--r-- 1 root root 697 Jun 01 10:30 text2.txt How can ...
1
vote
2answers
35 views

How can I compress multiple files to multiple zip using 7-ZIP?

for example I have one folder which contains below mentioned files: 001.txt 001.doc 002.txt 002.doc 003.txt 003.doc Continue.... I want all similar file names each in separate zip. e.g. 001.zip ...
1
vote
1answer
29 views

Line is not Wrapping in Terminal

I am using Ubuntu G-NOME 16.04. Line wrapping not functioning properly in my terminal. It starts rewrite at the beginning of the same line. eg. If I try to type follwining command user@MY-PC: ~$/home/...
0
votes
0answers
25 views

How do I get VLC to play on the both screens?

I have two monitors on my desk. I want to split a video in half and play each half on each monitor. (I don't want a big stretched out full screen window stretched over both the monitors but rather 2 ...
1
vote
1answer
1k views

How to treat the “No instance found” of WMIC command in batch?

In a batch I want to terminate all instance of a process. I've try using: @echo off setlocal EnableDelayedExpansion for /f "usebackq skip=1" %%r in (`wmic process where Name^="CALC.exe" get ...
3
votes
1answer
42 views

How can I remove the last blank line of a wmic command?

In a batch I want to use: FOR /F "usebackq skip=1" %I IN (wmic datafile where Name^="D:\\TOTO.EXE" get Version) DO (ECHO %I) and want to restrict the ECHO, not having an ECHO is on. for the last ...
1
vote
1answer
39 views

Windows PATH variable isn't working

I have the following folder in my PATH (both paths actually, the system path and my user path) C:\Users\deqn\.cargo\bin In this folder there is file called racer.exe, when I try to run it from cmd ...
1
vote
1answer
32 views

I accidentally `git init`ed my home directory. Now my command line prompt won't load

Is there some way to enable hidden files on OSX without using the command line? This is a real Catch 22 since I can't use my command line to undo the thing that's preventing it from loading in the ...
0
votes
0answers
28 views

windows batch, program started by 'start' command minimized

I am writing a windows batch file to launch my java gui application, but when I run my batch file, my application starts in minimized, how can I bring it to front at start ? I run it on windows 10 ...
0
votes
1answer
49 views

Nircmd | Setting Volume | set specified volume amount (*/100)

Nircmd is like a variable to windows already built-in cmd and comes along with great informative, most especially brief documentation. SETTING VOLUME (commands) changesysvolume change ...
0
votes
0answers
15 views

Cannot Delete Folder, Could Not Find Item

I cannot delete a folder from some files shared between my brother and I. When I attempt to delete, rename, or move the folder, it tells me "Could not find this item. This is no longer located in... ...
0
votes
1answer
52 views

After npm install -g, command still not found?

I don't know what's going on, but none of my installed node packages are actually registered. npm and node work fine, but if I sudo npm install -g ffmpeg or brew, they're listed at /usr/local/lib/...
1
vote
2answers
65 views

I need a batch file that opens cmd, runs two commands, and keeps cmd open

I am making a set of batch files made to force restart games when they freeze and won't start back up again. So I need a batch file that opens cmd.exe, runs the two commands: taskkill /F example....
0
votes
1answer
34 views

Directory doesn't exist, but it does, but it doesn't

Before I start, my /etc/fstab file has the line: //10.10.10.1/Atkins ~/Desktop/Atkins cifs rw Ubuntu is giving me strange issues. I'm trying to mount a directory, so I type: sudo mount //10.10.10....
1
vote
0answers
18 views

MySQL doesn't seem to be executing commands

I am cleaning up a lot of my DB's/Tables, and have been running into an issue. When I execute most commands which change data on a table (i.e, DELETE FROM or UPDATE), the command returns as completed ...
0
votes
1answer
33 views

Show proxy settings of other user profile

I'm trying to find a command-line to show, list or view proxy settings of another user profile in some computer. I can view my own proxy settings via command-line querying HKCU\SOFTWARE\MICROSOFT\...
0
votes
1answer
20 views

Delete Subfolders and Data But Leave Root Folders

In a directory, I have about a thousand individual folders. Is there a way to search through those subfolders and delete everything in them, but leave all of the folders at the root intact? In other ...
0
votes
2answers
21 views

Unescaped commandline content in fish shell

Is there a way to get the unescaped content of command line in fish? I mean if command line is like ... $ ls 'foo' "bar" ... the desired output would be ls 'foo' "bar". The commandline fish ...
1
vote
1answer
59 views

Add strings to zsh tab completion for all commands and arguments

I want to add the keywords foo and bar to be added to the auto completion results for any command or argument. eg: cd <TAB> should give foo and bar in the suggestions in addition to the ...