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
1answer
18 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
10 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
28 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
28 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 ...
-2
votes
0answers
23 views

run multiple commands from a file after logging into putty from a bat filee [duplicate]

I have written a bat file in which I have the following: putty.exe -t -load "ABC" -l username -pw password -m "C:\Users\pathasai\Desktop\abc.txt" In my abc.txt I have written some commands which I ...
0
votes
3answers
27 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
58 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
64 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
33 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
33 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
17 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
38 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
29 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
33 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
28 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
18 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
17 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
31 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 ...
7
votes
3answers
410 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
23 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
44 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
34 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
126 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
20 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
35 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
40 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
40 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 ...
1
vote
1answer
21 views

Always run a program as root without typing sudo on RHLE?

I have a program called 'myprogram'. I want to be able to type, from the cmd line: >$ myprogram and have it automatically run as root. As in I want the above command to be translated to, >$ ...
0
votes
2answers
73 views

Manipulate text file from the command line?

With this command dir "directory" / s / b> c: \ file.txt I save all files in a given directory to a text file that formatting C:\Full Name But how to list files with the same extension (.wav) ...
0
votes
1answer
51 views

Windows Command line get disk space in GB

I'm trying to create a batch file to pull the total size and free space of the C:\ drive of servers (locally run script). I also need the output to be easily readable, so bytes is not going to work, ...
0
votes
1answer
22 views

scp sometimes adds a '-f' flag to my command

When using SCP to copy from a remote host to local (eg: scp -v foo-host:/source/path dest ) I look at the verbose output and notice this is the command sent over SSH: debug1: Sending command: scp -v ...
0
votes
1answer
20 views

How to change the color of the default title in iTerm2

Every time I execute a command, it's difficult for me to find where is the start point of the results comes from my last command. So I want to make the default line "Arthur-Mac-mini..." change color, ...
3
votes
4answers
58 views

How do I download/copy 15,000 folders from an FTP server to local machine on Windows?

I want to download around 15,000 folders not files from an FTP server to my remote drive. I have FTP software but it’s time consuming to do a batch transfer with it. So I am looking for a command ...
0
votes
2answers
28 views

Delete All Files Older Than Specified Time Within A Directory (Ubuntu)

I have a bunch of files in a directory with all different names and I want to delete all that are older than a specified time. Example: File1 File2 File3 File1 was made Mar 31 08:00 File2 was made ...
0
votes
1answer
19 views

How to include a call to ncat to a bash script?

I need to flush a memcached instance from a bash script, I found the following command which do the job: echo 'flush_all' | ncat localhost 11211 But my problem is that the script doesn't continue ...
1
vote
2answers
52 views

Change Powershell Execution Policy silently from Batch script

I would like some help on setting a registry value for powershell. The path is [hkey_local_machine\system32\windows\microsoft\powershell\1\shellids\microsoft.powershell] ...
0
votes
1answer
29 views

Strange Command prompt functions

One of our users noted that on startup, their PC automatically opened a command prompt. Thinking nothing of it, they left it open and went about their business. After a short while, they came back to ...
0
votes
0answers
19 views

Swftools “Swfstrings” how to get the position of the string to extract

I'm currently trying to find the value of a "string" which is in a "actionscript" of a "swf" file, using "Swftools" with the "swfstrings" command. But in order to extract the info, i need to know the ...
0
votes
1answer
30 views

Sending the command to run a batch file from web(remotely)

Is it possible for me to make my computer run a batch file through a web command? To make it more clear let me try to explain what i am trying to achieve. I want to run a squid proxy server on a ...
0
votes
0answers
16 views

Printing colorful syntax highlighting to paper

I want to print out some code on paper including syntax highlighting. After some research, I found out, that I could do this in the command line with pygments and enscript, but don't know how to ...
0
votes
1answer
19 views

Does changing the default program for opening a specific file affects the computer behavior?

I have some .java files that I want to view/edit in Notepad++, but I am not sure how this will affect other programs. Would the compiler still be able to compile them, or would I find some issues? I ...
2
votes
2answers
38 views

How can I get a list of all misspelled words in a text using Linux?

I have a text that has a number of misspelled words. I'd like to get a list of all those words, so for a text like this: This is just a normall line with some speling mistakes in it. It would ...
1
vote
1answer
27 views

7zip not allowing file extension in the archive name

7za.exe a C:\temp\file.txt.7z C:\temp\file.txt Error: there is no such archive why is 7zip not allowing file extension in the archive name? I even tried it with simple period in the archive name, ...
0
votes
0answers
19 views

Is it possible to extract ActionScript from swf files?

I'm desperately searching for a command line tool that allows you to extract ActionScript from an SWF file on linux. I need only the ActionScript part, not the assets.
0
votes
1answer
22 views

How to make window started with “START” commandline pause at the end of execution?

I have a .bat file that uses start command to run other scripts. I can make the .bat file wait for being closed by me with pause command at the end. But how can I make this pause to the scripts I ...
0
votes
1answer
19 views

Parameters with spacebars parsed incorrectly for a powershell script run from a batch file

I have a batch file that runs a powershell script and I need to pass two parameters to the script. In my batch it looks like this: powershell -executionpolicy remotesigned -File "my script.ps1" "my ...
-1
votes
1answer
39 views

command for adding a program at windows bootup

I want to add a java program in windows system boot up. Is there a command to do so?? I tried searching the internet and found steps to add a program but i need commands which i can implement in my ...
0
votes
2answers
20 views

list file and using awk to get comment

I want to get the all comment of all files in a folder. And what I have tried is ls -R | awk '/<!--/,/-->/' >> result But it shows nothing in the result file. But if I use the awk ...
1
vote
1answer
69 views

“invoke-command” using wusa.exe in powershell - won't install the msu

I'm attempting to push a windows hotfix to a number of computers on our network, using PowerShell v3. I've downloaded the appropriate .msu file, I've been able to successfully install it from the ...