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
vote
1answer
7 views

Given key-value content, how do I group values by key and sort by value?

I've the following sample input format (file or stdin): key1: 1 key2: 2 key3: 3 key1: 4 key2: 5 key3: 6 Is there any few-liner which can group values based on the key and then sort? Expected ...
-1
votes
0answers
11 views

Best program or IDE to Create Java games? [on hold]

I am searching for a program to create Java games. Aha not much to it, Aymen **PS preferably 2d games **
0
votes
1answer
13 views

How do I reenable mkdir and other commands from the nav bar win7

This was in another thread as a comment, but I don't have the rep to post there...Pretty sure it hasn't been posted as a question yet.. I KNOW you USED to be able to do dos commands through the nav ...
0
votes
0answers
4 views

download complete when run from command line but not complete run from launchd

Curious thing. I have a Python script that I've set up through launchd on my Mac to run every 5 minutes. All it does is download a file from a website. My issue/question is that when it's run that ...
0
votes
1answer
14 views

Appending an extension to a new file created with xcopy

I've been having problems with xcopy in the past few days, and I'd like to stop ripping out my hair. In my DOS class, a portion of an assignment requires a file to be copied (with xcopy), and the new ...
1
vote
1answer
27 views

Making Batch to run Windows PowerShell, then have it run some text

I am newer to making batch files. I am trying to run a command that will open windows PowerShell in a specific directory, and then once there to run a command. So far I have the following. ...
0
votes
1answer
20 views

Extending the command-line search path without editing the PATH variable

I want to extend my system search path without appending new directories to %PATH%, I am aware of the App Paths registry entry put that entry is only being accessed when using ShellExecuteEx which the ...
1
vote
2answers
35 views

How to parse a space delimited text file

I have a text file like this: Fam1000: CMIN|CMIN_9-RA CMIN|ABC_7-RA GCLA|EFX5.1 GCUC|GCUC_7-RA Fam1001: GCLA|EFX6.1 GCLA|EFX7.1 Fam1002: GCLA|EFX5.1 GCLA|EFX2.1 GCUC|GCUC_8-RA GCUC|GCUC_8-RA Fam1003: ...
0
votes
0answers
9 views

How can I append text in the middle of a pipeline?

With cat its possible to append a file to the data passing through a pipeline: foo | cat - somefile.txt | bar Is there a command that lets me append text without using an intermediate file? foo | ...
0
votes
0answers
12 views

Running dir and filter out results that are “directory name too long”

dir /s /b | findstr /irc:"MyRegex" Sometimes in source trees this yields thousands of The directory name... is too long Any one liners that will filter out those directories that are too long?
0
votes
0answers
24 views

Ask Firefox to export current Bookmarks to Json in CMD line

I can do this manually in Firefox when the browser is open (holding Alt key to show menu) and navigating to Bookmarks > Show All Bookmarks > Import And Backup > Backup This will generate a ...
2
votes
1answer
21 views

Batch command to archive folders with content using WinRaR

I have lot of folders in the root "C:\Test\Archiv\" (more than 1000). To be more specific, I get one every hour. They are named as following : ay %year% m %month% d %day% h%hour% In each folders are ...
0
votes
1answer
14 views

Is it possible to filter attribute of dos command output?

Below is output of this command netsh interface ipv4 show interface ...
1
vote
0answers
20 views

Can Dropbox under OS X be accessed from a command line?

I want to access Dropbox in my Mac from a remote location with ssh. Is there any way to access Dropbox from the OS X command line?
2
votes
2answers
35 views

How can I make my computer do a repeated series of tasks by a script file on Windows?

When I want to update a web project of mine, I have to do the following tasks all the time: Open cmd.exe. cd into working directory of project. Run localhost command in cmd.exe (~ jekyll s). Launch ...
1
vote
1answer
19 views

Windows 8 Can't find executable in path with “where” command

I added the following line in my System Variable Path "C:\Program Files (x86)\FontForgeBuilds\bin" I can then run fontforge: C:\Windows\system32>fontforge -v Copyright (c) 2000-2014 by George ...
2
votes
2answers
72 views
+100

Enable Remote Desktop in Windows Firewall from command line

note: #command-line and #netsh tags do not imply batch-file-only, question open for a PowerShell script or any utilities freely available. tl;dr first how to unattendedly transform firewall rules ...
2
votes
1answer
12 views

Wrapping `time` (and similar keywords) in call from another script

I have a Bash script (let's call it clock) which should work as a wrapper similar to the time keyword in Bash, e.g. clock ls should do something and then run ls. Here is an example of this script: ...
0
votes
1answer
28 views

PowerShell script to decrypt file

Can some one help me with this command to decrypt files using powershell? echo YOURpassPHRASE | gpg --keyring "C:\directory\filepath" --secret-keyring "C:\directory\filepath" --batch --yes ...
0
votes
3answers
35 views

How to print a file to the printer running on standard TCP/IP port?

can any one tell me how to print a file using command in windows? I tried using below command print /D:\\localhost\myprinter testfile but its giving the error: unable to initialize device ...
7
votes
4answers
317 views

Running `exec` with a Bash built-in

I defined a shell function (let's call it clock), which I want to use as a wrapper to another command, similar to the time function, e.g. clock ls -R. My shell function performs some tasks and then ...
0
votes
0answers
31 views

How to print a file from command line in Windows? [duplicate]

I want to print a file (any kind of file) to the printer which is running on my local machine's standard Tcp/Ip port 8100 (not on lpt or COM etc). Can any one give me the exact command to do same?
2
votes
1answer
28 views

7zip - Command Line: how to set output path?

I want to compress all HTM files in D:\HTM\ to an archive called comp.7z which is created in D:\HTM\ directory, so I do the following: 7z a -o "D:\HTM" comp.7z "D:\HTM" and get an error, exactly as ...
1
vote
2answers
39 views

ipconfig from the CMD opens and closes another CMD

I tried running ipconfig from CMD, both elevated and not, but instead of displaying it's output inline, it opens another CMD and closes it immediately after the output is listed. I've tried running ...
-2
votes
2answers
34 views

Converting an ELF executable (Linux) into a PE.exe (Windows)

I am a newbie when it comes to using machine code files!!! I need to use a machine code executable obtained as ELF (Linux) into an exe file for Windows. I have tried 'objconv' but, though the format ...
1
vote
1answer
68 views

A .bat file to close two services running in background

I have a Windows 7 computer with three accounts (in hierarchical order): Administrator (with password) type Administrator Guest (with a password different from that of Administrator) type ...
1
vote
0answers
33 views

make a c program run without opening a cmd window [closed]

how can i make a c program run without opening a CMD window, i tried -mwindows flag, used WinMain Entry instead of main, but without results, the cmd still pop up. i tried ShowWindow function by ...
1
vote
1answer
39 views

Why doesn't my Python script save the file when I use Task Scheduler?

I have a Python script that uses csv.writer to create a csv file. This works fine when I run it from the command line, but no file is created when I run the script using Windows Task Scheduler. The ...
-4
votes
0answers
23 views

The name of an old application [closed]

I once had that that tiny application that create a standalone command line application that has all the files that you want to hide, then asks you for a password to extract its content when you run ...
1
vote
0answers
8 views

Opening a “Unicode little endian without BOM” file from the command line with WinMerge?

I have a pair of "Unicode little endian without BOM" text files that I would like to diff each another via the command line. Unfortunately when I open them using the commandline in Winmerge they come ...
0
votes
1answer
23 views

Winrar command line compression ratio

I have a Winrar command line that look like this: "c:\Program Files\WinRAR\WinRAR.exe" a -afrar -s -m5 "e:\output.rar" "e:\foldertozip" The folder that I am compress by default is 9.08MB. The ...
1
vote
2answers
18 views

Winrar command line zip folder

I am trying to use WinRAR command line to zip folder: "c:\Program Files\WinRAR\WinRAR.exe" a -afzip "e:\output.zip" "e:\foldertozip\" If the foldertozip contains file, the command line works. But ...
1
vote
1answer
46 views

How can I elevate my cmd prompt using the the cmd line

I follow this script "runas /profile /user:administrator\administrator cmd"and when it prompts me for my password it always says that it is incorrect even though i am spelling it correctly. help ...
0
votes
1answer
31 views

How do I make exclamation marks show using echo

Earlier today, I was continuing on making an RAR Password Decryptor. I was testing it out on a test RAR file with the password being just an exclamation mark but when I use my Decryptor all it says is ...
1
vote
1answer
19 views

Change Ownership Of Linux Directory

I Have a Netgear ReadyNAS and have set up SFTP on it. I created a user named "newuser" and changed directory to "newdirectory". If I run the command chown newuser * -R inside of "newdirectory", will ...
1
vote
1answer
22 views

Suppress extraction of __MACOSX directory when unzipping

ZIP archives produced on Mac OS X systems usually include a __MACOSX directory which is useless, annoying, and unwanted on pretty much every other OS. For unpacking ZIP archives I use Info-ZIP, which ...
1
vote
2answers
29 views

How to make Zsh not store failed command

Problem I'm using oh-my-zsh and Antigen to manage my Zsh. Sometimes I will accidentally enter a wrong/failed command into Zsh and it is very annoying when the zsh-autosuggestions plugin throws up ...
2
votes
1answer
35 views

Batch - Renaming network interfaces based on index with WMIC and netsh

I have two Intel NIC's that I need to rename based on their index numbers, WMIC is nice in that it seems to always return index numbers in numerical order so we can take the output directly without ...
0
votes
2answers
35 views

How to echo string of another string shell variable

We would like to echo the value of a shell variable which has another variable string in its variable name. eg: we want the following output var1=1 var2=2 We tried several various forms similar to ...
0
votes
0answers
29 views

How to identify USB webcam by serial number from the Linux command line [duplicate]

How do you get a USB webcam’s serial number from the Linux command line? I have multiple USB webcams connected to an Ubuntu machine. They all show up as /dev/video0, /dev/video1, /dev/video2, etc, ...
0
votes
0answers
11 views

How to disable (and re-enable) notifications on GNOME Shell version 3.8.4 from the command line?

I am running Centos 7 with GNOME-Shell 3.8.4. I can happily disable all notifications from the top-right menu, as pictured: I need to do that from the command line, though, because I need to ...
1
vote
1answer
19 views

Can't find the good Cygwin shell executable

I am working on Windows 7 and I need Cygwin for my project. I am trying to launch the Cygwin terminal from a Java programm and then write command lines but my problem is that I can't find the right ...
-4
votes
1answer
23 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
17 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
40 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
26 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
12 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
13 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
36 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 ...
0
votes
0answers
46 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 ...