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

How can I open a command prompt as TrustedInstaller in Windows 8.1?

I read that "TrustedInstaller" is the new root account in Windows 8, when it was previously "SYSTEM". The SYSTEM account still exists, but it's not the highest level admin account anymore. While I can ...
0
votes
0answers
51 views

OSX terminal command not found

I'm following a guide to setup airport in monitoring mode to do my networking exercise. I've made a shortcut to airport using this command: sudo ln -s ...
-1
votes
1answer
84 views

regedit command results in “access denied” in cmd

Edit: The issue at this point is that a regular user is granted access to the registry and there is no prompt for administrative credentials whatsoever. Prior to changing permissions (See Scott's ...
0
votes
3answers
79 views

windows command prompt change directory is now changing directory

I am trying to change directory from C drive to E drive. but the its not happening through following code. C:\>cd E:\Program files\wkhtmltopdf C:\>echo %cd% C:\ It says C:\ is current ...
0
votes
2answers
57 views

curl: pass a GET request as argument

Heroku has this nice command which allows me to use curl to download a file which works fine in UNIX: curl -o latest.dump `heroku pgbackups:url` The command in backticks yields a very long URL that ...
0
votes
1answer
47 views

Recover file overwritten with >

I was copy/pasting some commands into CMD (Windows 7) and accidentally pasted in an entire cmd history (from the Select All command). This included something along the lines of Y:/>database.mdb ...
0
votes
0answers
4 views

linux net command for osx terminal? [duplicate]

i am trying to establish a way to use the same samba net commant found on a linux distro using samba 3.x but i am unable to identify the mac version of it reference to the net command: ...
0
votes
3answers
57 views

Create .bat to do a task at a certain time

I'd like to create a .bat file in Windows 8.1 that does a task (specifically, close a program/kill a process) at a certain time. I usually use the command line (which, I believe, works as a .bat ...
2
votes
2answers
72 views

How can I execute a command and immediately quit the terminal?

It should be pretty clear what I'm trying to do: original script.sh: select blah in foo bar oof rab do cmd $blah break done Pretty basic stuff. The problem arises when I try the following: ...
1
vote
3answers
48 views

Is there anything grep does better than ack? [closed]

I started using ack a while ago and it's amazing, but still begs the question: Is there anything grep still does better than ack? Or maybe is there something grep does that ack can't do?
1
vote
1answer
39 views

Windows 7 Change Power Settings Via CMD Line

I want to change some of the settings via the command line. i found this resource which helps http://technet.microsoft.com/en-us/library/cc748940(v=ws.10).aspx but it doesn't explain how to set a ...
1
vote
1answer
36 views

Is it possible to have interactive directory tree view next to console

To anyone's knowledge, is it possible to accomplish something like the following screenshot: Ideally, I'd like to double click on a file and process the file as if I typed it directly into the ...
0
votes
0answers
24 views

Delete folders in directory, but keep certain amount of latest directories on OSX

The following situation: Folder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder At first I need to get all folders in the directory, after that sort ...
0
votes
0answers
25 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
49 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
30 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
124 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
1answer
55 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
30 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
206 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 ...
23
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
29 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 ...
1
vote
0answers
237 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
39 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
25 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
40 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
51 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
26 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
28 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
122 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
30 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
50 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
42 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
23 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 ...
26
votes
9answers
4k 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
vote
1answer
72 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
34 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
20 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
29 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
31 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
51 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
32 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
26 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
29 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
1answer
32 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
20 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
82 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
34 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
44 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 ...