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

Add text via command line inkscape

I'm attempting to write a script that adds text to an svg image at a certain location. I'm aware that Inkscape has a very robust command interface but there doesn't seem to be much in the way of ...
0
votes
0answers
27 views

Replace “open command window here” to open git sh.exe bash

Is there a way to replace the default option in windows context menu to open command window in the current directory to open git's sh.exe bash in the current directory?
0
votes
1answer
26 views

How to access Java JARs through CLASSPATH environment variable on Windows 7

I know there is this article on JAR files on Linux but the solution involves some Linux specific commands I don't know, and ultimately I'd like to understand if I can access my JAR (and JARs it ...
0
votes
1answer
30 views

How do I get Google search request completion suggestions from console?

When one starts typing a search request on Google search page, Google shows a dropdown with some popular completion suggestions. There are often useful or funny things there. How do I get that list ...
0
votes
2answers
19 views

Is it possible to launch Firefox with a set of add-ons using command line?

I'm looking for a way to launch Firefox with a set of specified add-ons using command line. E.g. $ firefox --plugin-list=/home/user/addons/quickjava-2.0.4-fx.xpi,\ ...
-2
votes
0answers
7 views

Command Line Interface in Data Studio warehouse [duplicate]

@call wh executeProcessInstance is not working inside a batch file? How to make it use the set of wh commands as batch script ,in which path of SQW the batch file has to set. I am using windows in ...
0
votes
0answers
14 views

System & Security Messages

I'm currently setting up computers and have been requested to disable the System & Security messages (the little white flag next to the time (bottom right)). Doing this manually for every computer ...
0
votes
1answer
34 views

how to find all files under directory different directories

How can you find files name 'xyz' under directories name 'abc'? something like this....but its not working. find . -type d -name 'abc' -exec find {} -type f -name 'xyz' \; find . -not -path 'abc' ...
0
votes
0answers
11 views

Search in multiple text files for lines that start With a string and show next a date (non determined) in ubuntu terminal

I'm looking for a date (not specified) with the format "DD-MM-YYYY" or "DD/MM/YYYY" that starts with at the beginning of the line with another string. inside some txt files, and assign it to a to ...
6
votes
2answers
138 views

What does combining compression methods in 7z actually do?

The 7z command-line tool lets you specify multiple compression methods, e.g.: # 7-zip archive type, strongest (9) compression, methods PPMd, BCJ2, LZMA2 $ 7z a -t7z -mx=9 -m0=PPMd -m1=BCJ2 -m2=LZMA2 ...
0
votes
1answer
74 views

Windows Batch File (WMI) - taskkill process based on memory usage

Is there a way using WMIC, bat files, or powershell, to kill a task with a particular task name if the amount of virtual memory the process is using is above a certain limit? Specifically I want to ...
0
votes
1answer
53 views

defrag command line in Windows 7

I'm trying to consolidate my system partition volume by running defrag in a command prompt in command line recovery mode. This is the command I'm trying to have executed: defrag C: /X /H /U After I ...
0
votes
0answers
28 views

Navigating explorer.exe through command line

I am trying to write a program which can make navigation to a particular file easier. I am using windows 7, if I write the command explorer.exe c: in the command prompt it opens c drive, but ...
0
votes
1answer
51 views

How do I capture what I see in tail?

Tail seems to parse TTY commands. When commands use ^M to erase the line & redraw the line in stdout, for example an animated ASCII progress bar. When I tail a file where this is happening, I see ...
1
vote
2answers
132 views

bat file behaves differently when run from windows scheduler

I have a .bat file S:\BACKUP_db\copytofileserver.bat, which takes some files and zip them to the network drive. Its first command is to delete the old backup at specific network path, then pack the ...
-1
votes
0answers
23 views

How to find what a CMD written in my registry/PC?

I am using Windows 8 and recently I installed a little trial program to help me out in a game. The thing is that at start up, the program uses a CMD box to write some stuff in my registry (I suppose) ...
0
votes
1answer
50 views

DOS command to remove file_001.* copies, but only if file.* exists

Didn't find the answer, hope it has not already been answered here. I have a tree of directories containing files and sometime a copy at the same location. This copy is identified by some string, ...
0
votes
0answers
55 views

How to bypass problems when trying to spoof a webcam in Linux

I am wanting to spoof my webcam, so I can eventually insert the method in to a pen-testing book that I am writing. This could possibly lead me into to building a program that is better than ...
1
vote
0answers
45 views

What does “<>” exactly mean in “echo <> temp.txt”? [duplicate]

Non existing file $ ls file_not_exists.txt ls: cannot access file_not_exists.txt: No such file or directory $ echo <> file_not_exists.txt $ ls file_not_exists.txt file_not_exists.txt $ cat ...
0
votes
4answers
43 views

How to batch compress images with Imagemagick or similar command or program in Linux

I recently learned about the convert command from imagemagick which I have used to compress many pictures that I have for personal use, and for a blog that I have. In my experience, Imagemagick is the ...
0
votes
0answers
25 views

why do I need “-t” option with Tectia sshg3 client and pbrun command

I'm using tectia ssh client for windows (from the command line) sshg3.exe to log in and run a command to get power broker user/account: sshg3 [options...] profile | [user@] host [#port] [command] ...
3
votes
1answer
54 views

Using grep on URLs not working

I've got a couple of text files (a.txt and b.txt) containing a bunch of URLs, each on a separate line. Think of these files as blacklists. I want to sanitize my c.txt file, scrubbing it of any of the ...
0
votes
1answer
26 views

Is it possible to disable chmod/chown from sudoers for these specific directories /usr and /etc?

There has been two occasions where I have accidentally chmod-ized 777 the whole direcotry of /etc and it has forced me to come to the decision that I'd be better off to do fresh installation of OS ...
0
votes
1answer
30 views

Run a block conditionally on grep output

I've found a number of solutions to this problem, but unfortunately none of them seem to work on my windows box. I'm running a FOR loop in a batch file to loop through a number of text files. For ...
0
votes
0answers
12 views

Does robocopy /Z not reliably work when aborting the process?

I am copying some large files from a slow NAS to a local machine. The command line is quite simple robocopy /Z P:/Data D:/Data There are some very large files and I would like to power off the ...
0
votes
1answer
77 views

Windows batch file - How to pipe output to text file and then open the text file?

I have a weird problem where I have a simple batch file that runs another batch file, outputs what is on the screen to a log file, and then attempts to open the log file. The problem is, the log file ...
0
votes
2answers
48 views

How to redirect the output of a FTP recursive listing to a local file with Windows 7 FTP client?

When using the DOS command FTP in Windows 7, I can use this FTP command to list recursively all files of the remote directory: ftp> ls -R I cannot get the output of ls -R to a local file, FTP ...
1
vote
1answer
44 views

Convert code to Linux kernel style

I used to know a command to convert code to Linux kernel style with proper brackets and spacing and whatnot. It used indent, but I don't remember the rest. Can someone help?
0
votes
0answers
27 views

Windows 7 batch command-line to save as .pdf file for word 2013 .docx file

I need a fastest way to save my report .docx file to .pdf when never I have a new updated versin to send to others. I'm tired of using the mouse clicking File - Save as - Browse for location Is ...
0
votes
1answer
29 views

Repeat on user press, open up terminal, close terminal?

I am making a program and would like it to loop if an user presses a key. I also want to know if the bash file can automatically open a command terminal if it is not running from one to achieve the ...
0
votes
2answers
29 views

Allow permission to custom bash command without allowing permission to underlying command

We have an automatic script on one of our servers, run by observing-user. It needs to tell another script, run by primary-user, to update a log file. The code for this is sudo kill -UPDATE_LOG pid ...
1
vote
2answers
45 views

OS X Terminal wildcard doesn't work for some paths

Okay, this is weird, hopefully someone here can explain what is happening. I am using OS X 10.9.4 and I want to list files in a directory (and filter them using *) I want to look for zip files in ...
0
votes
1answer
52 views

Something is creating inodes on my VPS Linux Server

Please help, my server keeps exceeding the limit of iNodes (750,000). I'm not sure how these are being created. I do have multiple development sites on the server but it had never been a problem ...
0
votes
1answer
24 views

Trying to mass replace files from one directory to where the file is found in another. Windows 7

I have 200+ files in a single directory that I need to first search for in another directory with subs and replace after it is found. File names are the same. Content/size is usually different. Last ...
0
votes
2answers
48 views

What is the Linux terminal ctrl+c to exit a running program in a Mac terminal

In Linux terminal if I run a command like: $ node httserver.js The command runs and by doing ctrl + c the program is terminated and new line comes in terminal for us to enter a command. I felt cmd ...
0
votes
1answer
24 views

insert complex line in html file from the command line/bash script

I use a bash script to add a javascript file to a directory, but after that I need to insert into the index.html this line at between line 30 and 31. <script type="text/javascript\" ...
1
vote
0answers
25 views

Appending filename and path in Batch file

I'm having a hard time learning how to use command lines and the using batch files. What I want to do is write a custom path and then add the filename so that the output could be saved there. This ...
0
votes
2answers
35 views

Renaming files from a list of filenames

I'm still very new to shell scripting so I'm sure this command is all kinds of wrong. I am trying to rename a folder of files to the names in a txt file. The precondition is that the filenames.txt and ...
0
votes
0answers
26 views

Take Command (command prompt replacement): Frozen session tab with “ERROR: The file is either empty or does not contain the valid choices.”

UPDATE: I can faithfully reproduce this error with a minimal Ant build. Check out this video. The two files are pasted at the bottom of this question post. As posted on the Take Command forum, I am ...
0
votes
0answers
33 views

Prevent Git autocomplete listing remote branch names

I use msysGit/Bash on Windows with Git and I see there is a git-completion.bash file in C:\Program Files (x86)\Git\etc which I assume handles autocomplete in Git. When you type git checkout mas + ...
2
votes
1answer
52 views

Color blindness and Windows command prompt

I have a very hard time reading red letters on a black background, a combination that is used frequently by several command line tools that I use on windows. I can remove the colored output by ...
0
votes
0answers
10 views

How to remove Multiple Project from an eclipse workspace?

How to remove Multiple Project from an eclipse workspace through command line completely so that i can reuse the same workspace for new projects.
0
votes
1answer
35 views

Writing time in a file in a for loop

In windows 2008: I'm trying to zip and copy files to a backup server. I use command line/batch file, I log the result in a log file, I now want to log also the time for each file looped. The ...
0
votes
1answer
55 views

Batch Issue - Creating folders and Moving Documents

I’m trying to create a batch script in Windows 7 that will look at the first 6 numbers of 100s of pdf, create a folder based on the 6 unique numbers and move the pdfs into their respected folders. ...
3
votes
2answers
35 views

Is there a way to create a command line wrapper for a bash file?

The title says it all. I would like to type "run" in the command line and it would execute /pathtoscript/script.sh. Thank you!
1
vote
2answers
69 views

Terminal Command Colors

I like to have a really beatiful console style. I use zsh and I have changed my theme to "agnoster" See it under: oh-my-zsh My problem is that I do not have OS X and iTerm2 but I want to have these ...
1
vote
0answers
14 views

get output from cmdline application independently of system's locale

I'm trying to get the full OS-version information of a w32 host in a script (thus: from the cmdline), to be run on a variety of different machines. For this, i'm using the systeminfo as described ...
2
votes
1answer
33 views

Hostname is not displayed appropriately on command prompt & syslog messages

I try to set my hostname as 0.6.0.07252014 but when i see on command prompt and syslog messages, it is not getting displayed appropriately. Entered hostname: 0.6.0.07252014 Command prompt output: ...
0
votes
2answers
41 views

Repairing HDD - help to command prompt

I've dropped and destroyed my HDD with family stuff and so on aboard, and I read online, that I should just use /R /F /X D: in commandprompt, runned as administrator. I did that, and this is my ...
1
vote
0answers
32 views

Applications and .bat script get locked in Windows 7 for some minutes

I am playing around with Windows batch scripts and simple C++ applications on a Windows7 64Bit PC. The problem I am facing is that I cannot modify neither the batchfile nor the mingw-exe for minutes ...