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)

-6
votes
0answers
5 views

What are the Side-Effects of Brain Boosters on Human Mind?

The most effective factor I located in Addium, that it is not being utilized for upkeep of mind concerns or for raising human memory degree however this item is ONE HUNDRED % accepted as well as has ...
0
votes
2answers
11 views

list file and using awk to get comment

I want to get the all comment of all files in a folder. And what I have tried is ls -R | awk '/<!--/,/-->/' >> result But it shows nothing in the result file. But if I use the awk ...
1
vote
1answer
11 views

“invoke-command” using wusa.exe in powershell - won't install the msu

I'm attempting to push a windows hotfix to a number of computers on our network, using PowerShell v3. I've downloaded the appropriate .msu file, I've been able to successfully install it from the ...
0
votes
1answer
13 views

How to create a command shortcut in BASH or ZSHRC shells?

I know how to create an alias or a PATH however those are both used to navigate folders. How would you create a shortcut to say quickly type the following commands every time? alog = tail -f ...
-2
votes
0answers
26 views

I Need BAT file to perform actions, and also write echos and actions to a log file [on hold]

I Need BAT file to perform actions, and also write echos and actions to a log file... In other words: Whatever is "written in the BAT file", should be sent to the log file, as well as the actions ...
2
votes
0answers
16 views

What is the path environment variable? [duplicate]

I just started with using the (Windows) command line tool for working with npm. And I end up quite often on StackOverflow when I'm stuck with some error and the solution is often to add [something] to ...
1
vote
1answer
16 views

FOR/DO command gives “Was unexpected at this time” when run from command prompt

Trying to run the following directly from the command prompt. FOR /f "delims=[] tokens=2" %%a in ('ping %computername% -4 -n 1 ^| findstr "["') do (set ip=%%a) While it runs fine from within a ...
0
votes
0answers
19 views

How to bulk rename file in numeric order in windows7 [on hold]

I did research on google found that there is way to rename file like this: img(1).jpg img(2),jpg ... But what I want to do is exactly this: 001.jpg 002.jpg ... I can't achieve later result with ...
1
vote
1answer
17 views

File exists but returns “The system cannot find file specified” when using UNC path

I'm using PHP to check if a file exists and then get it's size. The code worked great before but now that we're using a UNC path I can check that the path exists with file(exists($filename)) but ...
0
votes
0answers
10 views

build cmake on windows command prompt

I need to build cmake automatically, without windows-wizards. I looked at http://www.cmake.org/install/ but it seems that I must have cmake on the machine before... Any suggestions?
0
votes
1answer
23 views

Start PuTTy session in remote host over network

I have 5 hosts - A, B, C, D and E. A and B are windows hosts. C, D and E are Linux machines running ssh server on port 22. I've copied plink.exe (putty command line backend client) in host B. When I ...
0
votes
0answers
9 views

multiply ttys instances in console

I've run who command in terminal and see: myName console today_date myName ttys000 today_date myName ttys001 today_date myName ttys002 today_date why are there multiple ttys instances?
-2
votes
1answer
31 views

Windows 7 professional.32 bit

I am trying to change directory on my command line in my C drive. I am trying to access python25 folder at C:/Python25/ but every time I write cd> C:/Python25/ and press enter, cmd returns Access is ...
2
votes
1answer
26 views

On command line, how to apply other context-menu operation on a file than default open?

With the start command in a Windows command line it is possible top apply the default context-menu "open" operation on a file, like: start file.pdf But the Windows context menu may define other ...
1
vote
2answers
18 views

ZSH PS1 adding spacing when tabbing

I'm having an issue with zsh/oh-my-zsh with my custom PS1 prompt (that I brought across from bash). When I use the built-in zsh/oh-my-zsh prompt and tab for auto-completion, this works as expected. ...
0
votes
1answer
16 views

diff style comparison of directory contents against line by line contents of text file

Unlike many of the file and directory comparison utilities out there, including diff, I've only seen literal file to file (sometime, more than two files) and directory to directory comparisons. I'm ...
0
votes
1answer
13 views

Github integration with git command line

In Vundle for vim, plugins are added with the following syntax: Plugin 'user/repo' This works for any github repository, and it makes for a very concise .vimrc. My question is, is it possible to ...
0
votes
2answers
16 views

How can I set up an environment variable to work with TCC?

I am trying to set up TCC on Windows 7, but I can't seem to make it work dynamically from cmd To be able to invoke the compiler from everywhere on your computer by just typing "tcc", please add the ...
0
votes
0answers
14 views

How to delete all folder shortcuts and file shortcuts using windows command line

I am new to stack flow without enough reputation so could not upload an image for my question. Here is the description: I have a folder that contains lots of files and some folder/file shortcuts. I ...
0
votes
1answer
20 views

understanding sending post request (with curl)

alright, I know related questions have been answered : What is the cURL command-line syntax to do a POST request? http://stackoverflow.com/questions/14978411/http-post-and-get-using-curl-in-linux ...
0
votes
1answer
24 views

renaming pdf based on line content linux

I'm trying to rename a bunch of pdfs based on a specific line in the files. So far, I'm converting to text, then using awk to print line 41. But that's as far as I've got. I've tried usings xargs ...
1
vote
1answer
14 views

Force ls to print output without line breaks

Is it possible to force LS to print output without line breaks? I need output without formatting. I tried to use --format=horizontal switch but it still puts lf signs. Maybe formatting only with ...
0
votes
1answer
25 views

Send HTTP request with parameters file

My question is very simple : is it possible to send a HTTP request from the *nix command line specifying a file, containing all the parameters, as an argument? In REST APIs documentation, we often ...
1
vote
3answers
19 views

Looping until background process is done (with `jobs`) doesn't work in script

I'm trying to loop until a background process (launched earlier in the script) is complete. An easily reproducible test case is: ping -c 10 localhost &>/dev/null & On the command line, I ...
0
votes
4answers
33 views

How can I count the line breaks in a folder recursively?

I'd like to learn a native command line method of counting lines of code in any project saved on Windows. That way, no matter where I'm working or what language / IDE I'm working with, knowing how ...
0
votes
2answers
14 views

Append text to lines between two patterns every time they appear in a file

This will be a rather hard one, i guess. I have to fiddle around with inline documentation that is extracted into html files to be used as online documentation, but these parts of the files should be ...
0
votes
0answers
13 views

some ffmpeg commands gives error when execute through java on Linux Redhat [on hold]

ffmpeg -f concat -i "/path/to/itw22.txt" -c:v copy -strict -2 "/path/to/itw22.mp4" When i run this concat command through linux command line everything works fine..But if i run the same command ...
2
votes
3answers
93 views

Is there a way to get only the Ethernet MAC address via command prompt in Windows?

I use ipconfig /all or getmac /v to get all NIC physical addresses. But the problem is, generally a computer has more than one NIC card. Also there are some virtual MAC addresses—like Microsoft ...
-1
votes
2answers
34 views

Apply command to every line in bash terminal

I've accidentally discovered the lolcat package today. The first thing that I though about is: it would be fantastic if i could pipe everything that comes from stdout to the terminal through lolcat ...
0
votes
0answers
19 views

Linux - every command fails to execute

What would cause a Linux server, in this case a Citrix XenServer host, to return "syntax error near unexpected token" for almost every command? So far I have tried a few key OS commands but to no ...
0
votes
1answer
41 views

How to set CATALINA_HOME in Windows 7 command line?

After installing Tomcat on Windows 7, I would like to start Tomcat in the command line instead of using tomcat7.exe from the folder (Windows GUI). Tomcat is installed under C:\opt\Tomcat7. Added ...
0
votes
1answer
33 views

Can I launch a URL in browser, from scheduler, unless the URL is already open in a tab in the default browser

I'm using the task scheduler in Windows to launch a page in the default browser at a particular time each day. The problem I have is that if the page is already open in the browser, it will open that ...
0
votes
1answer
48 views

Remove duplicate entries using bash, awk or sed

How can i search for duplicate data using batch? Goal is to remove duplicate "Changelist: XXXXX" entry from data.txt file. I'm kind of stuck, can somebody help me? Please take a look at output.txt ...
1
vote
1answer
31 views

Interactive search of tmux sessions

When switching between tmux sessions with the interactive session menu (<prefix>-s), you can jump to a specific session by typing the session's numeric or alphabetical index, e.g. (0) + ...
0
votes
2answers
46 views

Make chrome launch with command line switches without creating a shortcut

I have a lot of command line switches appended to the end of my shortcut to Chrome, but every time I launch chrome without using the shortcut, it loses the switches. Also, when chrome is launched from ...
0
votes
1answer
30 views

command to pipe in password when prompted by command prompt

runas /profile /user:administrator "cmd /c net user /add [username] [password]". I used the above command to create a new user using administrator permissions. After I enter this command, it prompts ...
0
votes
1answer
16 views

how to add all the integers between two lines with a pattern and print

I have an input file (sample.txt) Sat 02/28/2015__19:32:37.63 262,404 K 100,964 K 112,052 K 124,628 K Sat 02/28/2015__19:37:38.41 262,408 K 100,964 K 112,056 K Sun ...
0
votes
1answer
48 views

How to use Powershell command invoke-sqlcmd in batch script

I have a Powershell command that I want to be run in a batch script. It works well in the Powershell console, but I cannot call it properly in batch script. The Powershell command goes like this: ...
0
votes
0answers
9 views

iterm2 resize pane/window with command

So iterm2 on the Mac has some proprietary control codes that let you change the profile by sending them to the terminal on the command line. I'm wondering if there's a similar way to set the window ...
0
votes
0answers
12 views

Run appcmd.exe list wps as a RemoteApp

We have just switched to using RDWeb to host remote applications. I am trying to make a batch script which will open a command prompt and run a program, displaying the output to the user. It would ...
1
vote
1answer
28 views

Execute a program in tmux without scrolling

I use tmux (with zsh, if that helps). I have a pretty good setup, but often I find myself running a program with a lot of output, and then entering copy mode and reverse searching for the line I typed ...
-2
votes
1answer
29 views

Is there a command to convert administrator account to standard user account windows via a command line

Is there a command to convert an Administrator account into a standard/local user in windows via command line which can be implemented in a Java code?
1
vote
2answers
33 views

How can I force a scheduled .bat job to run in the foreground?

I have a simple .bat that runs a PHP script at the same time every day. @echo ON php C:\path\to\script.php argument pause It runs fine when I double-click the .bat file. And I set up a scheduled ...
0
votes
1answer
23 views

List files in cmd.exe numerically by default to generate a gif out of a sequence of frames

Greetings and Salutations All, I'm trying to create an animation using imagemagick via: convert -delay 80 -loop 0 *.png ani.gif The logic is finding all the .png files, except the file names are ...
0
votes
1answer
49 views

Restoring 'TrustedInstaller' as owner for executable in Windows folder

After changing the ownership of executables in the Windows directory (explorer.exe, regedit.exe etc.), I can't seem to change it back to TrustedInstaller using icacls.exe. Using the GUI method ...
0
votes
1answer
18 views

How to list chocolatey packages already installed and newer version available from command line?

I have following packages installed with chocolatey. choco list -localonly >choco list -localonly Chocolatey v0.9.9.2 adobereader 11.0.10 ...
0
votes
0answers
15 views

Deleting file artwork using the command line

How can I remove the artwork (added using iTunes) for a file using the command line? I found this here but it deletes a little too much, and also copies the file. ffmpeg -i in.mov -map_metadata -1 ...
0
votes
0answers
26 views

Auto close Command prompt

I'm trying to close the the command prompt in vbscript. Code Set oShell = CreateObject("WScript.Shell") Set oWmg = GetObject("winmgmts:") strWndprs = "select * from Win32_Process where ...
0
votes
3answers
38 views

Multiline && combinator operator for command chaining in batch file

I see that this operator is used in windows (and might be Linux?) to chain/combine multiple commands in one line. Commands are executed one after another, as long as preceding complete successfully ...
0
votes
1answer
41 views

Add Date-Time Stamp To Copied File using Windows Batch

I thought this would be simple but it seems more of a challenge than I thought. I want a file to be copied and pasted with a time stamp appended. I get the time stamp using this code: set ...