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
2answers
25 views

Manipulate text file from the command line?

With this command dir "directory" / s / b> c: \ file.txt I save all files in a given directory to a text file that formatting C:\Full Name But how to list files with the same extension (.wav) ...
-4
votes
0answers
21 views

Network Programming [on hold]

In this program you will implement a command line interpreter or shell. the shell takes in command from user at its prompt and executes it and then prompts for more input from user. shell should ...
0
votes
1answer
27 views

Windows Command line get disk space in GB

I'm trying to create a batch file to pull the total size and free space of the C:\ drive of servers (locally run script). I also need the output to be easily readable, so bytes is not going to work, ...
0
votes
1answer
15 views

scp sometimes adds a '-f' flag to my command

When using SCP to copy from a remote host to local (eg: scp -v foo-host:/source/path dest ) I look at the verbose output and notice this is the command sent over SSH: debug1: Sending command: scp -v ...
0
votes
1answer
10 views

How to change the color of the default title in iTerm2

Every time I execute a command, it's difficult for me to find where is the start point of the results comes from my last command. So I want to make the default line "Arthur-Mac-mini..." change color, ...
3
votes
4answers
48 views

How do I download/copy 15,000 folders from an FTP server to local machine on Windows?

I want to download around 15,000 folders not files from an FTP server to my remote drive. I have FTP software but it’s time consuming to do a batch transfer with it. So I am looking for a command ...
0
votes
2answers
21 views

Delete All Files Older Than Specified Time Within A Directory (Ubuntu)

I have a bunch of files in a directory with all different names and I want to delete all that are older than a specified time. Example: File1 File2 File3 File1 was made Mar 31 08:00 File2 was made ...
0
votes
1answer
14 views

How to include a call to ncat to a bash script?

I need to flush a memcached instance from a bash script, I found the following command which do the job: echo 'flush_all' | ncat localhost 11211 But my problem is that the script doesn't continue ...
1
vote
2answers
37 views

Change Powershell Execution Policy silently from Batch script

I would like some help on setting a registry value for powershell. The path is [hkey_local_machine\system32\windows\microsoft\powershell\1\shellids\microsoft.powershell] ...
0
votes
1answer
24 views

Strange Command prompt functions

One of our users noted that on startup, their PC automatically opened a command prompt. Thinking nothing of it, they left it open and went about their business. After a short while, they came back to ...
0
votes
0answers
16 views

Swftools “Swfstrings” how to get the position of the string to extract

I'm currently trying to find the value of a "string" which is in a "actionscript" of a "swf" file, using "Swftools" with the "swfstrings" command. But in order to extract the info, i need to know the ...
0
votes
1answer
24 views

Sending the command to run a batch file from web(remotely)

Is it possible for me to make my computer run a batch file through a web command? To make it more clear let me try to explain what i am trying to achieve. I want to run a squid proxy server on a ...
0
votes
0answers
13 views

Printing colorful syntax highlighting to paper

I want to print out some code on paper including syntax highlighting. After some research, I found out, that I could do this in the command line with pygments and enscript, but don't know how to ...
0
votes
1answer
18 views

Does changing the default program for opening a specific file affects the computer behavior?

I have some .java files that I want to view/edit in Notepad++, but I am not sure how this will affect other programs. Would the compiler still be able to compile them, or would I find some issues? I ...
2
votes
2answers
30 views

How can I get a list of all misspelled words in a text using Linux?

I have a text that has a number of misspelled words. I'd like to get a list of all those words, so for a text like this: This is just a normall line with some speling mistakes in it. It would ...
0
votes
1answer
19 views

7zip not allowing file extension in the archive name

7za.exe a C:\temp\file.txt.7z C:\temp\file.txt Error: there is no such archive why is 7zip not allowing file extension in the archive name? I even tried it with simple period in the archive name, ...
0
votes
0answers
13 views

Is it possible to extract ActionScript from swf files?

I'm desperately searching for a command line tool that allows you to extract ActionScript from an SWF file on linux. I need only the ActionScript part, not the assets.
0
votes
1answer
22 views

How to make window started with “START” commandline pause at the end of execution?

I have a .bat file that uses start command to run other scripts. I can make the .bat file wait for being closed by me with pause command at the end. But how can I make this pause to the scripts I ...
0
votes
1answer
13 views

Parameters with spacebars parsed incorrectly for a powershell script run from a batch file

I have a batch file that runs a powershell script and I need to pass two parameters to the script. In my batch it looks like this: powershell -executionpolicy remotesigned -File "my script.ps1" "my ...
-1
votes
1answer
36 views

command for adding a program at windows bootup

I want to add a java program in windows system boot up. Is there a command to do so?? I tried searching the internet and found steps to add a program but i need commands which i can implement in my ...
0
votes
2answers
15 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
23 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
17 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
30 views

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

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

How to bulk rename file in numeric order in windows7 [closed]

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
0answers
30 views

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

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
12 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
24 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
11 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
33 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
28 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
22 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
17 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
14 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
22 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
18 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
21 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
25 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
15 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
23 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
34 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
21 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 ...
2
votes
3answers
97 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
37 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
20 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
43 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
36 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 ...