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

IPython %edit command: Temporary text document it opens is read only

I just installed IPython, and am beginning with Python. I'm trying to use the %edit command. It opens my text editor (TextPad, Windows 7), but the document is read only. I can't type anything. I ...
0
votes
1answer
26 views

How does Git Bash differ from the Windows Command Prompt?

How does Git Bash differ from the Windows Command Prompt? For example: What is the purpose of Git Bash and what is it used for? And what is the purpose of the Windows Command Prompt? I am trying to ...
0
votes
0answers
10 views

Create user to execute select tasks

I would like to allow a application user to perform select sudo or root tasks without the need for sudo or root permissions or password being entered. Normal (Prompts for password): sudo appuser ...
0
votes
2answers
37 views

Batch command for Searching & Replacing Text in a Text containing non-TXT file

I am working with iMacro JavaScript .js files which are simple unencrypted lines of code-like text. The file contains the following code: var i; for (i = 1; i <= 10; i++) { iimSet("loop", i); ...
1
vote
2answers
32 views

WIN7 CMD how to create command to open text files in selected editor

Is there a way to create a command in Windows 7 command line to open some text file in selected text editor? E.g. pspad "text file location" that will open text file in PSPad.
0
votes
2answers
33 views

how to start a program with command line arguments on windows cmd

i know there are a couple of questions similar to this one out there but and while i have browsed through them, none have been able to resolve my problem. My code takes in three strings as parameters ...
0
votes
1answer
5 views

Tried Installing ZSH through cygwin and then trying to use zsh through Cmder

I tried to install Cygwin (64 bit version) on my computer, and it went through hunky-dory until at the very end, autorebase.bat failed with exit code 1. I read through the logs and they weren't too ...
0
votes
0answers
4 views

Deleteing site on IIS using addcmd won't remove bindings

I have an installer that adds SSL website using following command %windir%\system32\inetsrv\appcmd add site /site.name:SSL /physicalPath:C:\inetpub\wwwroot ...
0
votes
0answers
14 views

VLC batch conversion from m3u8 won't move to next file without user input

I have a batch file that is supposed to open every m3u8 file in a folder, stream it into a mp4 file and move to the next one. The lengths of the videos vary and the m3u8 files don't appear to have any ...
0
votes
2answers
24 views

copying file from UNC path to startup folder on Windows 7 machines

I have sucessfully figured out how to copy a file to "\machinename\C$\ProgramData\Microsoft\Windows\Start Menu\Programs\startup" however I want to run this as part of an existing startup batchfile. I ...
0
votes
2answers
23 views

How to enable Remote Assistance and add an exception for it in Windows Firewall from the command line?

I need to enable Remote Assistance from the command line. The equivalent of checking this box and hitting Apply. This is for automation and I tried editing the registry entry ...
1
vote
0answers
30 views

Why copy-paste in Windows command-line tools is usually cumbersome

I've used the command prompt, cygwin, mobaxterm in Windows. Although they do support copy-paste, the operation is usually not that straightforward. The selection of the text in the command prompt is ...
0
votes
2answers
19 views

Not process a variable in a string immediately in batch script

I'd like to know if it's possible to process a variable containing a variable not immediately but only when asked. For example this batch: @echo off setlocal EnableDelayedExpansion set VA=Two set ...
0
votes
0answers
8 views

Libre office impress is slow to convert pptx to pdf

I'm running Libre Office on my server to convert the powerpoint to a pdf file. Using a .ppt file: libreoffice --headless --convert-to pdf filename.ppt is running fine and take like 3 or 4 ...
1
vote
2answers
34 views

Search-and-go in Windows CMD

I know that for file search on Windows CMD one can use the following command: dir /S /P "PATH/FILENAME" Is there an easy way to go straight to the result directory. For example, the requested file ...
0
votes
0answers
9 views

Installing mysql - Fedora20 - Where is the installation directory

I am trying to install mysql on to a Fedora 20 box. I am using the below guide which states the following; First, MySQL was replaced by MariaDB since Fedora 19 ...
0
votes
0answers
16 views

Command fails in a script?

I'm trying to script the OpenSSL ec command. The script is used to validate a collection of keys produced by another library. The script is shown below after the question. The following works from a ...
-1
votes
0answers
23 views

DD stop and resume cloning inquiries and the optimum BS size on OSX

I have a dead harddrive , that cant be mounted on mac although disk utility can still recognize it. So i opt for using dd utility to clone the hard drive and recover it later. Its been painfully slow ...
0
votes
1answer
23 views

Windows command-line installers used by some programs: problems showing syntax and parameters

As time goes by, it is (fortunately) more usual to find command-line installers for most Windows GUI programs, so you can make batch and offline console installations. But sometimes I have found a ...
0
votes
1answer
18 views

WinRAR - Using rar.exe command line to extract all files in all archives in a folder then delete all the archives?

I want to use rar.exe via command line to extract all files in all archives in a folder then delete all the archives automatically if they extracted successfully? I tried -df and -dr to no avail. ...
1
vote
0answers
23 views

.exe files wont close with task manager or command prompt - Windows 7

This is happening with my video game DayZ StandAlone and Google Chrome Browser and a few other programs. But I will close the program normally and it will appear closed until I check Task Manager. (I ...
0
votes
1answer
16 views

command line: spawning a process

I have a perl program that accepts an argument (intent is to change directory "cd") without spawning a child process. $FPATH/pcd.pl allows the user to choose among a number of possible directory ...
0
votes
0answers
32 views

Windows PowerShell commands vs linux bash commands “cheat sheet” [closed]

As someone used to using *nix but now being forced to use Windows for work on a variety of windows server flavors (all with PowerShell), I find myself wanting various linux tools that I've grown ...
0
votes
3answers
24 views

Redirect stdin to stdout

I've got a script, ex myscript.sh, and it has to redirect to stdout what it gets from stdin (like a cat). For example: myscript.sh < myfile.txt > myfile2.txt How to do this? Also, how can i ...
1
vote
1answer
36 views

windows cmd - return first 3 files of a search

Searching to return the 3 most recently modified files of a particular extension. The search is simple: C:\> dir /od .zip "C:\Users\foobar\Desktop" Other solutions employ creating temporary .txt ...
0
votes
0answers
10 views

GNU screen command on path not found

When I use GNU screen in the following way, it works: screen java -jar .... but why does screen bukkit .... not work when bukkit is a executable script from my path ($PATH)? I've read here, ...
0
votes
1answer
46 views

split a file by a line prefix

My data looks like this: 60 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 61 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 62 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 62 ...
0
votes
1answer
22 views

Using PowerShell to Close Firewall Port

I'm doing some end to end testing of an application and I need to be able to close then open a port in Windows Firewall using PowerShell commands. I've found a script that adds a firewall rule to open ...
1
vote
1answer
47 views

Mass rename of pdf files using command prompt [closed]

I have a client who is using there own CRM and file naming structure and I need to change the file names to match the data in their system. All of the pdfs will be in the same folder. What I would ...
-1
votes
1answer
25 views

The syntax of the command is incorrect

What is wrong with this command: c:\move xxxyyy.dll C:\Program Files (x86)\Google\Google Earth Pro\Plugins I'm in an elevated Command Prompt and the error I receive is The syntax of the command is ...
0
votes
1answer
31 views

TC command via webpage as a sudo

The main goal- run a tc command via webpage, starting with: tc qdisc del root dev eth0 (deletes all the filters) Following Simple linux commands from a webpage I am trying to add a tc command, but ...
0
votes
1answer
15 views

Changing the font when printing with lpr

I have searched through the internet, and Super User, but couldn't find the answer. Is it possible to change the font used when printing with lpr from Monaco to some other font, like Times New Roman? ...
0
votes
2answers
18 views

Can wget decode uri file names when downloading in batch?

Normally when downloading files using wget, the filenames are encoded. In example: wget -c --content-disposition "https://class.coursera.org/ml-005/lecture/download.mp4?lecture_id=1" and the saved ...
1
vote
2answers
77 views

Remove attributes to sub folders and files

i hide my folders and files through hidden attributes of command prompt,i am struggling to unhidden all sub folders and files, how i hide the files in command prompt attrib +s +h "foldername" ...
0
votes
1answer
47 views

How to get BIOS serialnumber with WMIC command

Whenever I use the command line below wmic bios get serialnumber It outputs the BIOS Serial number with my laptop. However, I've tried that command line to get BIOS serial number with my ...
1
vote
1answer
67 views

Windows XP - How do use grep to find strings in files in subdirectories

I once had a version of grep on my PC (I think it came with an early version of Delphi) which supported searching in nested folders with the -r switch. Now something (I suspect a later version of ...
0
votes
1answer
17 views

cisco 2610XM telnet and http username and passwords

I have a cisco 2610XM for which they gave me a username and password. I can access and login into the web gui. from there I show the running configuration, it contains: line vty 0 4 password 123 ! ! ...
0
votes
0answers
15 views

Copying files to multiple folders and subfolders - command line

I have a folder with files that I do need to copy in multiple folders and subfolders. The folders and subfolders are not created. For example I want to move test1.txt to folder1/subfolder1 ...
0
votes
0answers
8 views

Open VPN Config command on Mac OS

I need exactly alternative of this command on MAC OS! It's for OpenVPN Server iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE - See more at: ...
11
votes
2answers
827 views

What does the output from CTRL+N in Windows Command Prompt mean?

In the Microsoft Windows Command Prompt (Win7), what does the command Ctrl+N do? I get the following output: C:\Users\pbarney>^N '' ␋_ ┼¯├ _␊␌¯±┼␋≥␊␍ ▒_ ▒┼ ␋┼├␊_┼▒┌ ¯_ ␊│├␊_┼▒┌ ␌¯└└▒┼␍, ¯▬␊_▒␉┌␊ ...
0
votes
0answers
18 views

understanding HTTrack actions

i just started using HTTrack . and it offers 5 actions whenever i want to download a website for offline viewing. which are 1 Mirror Web Site(s) 2 Mirror Web Site(s) with Wizard 3 Just Get Files ...
-1
votes
1answer
19 views

how to copy contents from current tty to a file in Linux RHEL 6.3

I am trying to copy the contents of on the current tty to a file by using command ls -l > ls-l.txt but I'm unable to get the output Can any one help me how to copy content from screen(terminal) ...
0
votes
0answers
27 views

CLI tools/ways for dynamically constructed DOM structure parsing HTML Javascript

I'm planning to make a tool which recognizes HTML using DOM structure in CLI. As many sites produce many DOM elements using JavaScript these days, it's becoming difficult to extract information from ...
1
vote
0answers
13 views

How to switch between DNS suffixes using CMD (netshell)?

at my job, I have to manually switch between: 1) append primary and connection specific DNS suffixes and 2) Append parent suffixes of the primary DNS suffix a bunch of times per day (due to a ...
-2
votes
1answer
33 views

Loop Counter not working

@echo off setlocal enableextensions enabledelayedexpansion set /a eng_aud_count=0 set /a eng_sub_count=0 For /f "tokens=1-9 usebackq delims=.:^)^( skip=2" %%A in ("MY text File") do ( set trck=%%B ...
0
votes
2answers
15 views

How to download all file with name emp* using curl from a FTP site

How can I get all files downloaded from a FTP site directory with file name like emp*. Please suggest.
1
vote
1answer
48 views

Windows theme resets everytime computer is restarted after registry modification?

I had gotten bored one day and changed the colors/fonts of the command prompt, then finally i wanted to, undo this and change the color/font scheme of the windows command prompt cmd.exe back to the ...
1
vote
2answers
44 views

What is a term for an OS command? [closed]

What is a name denoting something which executes (normally in a separate address space), accepts an input, generates output and exit code? I'd name this "Unix command", but there may be also say ...
1
vote
0answers
29 views

sed, insert file before last line

The following inserting file method for sed used to be working, even before last line, but not any more. Is it a bug in the current sed? Demo of inserting file method with sed: mkdir /tmp/test ...
0
votes
1answer
24 views

How can I check which ports are in use from the Linux command line? [duplicate]

I'm running a Node.JS application and need to figure out if something is using a certain port. How can I do this from the linux command line?