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)

2
votes
2answers
5k views

Need help creating advanced context menu command in Windows 7 (x64)

I found out about ForceBindIP and I really love it, so much that I am using it regularly enough to where spamming the same command prompt over and over again is getting painful. I'm on a 64-bit of ...
-1
votes
1answer
26 views

windows 8.1 - simple setup that do not require admin right but prompting for User account control

I have windows 8.1 with standard user account when I run simple setup that don't require admin right but prompting for user account control which runs perfectly in widows 7 standard user. Even ...
0
votes
0answers
20 views

If screen's C-a A command does not work, what internal state must be wrong?

In the Linux command screen, you can type C-a A to change the name of a window. Right now I am running a screen session with six windows. The first four have custom names - great. The last two I want ...
-1
votes
1answer
92 views

Create a word cloud on linux command-line

I'd like to create a word cloud on the linux command-line, similar to wordle and similar services. How can I do that? I have plain-text files and I'd like to create a word-cloud for each one.
0
votes
0answers
79 views

Install SSH server using command line commands

There is a windows server with running HTTP and FTP server. I have access to the command line because I've run HTTP server under administrator account, however it's much more comfortable to run the ...
1
vote
1answer
27 views

Using cURL command-line tool on Mac, What can I do to this script to ask it to fetch stock data which will replace commas with NO SPACES

Example: Google Outstanding Shares are 670,000,000 and this value is collected in a txt file from Yahoo Finance API via the below script. The issue is; that numbers WITH commas or spaces are a bloody ...
0
votes
0answers
22 views

Commandline chat for Gmail chat in MAC OSX

Is there any tool for having gmail chat/Hangouts in my mac osx terminal? Googled a lot but couldnt find a reliable one that works for mac osx; most of them are for linux os.
2
votes
2answers
46 views

Set not setting in CMD batch script

I'm trying to write a script that will find all directory junctions on a disk and then recreate them in another location. First of all, I have to find all the junctions and edit the output to be more ...
2
votes
1answer
3k views

CutePDF command line or equivilant

Is it possible to run a command that will automatically print to file using CutePDF? I have tried this and still no luck: print C:\test.doc /D:CPW2 If not any other suggestion on how to automate a ...
0
votes
1answer
38 views

Linux bash command to list hidden files first, then other files sorted by extension

This page: How can I make "ls" show dotfiles first? lets me list hidden files first, but I also wish to sort non-hidden files by "extension" e.g. all filenames ending with ".png" come after ...
6
votes
3answers
20k views

How can I retrieve the Session ID from command line?

How can I retrieve the current user session ID via windows command line? In the tasklist under the users tab, each user is associated with a session ID. I want to retrieve this via command line so I ...
13
votes
6answers
30k views

Got not sufficient privileges message in CMD when logged on as administrator

I was trying to use mklink command in cmd (i have Windows 7 os) I was logged on as administrator, but i got a " you do not have sufficient privilege to perform this operation" message. I used the same ...
51
votes
15answers
69k views

How can I always run the command prompt as administrator?

As a developer, I often have the need to open a command prompt for various purposes. For example, I use iisreset to restart my local web server. I typically open the command window in one of two ...
0
votes
1answer
36 views

What is the difference between running @powershell and powershell (any command with @ at the front)?

Just installed Chocolatey and in their installation instructions they have @powershell -NoProfile -ExecutionPolicy unrestricted...... I tried to run @cls in my console and it worked too. It's ...
2
votes
2answers
127 views

How to install a dummy printer by command?

i need to install a fake/dummy printer on windows using a command or a batch file. I was able to install a dummy printer using the wizard and selecting a NUL port. The problem is that i need to add ...
0
votes
1answer
34 views

Can I adding files and import comment to archive by a command line

I use below commend to add the file to the archiver and add data recovery recorder on linux os rar a -m0 -hp"$password" -v1073741824b -rr3 -ep1 test1.rar test If I want to add the comment from the ...
0
votes
2answers
41 views

Execute command on linux virtual machine (or server) from windows commandline

I usually use software on a windows machine, but now need to call one commandline executable that I only have a Linux version of. I installed a linux virtual machine, but I would like to be able to ...
0
votes
1answer
19 views

Uncompress bz2 file from command line on Windows

Is there any tool in the Windows command line that allows me to do this? Otherwise, is there any light and portable application that will allow me to? Related question, can I rename .bz2 extension to ...
0
votes
1answer
50 views

How to stop a running .bat file which runs after every 10 minutes

I have written a .bat file which runs every 10 minute. The problem is now when i want to stop it it never stops. (This .bat file further calls a perl file in the code). What can be done to kill it ? ...
0
votes
0answers
34 views

How to find which of my ports are blocked using CMD?

Is there any way to find which of my ports are blocked using commands in command prompt? I tried online port checkers but they are not accurate because all of them show that my port 25 is blocked and ...
234
votes
10answers
175k views

Is there any 'sudo' command for Windows?

I always work on a non-administrator account on my Windows computer. Sometimes I need to install programs which requires administrator access. As I mostly use the Windows command prompt, is there a ...
1
vote
0answers
33 views

To send Enter key over remote computers in CMD

Below is my batchfile script that will launch an application in HOST & remote computers. @echo off setlocal enableextensions enabledelayedexpansion for /f %%a in (C:\COST\PCList.txt) do ( SET IP ...
1
vote
1answer
46 views

Running a batch file command with arguments

I'm creating a script to do some repetitious OpenSSL work, but cannot seem to get the batch file to execute the commands. Once the file has navigated to the correct directory, I try running: openssl ...
18
votes
3answers
43k views

How do I delete directory trees via console on Windows 7?

I want to delete the whole content of a specified folder on Windows 7 via batch file. My problem is, that 'del' or 'erase' only deletes the files, not the folders and 'rmdir' or 'rd' Always deletes ...
1
vote
1answer
61 views

Using the with cURL command-line tool on Mac, What can I do to this script to ask it to fetch stock data which comes back WITHOUT commas?

cd documents/quoteUpdate while true do curl -o quotes.txt -s "http://download.finance.yahoo.com/d/quotes.csv?s=goog,aapl&f=sl1c1p2pt1" echo UPDATED: date sleep 10 done
3
votes
1answer
333 views

Error while installing OpenVZ kernel using yum in Fedora 17

I was trying to install OpenVZ kernel(rhel 6) in Fedora 17.Things worked fine until i issued the 'yum install vzkernel' command.The messages that i get at the end are: Error: systemd conflict with ...
0
votes
1answer
30 views

Why Oracle java do not appears in the alternatives command on redhat 6.5?

I have redhat 6.5 x64 and java preinstalled on it. The command java - version shows: java version "1.7.0_45" OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15) OpenJDK 64-Bit Server VM ...
4
votes
4answers
3k views

FTP Server via command-line

Does anyone know of a FTP Server that can be run via the command line? Ideally I want a self contained server.exe file (.dll's/configs are fine) than I can set up, start/stop via the command line, ...
3
votes
2answers
3k views

Cut single page PDF document in half (vertically) from command line on a Windows machine?

Is there a way to cut a single page PDF in half (vertically) from the command line on a Windows machine?
25
votes
5answers
19k views

How do I close the Terminal in OSX from the command line?

Why doesn't "exit" close a Terminal.app window on Mac OS X? $ exit logout [Process completed] Is there a way to close the window without using the mouse?
2
votes
3answers
3k views

How to set to a variable, the result of a expression

I need to extract the date of a file, for then use this string as part of the name of a new file. I trying to solve this using the next commands: First I get the details of the file and redirect the ...
0
votes
0answers
21 views

I have created a symbolic link I can't delete (command line OS X, windows share)

By accidental use of the ln command I have created a symbolic link file which I can't delete. It's on a Samba share I have access to. I have tried deleting it in various ways, command line, mouse ...
51
votes
9answers
121k views

How to run a batch file without launching a “command window”?

On Windows XP, can I run a batch (.bat or .cmd) file, via a shortcut, without a "black window"?
28
votes
4answers
29k views

There's no 'sudo' command in Cygwin

Because there's no sudo command in Cygwin, scripts that I want to run fail with ./install.sh: line N: sudo: command not found What's the standard way for getting around this? Editing the scripts ...
0
votes
1answer
34 views

console command result as input file for sed or other commands

Some commands take a file as an input, is there a way to treat a result of a command as a file? for example I want to get a string between 2 strings: sed -n "/START-WORD-HERE/,/END-WORD-HERE/p" ...
0
votes
0answers
45 views

How do I broadcast webcam footage with a 1 hour delay in VLC?

For an art project I am looking for a way to continuously view the footage from my webcam with a delay of at least 1 hour. I am no expert at all, but I thought maybe it would be possible to record a ...
1
vote
1answer
7k views

Checking if a user account is locked on another domain controller

I'm trying to see if a user account has been locked out, using the command line. I thought that I could do this with the net command, but when I run the command NET USER username /domain it ...
2
votes
2answers
67 views

Renaming .jpg files in subdirectories without changing the creation date (on a MAC)

I have a bunch of JPEG files with exactly the same name (i.e. "orig.jpg") each in a seperate subdirectory. Each subdirectory has a unique name (e.g. xplmz3nc5n, tyrn5m6ktv, etc...). I want to rename ...
2
votes
2answers
3k views

Setting multiple environment variables in a shell spawned via windows batch script

I have a batch file that spawns a shell with a modified path with the following command: cmd /K set PATH=%PATH%;<additional path locations> I want to set additional environment variables for ...
0
votes
1answer
28 views

CMD command to open a file using link

Below is my batch file script @echo off setlocal enableextensions enabledelayedexpansion for /f %%b in (C:\COST\Programlink.txt) do ( %%b pause ) And in the programlink.txt as mentioned in the ...
0
votes
1answer
32 views

I installed a python package on Windows using pip. Why can't I call it from the command line?

In Powershell I installed boto-rsync using pip: PS> pip install boto-rsync That installed boto-rsync in C:\python27\Scripts as 'boto-rsync' as expected. I have C:\python27\Scripts in the path ...
1
vote
1answer
54 views

Download files from web, unknown name of file

I need to download 10-15 programas every week, and looking how to automate the process. It's easy when I know exactly the name of .exe file; but what about the case when I dont? For example, lets ...
0
votes
1answer
403 views

Joining videos using the command line

I've had a little mishap with the external harddisk and I've had to restore some files. Now I have a bunch of video fragments that I'd like to join up again. I can play the fragments using VLC just ...
1
vote
1answer
189 views

Write text into first lines of every file

I want my web application to be free software, with a GNU license. I've read that I should add my name and the license in every file. I have a lot of files, so I guess that I could execute a command ...
1
vote
2answers
3k views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
1
vote
2answers
85 views

How to un-append 600 pictures from a now single file?

Just copied about 600 pictures into a folder that didn't exist, expecting Windows to create the folder: copy *.jpg C:\2jpg Now I have a single file containing all the pictures. How can I ...
0
votes
1answer
3k views

How to mount WebDav filesystem on Mac?

Trying to do the following: mkdir /Volumes/temp mount_webdav davs://myusername@webdav.yandex.ru:443 /Volumes/temp It doesn't return any error, but /Volumes/temp is empty in result. Here are the ...
0
votes
1answer
32 views

Utility to Synchronize File Creation Date with Modified Date, Preferably Context Menu Capable for File Explorer [closed]

I'm annoyed when I copy files and the creation date is made new. I know that's technically true, the file is copied so its creation date gets changed, but when the modified date of the copy is still ...
0
votes
0answers
13 views

Proud to have succeeded in renaming a file starting with “??” [duplicate]

I was using the shell terminal to rename and move files. I am rather not an expert. I made a mistake (I believe, using ctrl-v instead of cmd-v to paste a piece of text into the bash line, set a wrong ...
0
votes
3answers
3k views

run 'net user' command as administrator

I was writing a simple batch file with the following command net user Abhi * where Abhi is my username and I am the administrator of my computer. On execution, it prompts for a password and then ...