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

Escape brackets when using SED

I would like to replace the value varchar(36) with char(36) in a file by using sed. I am trying with sed -i ’s/varchar(36)/char(6)/g’ calls_contacts.sql But the command does not execute. What am I ...
0
votes
1answer
28 views

CMD file for redirection of child process output

I need a batch file that receives two parameters: a command (filename with some arguments) and a path to a file - for output redirection of the command execution. I tried some variants like call %1 ...
1
vote
1answer
66 views

Line-wrapping `less` in OS X (specifically for use with 'git diff')

Using less +-S does not work (although it does ask Chop long lines (press RETURN)), and entering -S once inside less also does not work. Is there a solution? I am usig OS X Mavericks (10.9.3). ...
1
vote
0answers
21 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
0
votes
0answers
13 views

Handle.exe creates Handle64.exe & hangs thereafter

On windows server 2008 R2 ,In a folder I have handle.exe along with psexec.exe and a batch file name test.bat with following content: psexec -s D:\data\handle.exe -p taskhost.exe > ...
2
votes
1answer
30 views

access is denied while CD a folder in Windows 98

I have a folder named Protel in Windows 98. I can normally browse it using windows explorer but when I try command cd protel from command prompt it say Access is Denied I know windows 98 has only ...
1
vote
2answers
45 views

Equivalent of (foo &>/dev/null &) in Windows shell

I'd like to run a particular application (let's call it foo) from the command line, but I don't want it holding up the terminal, putting any junk in the terminal from its output or error streams, and ...
1
vote
1answer
25 views

Upload image to postimage.org using curl

I found a script that can upload image to postimage.org using curl. It was posted not long ago, on 2013-09-06, at http://crunchbang.org/forums/viewtopic.php?id=28867. The simplified script looks like ...
1
vote
0answers
34 views

Working git from the command line

So I use Github for Windows (that fancy GUI app) to manage my various git-based projects, but I've noticed that on my machine I can't use the command line git to do anything with my projects. From the ...
0
votes
2answers
71 views

shell script to start and stop executable jar in linux environment

I have to write start and stop script for an executable jar ex. executable.jar How to do it using shell scripting? I got success to do it for Windows environment with .bat file. But not able to ...
0
votes
2answers
21 views

Creating a Python local server in Windows

I'm trying to use this commmand: python -m SimpleHTTPServer but it's not working. I'm guessing that it isn't working because I'm running that through Windows Command Prompt. How does one make ...
0
votes
0answers
60 views

Windows Server 2012 Can't Delete Folder/Files

I've got a folder with two ISO files in it and I don't need them anymore, however I can't delete the folder! I am an administrator and also the owner of the files. When I try and delete using windows ...
0
votes
1answer
24 views

Is there a way to eliminate the owner and group from `ls -l`?

I never need to see the owner and group for the files listed with ls -l (actually, ls -laF) and am wondering if there's a way to remove them from the output. So I want to change this: lrwxr-xr-x 1 ...
0
votes
0answers
33 views

Open pwd protected http stream in vlc from Linux CLI

Can anyone please advise me on how to open a pwd protected http stream from CLI in vlc? I checked out the --help and man pages, but they seem to offer only syntax for opening ftp, rmt and smb pwd ...
1
vote
2answers
26 views

Start application from a numbered list of choices

I want to display all applications dynamically within a folder in a numbered list, and launch them by entering the number associated with the application. So far I have the easy part working, the ...
0
votes
0answers
38 views

FTP.exe ls to local Output File Permission Denied on Local Network

I am trying to access a directory on my Filezilla FTP server using the ftp command in Windows from a local computer on the network, and then put a list of all those files in the directory in a text ...
0
votes
0answers
28 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
37 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
70 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
61 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
44 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
39 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
48 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
69 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
43 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
32 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
30 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
23 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
24 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
45 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
16 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
44 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
44 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
25 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
86 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
24 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
121 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
34 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
20 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
28 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
41 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
24 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
81 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
23 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
46 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
35 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 ...