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

How to create Windows service with %computername% in command?

The command: sc create my-service binPath= "\\192.168.0.4\myshare\myfolder\myapp.exe --log \\192.168.0.4\myshare\myfolder\logs\%computername%.log" DisplayName= "My App" start= auto depend= ...
-3
votes
1answer
42 views

Access c:\“ my path ” in windows command prompt

I want to access a path in C drive when I open the command prompt I have c:\user\myname where is I want to access c:\ so that I can access any paht I want in C
0
votes
1answer
9 views

How to Execute a command in target line of your Putty shortcut?

For example, this is the target line: C:\Putty_IPmsg\putty.exe -ssh -pw "cmdctr123$$" cmdctr@10.226.151.84:22 It opens up a putty and auto logs in, with the username and password and IP address, ...
0
votes
0answers
16 views

Can't add Android platform to Cordova project as 'the command “android” failed'

I'm having trouble adding the Android platform to my Cordova project. When attempting to add the platform, I get the following error: Error: The command "android" failed. Make sure you have the ...
0
votes
0answers
24 views

Using a .bat file to pull a string from a text file within a zip folder

So, please bear with me. This is only the second batch file I've ever written and my first post anywhere on StackExchange. I'm writing a batch file that tells a remote server to run HP Array ...
1
vote
1answer
23 views

How can I get IP/host using windows commandline?

nslooup something.com 127.0.0.1 nslooup 10.20.30.40 127.0.0.1 will send a query to 127.0.0.1 UDP 53. I want to use "127.0.0.1:545/UDP" as a DNS resolver. Is there any good commandline tool(Open ...
0
votes
3answers
61 views

Windows 7 Turn off System Restore Via Command Line

Im trying to turn off System restore via the command line. This is the command im using Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /V DisableSR /t ...
22
votes
3answers
2k views

What is the Linux command that encapsulates almost all of the other commands?

I remember that for Linux running in embedded systems, due to size limitations, it can't pack as many commands as in ordinary workstations. So there is a do-it-all command that can mimic almost all ...
-1
votes
1answer
22 views

how to escape '$' in an awk statement in shell alias

I'm trying to write an alias that will kill all running php processes.. this is the command i got in my ~/.bash_profile alias killphp="ps aux | g [p]hp | awk '{print $3}' | xargs kill -9" this ...
0
votes
0answers
10 views

Smooth scrolling text navigation on the command line?

When I open a file with less on the command line, I'd like the page scrolling commands like d, u to scroll the next page into view over a few frames of animation instead of an abrupt jump. I find it's ...
0
votes
0answers
64 views

DISM /StartComponentCleanup fails, but /ScanHealth reports healthy

My WinSxS cleanup task was giving the "Last Run Result" of The component store has been corrupted. (0x80073712). No problem, to elevated command prompt and DISM. >DISM /Online /Cleanup-Image ...
0
votes
1answer
33 views

How can I do a recursive find and replace from the command shell?

Using a shell like bash or zshell, how can I do a recursive 'find and replace'? In other words, I want to replace every occurrence of '/path/to/folder' with '/other/dir' in all files in this directory ...
0
votes
1answer
14 views

how to access ZFS UNIX command line

It seems to be super easy but I just can´t get into it! All I have is the ´cli´, well documented. But I can´t execute commands like zpool, zfs etc. How do I get there? Thanks
0
votes
0answers
15 views

'MSIEXEC' is not recognized as an internal or external command

The system programs are not working on my WIN7 64bit system (CMD, PING, MSIEXEC, IPCONFIG, etc). Steps I've taken: %SystemRoot%\System32; is listed in the Environment Variable Path. At command ...
1
vote
2answers
32 views

Opening files with MacVim from command line

From my command line I'm inputting the command open .lists This is opening the text file in TextEdit. I'm pretty sure some file extensions will open with MacVim. I'm unsure how to get all text ...
0
votes
1answer
21 views

How to use sed to examine the line without specific content?

I made a toy file named toy, its content is like: aaa bbb My first idea is to use: sed -n '/[^a]/ p' toy bbb it prints out bbb, but when I added bb ab to the end of toy file. I found it lose ...
0
votes
1answer
27 views

Could someone explain me the concecpt of “Recursion” in the context of the FORFILE Command (batch)

i'm having some trouble to understand the concept of recursion while reading the explanation for the FORFILE command. for the parameter /s it says in the reference: /s: Instructs the forfiles ...
0
votes
2answers
54 views

Using FORFILES to delete Folders older than 2 days

here is what i'm trying to do: Use the forfiles Command in a .cmd script to delete folders from a specified path that are older than e. g. 2 days on a win7 machine. Edit: The Situation is the ...
1
vote
1answer
22 views

redirect one bash line to stdout/terminal vs log

I have a bash script where I'm redirecting output into a file for logging. if test -t 1; then # stdout is a terminal exec > $OUTPUT_FILE 2>&1 else # stdout is not a terminal, no ...
0
votes
0answers
42 views

How to change the Start In property via CMD for an .lnk

Context: I have folders with presentations being created dynamically except currently an instance of our ppt&macro is being dropped in each folder with the presentation. The presentation will only ...
0
votes
0answers
33 views

How do I execute a remote pc's cmd?

I have a computer at home, connected to a router with a fix internal IP (192.168.0.101). I forwarded a UDP port to it (:995), and placed the entire network under a dynamic DNS (no-ip), so I can access ...
0
votes
2answers
20 views

to check ram utilization by an executable when called using command prompt

I have created an executable which takes just 5 ms to execute.I want to know the RAM utilized during the execution of this executable.I am calling the exe from command prompt to execute.I tried using ...
25
votes
9answers
3k views

How can I pipe console output directly to Notepad?

I'm running an application on the command prompt or a Git shell, and I would like to get the output into Notepad, for easier review and editing later on. I tried the following, but I always get an ...
-1
votes
0answers
35 views

How to create a batch file that read parameters from another file

Someone help me to create a batch file that reads three parameters from another file e.g. Config.conf in same directory? The Config file contains following information: ...
1
vote
1answer
30 views

Arch Linux pacman error while loading shared libraries on Raspberry Pi

I know there are tons of forum posts on this, but I have found nothing on my exact problem. My Raspberry Pi just arrived and I installed Arch Linux and booted up, changed the timezone and password, ...
1
vote
0answers
33 views

What Would I Call This? [closed]

When I'm working on a web development project or tutorial, I generally open the same applications, just with different files. I wrote a batch file for my current project, so I can open these with one ...
0
votes
0answers
14 views

How can I view the stdout output from an app that I double-click?

How can I view the stdout output from an app that I double-click or use the open -a command to launch? You used to be able to view it (in real time) in the Console app, but it seems that in 10.9.3 ...
0
votes
0answers
24 views

Share internet through different interface

How to share internet from one interface to another? My pc is connected to WiFi. I created a hosted network using cmd. I've to open Wifi adapter properties and enable sharing to this hosted network. ...
0
votes
1answer
25 views

How to replace part of audio in a video using the command line?

Part of a recorded audio contains sensitive information. I want to remove that information while keeping the video and rest of the audio intact. Ideally using command line and being able to exactly ...
-1
votes
1answer
40 views

What comand do I enter into my batch file to do this?

I want my batch file to find a string in a file and return it to the next line in my batch file. How can I do this? I've googled over and over but can't get the specific answer I need with the ...
0
votes
0answers
25 views

running programs from MSYS with quotes

I'm trying to execute non-MSYS program from within MSYS. But MSYS (bash) doesn't work as expected. I'm running commands and see what procmon has to say about command line passed: >cmd /c ""cmd" /c ...
-2
votes
1answer
23 views

Command to find a file in a directory in widows [closed]

I like to find a file xyz.properties in my project. I like to know which command is useful for this. The same file name is exisiting in multiple folders in the project directory.
0
votes
1answer
20 views

CMD FTP Issues Works on Server 2012, Not on Win 7

I have the below command script running as a scheduled task on my Win 2012 Server without any issues. I want to replicate this on a clients Win 7 x64 computer. echo user [username]>> ...
0
votes
0answers
23 views

Cisco Router - Windows 7

I have never used a cisco product and have hand my but handed to me trying to use set it up. we have a second hand cisco router 1900 series(1941), i have connected the router via the light blue and ...
0
votes
1answer
13 views

Running hstart from MSYS

I'm trying to automate some things on my computer. And here's what I ran into. I'm running this command from MSYS prompt: hstart /elevate "cmd /k netstat -anb" First a message box with title ...
0
votes
1answer
50 views

Mac OSX: Terminal command to replicate activity monitor network data?

I've been googling around for a while now to try and find a terminal command which can output total kb/s IN and OUT for wifi (en0). The command cannot use sudo, so lsof is out. I've tried using ...
0
votes
0answers
16 views

Can I directly specify the file name for fsquirt.exe and have it sent instantly?

Because modern mobile phones do not seem to work with my bluetooth software as Nokia did, I'm using microsoft's fsquirt.exe utility. I had tried to upgrade my notebook's bluetooth software but most ...
0
votes
1answer
23 views

pass filename(with space in the path) as argumant to a wine app in a bash script

I want to luanch an wine App with passing a file as argument. I've two file, with the first I don't have any problem but when there is a space in the path wine can't handle the address properly. here ...
1
vote
0answers
35 views

How do i add command to my batch file to go get a screen shot of a webpage and return and save to my desktop?

I'm just learning about batch files and such, and I have been googling round and round trying to find how to create a batch file with a command that will go to my youtube page link and take a ...
0
votes
0answers
23 views

Set cmd prompt at start of session? [duplicate]

I wanted to modify my cmd prompt on Windows to more closely resemble the prompt I use in Linux and OS X. With some experimentation, I found that entering the following line of code at the start of a ...
0
votes
0answers
16 views

How do I get the aws cli completion to work with zsh on ubuntu?

I installed aws console cli following the instructions here: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html#install-bundle-other-os I want to get completion working ...
0
votes
1answer
20 views

f“ ”f" was unexpected at this time

I was looking at this post: Is there a way to batch rename files to lowercase? and I tried to use it in a textfile, renaming the extention into .bat, then running it at the directory. But, the title ...
0
votes
2answers
42 views

Keep program in cmd

I have a little program that is designed as Win32 GUI. It doesn't open cmd by default, however, it prints some important data to stdout. I wan't to get that data, so I tried to execute it directly ...
0
votes
1answer
29 views

Does an awk script or command execute itself to every line it reads?

I got an awk script named my_awk: #!usr/bin/awk -f { if ($1 == "#START") { FS=":";} else if ($1 == "#STOP") { FS = " ";} else { print $3} } And I invoked it through: cat my_file | awk -f ...
0
votes
1answer
25 views

windows command prompt dir /q returns “…” as owner - what is that?

I am executing dir /q on a Windows server 2008r2 and what I get back for one of the folders is ... What does it mean? 2014-06-11 16:32 <KAT> ... AFolder 2014-06-03 ...
1
vote
1answer
20 views

Why can't I move the file which has been created through 'head' command?

I used head -n 20 file1 > toy And then I tried to move this toy file to another place mv toy ~/lab It shows mv: cannot remove ‘toy’: Text file busy I waited 5 minutes and tried it again, ...
0
votes
1answer
12 views

Recursively compare file identities in Windows environment using only standard Windows commandline tools

I want to ensure that deep directories of files are identical after copying. I've read this answer: http://superuser.com/a/414216/214579 However, neither fc or comp offer recursion. How would one ...
2
votes
3answers
48 views

What's Linux test -a command test for?

Please take a look at the following code, snap=snapshot.file touch snapshot.file-1 $ [ -a $snap-1 ] && echo yes yes What does the test -a command tests for here? I tried info ...
1
vote
1answer
21 views

How to cd relative to .command file instead of hard-coding path?

I'm setting up a project template for my office that uses .command files to encapsulate some command-line functions, since not everyone in the office is terminal-savvy. Mostly this is going to involve ...
0
votes
1answer
53 views

Cannot run Git from windows command line?

I have an unusual problem. I am not able to run git from the commanline: c:\> git (popup) c:\> Popup: I also found this (non-) info in the windows logs: How can I get git to run from ...