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 (5)

0
votes
2answers
24 views

I know folder name and filename. How to find the subfolder name using cmd

I have a file name a.txt. I know directory name is d:\karthick but i don't know the subdirectory name using cmd prompt. Example: d:\karthick\sabari\a.txt I dont know know sabari folder. Using cmd ...
-1
votes
1answer
25 views

How to write cmd shim for msbuild?

People in my office often ask me 'how do I run those tests?'. I tell them, browse to the Build folder, open a command prompt, and run msbuild /t:Tests. That works for me, because msbuild is in my ...
2
votes
2answers
5k views

XCOPY /Exclude Directory Syntax

I'm trying to use XCOPY to copy a directory that looks like this: -MainFolder -ManyFoldersIWantToCopy -ManyFoldersIWantToCopy -... -Source Code I want to use the /EXCLUDE option to copy every ...
0
votes
1answer
46 views

Remapping all OSX shortcuts from cmd to ctrl

I am new to OSX, and since I have mapped CTRL to CapsLock, and use alt a lot, I dont need CMD, how to remap all shortcuts globally not to use CMD?
2
votes
2answers
113 views

In a specified folder, how can I recursively delete everything except “.mkv” and “.nfo” files?

I'm trying to figure out the code for a batch-file (Windows) that In a specified folder recursively deletes everything except files with a certain extension (i.e. .mkv and .nfo)? Something like this, ...
0
votes
1answer
1k views

Why do I keep getting this Imagemagick error?

I currently used this code for Imagemagick: convert "c:\users\****\My Documents\test.png" -transparent white test2.png However, I keep on getting two errors that look like this: convert.exe: ...
1
vote
2answers
1k views

Batch processing multi-TIFF in Irfan view

I have to convert DPI of more than 5k Tiff images on a monthly basis from 200x200 to 100x100. I can do that in Irfan view using a .bat file that i have created.. the following is the .BAT file code ...
0
votes
2answers
31 views

Is it possible to run a command after a “pause” in linux desktop?

Is it possible to run a command after a "pause" in linux desktop? For example: #========================================================= #NetworkManage Auto Connect: chkconfig NetworkManager off ...
1
vote
0answers
44 views

Open a URL file in a new tab of existing IE window from command line

When IE10 is set as my default browser, double-clicking an internet shortcut (*.url file) opens it in a new tab of the existing IE window. However, when it is not the default, every way of opening a ...
0
votes
0answers
24 views

IIS FTP Server won't prompt for password

Very odd behavior just started occuring this morning between two Windows 2K3 Servers running IIS6 and the built-in FTP service. For years I have used command-line FTP to connect from one Server to ...
4
votes
2answers
87 views

How to update the PATH user environment variable from command-line

I have a system PATH variable with the system level config. I use the user PATH variable to complement the PATH with user-specific config. I would like to update the user PATH variable from ...
3
votes
2answers
49 views

Always run a command after another command

With zsh (and oh-my-zsh), is it possible to always run a command after a certain other command? I want to always run an ls after cding to a directory, rather than running cd example; ls every time. I ...
0
votes
1answer
26 views

Determine the mapped network path from cmd window

I have a network drive - mapped to Z:\ Is there a simple command to know the full network path from cmd ? I.e. if cmd shows Z:\ABC\, I had like a command to output \\networkDrive\MappedDir\ABC net ...
0
votes
0answers
17 views

Why does my PHP 5.4 CLI have a 2-3 second delay before every execution

So I'm using OSX Mountain Lion, and the default PHP (5.3) worked fine. I used php-osx.liip.ch's install script to install PHP 5.4, and that works fine in Apache, and technically executes fine on the ...
0
votes
1answer
24 views

Linux/Ubuntu - How do I find all files with parentheses?

I have a large list of files in many folders. Some files are causing issues so I need to rename the parentheses to something else , anything else. I am trying to use these commands to find any and ...
4
votes
1answer
41 views

Program leaks Black and White onto PowerShell console

Some programs, such as Node Package Manager (npm) and some tasks for grunt change the color of my PowerShell console and leave it that way. Here's a picture: Anyone know why this is happening? How ...
2
votes
1answer
41 views

How can I do string translation on the windows command line

If I have something like set value = c:\\some\\path I want to convert this to c:\some\path. How do I do this?
25
votes
7answers
47k views

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

On WinXP, can I run a batch (.bat or .cmd) file, via a shortcut, without a "black window" ?
0
votes
3answers
74 views

mac equivalent to unix comands

I a working through a class project(command line operations are the the purpose of the project), OS was never specified but it seems that the command line commands are meant for Ubuntu. Are there mac ...
1
vote
3answers
167 views

How to use grep to search for regular expressions themselves, without parsing them

grep . filename.txt This just returns all of the contents in filename.txt, because . is a regular expression that stands for any character. How do I use grep to search for periods, or other regular ...
2
votes
2answers
40 views

Creating unique template HTML files for all MP4 files in a directory

I've prepared a number of video files that will each have their own HTML page. (I'm making a series of lecture videos and trying to keep things simple since I'm a chemist, not a coder.) I'd like ...
7
votes
5answers
14k views

Is there a command line tool to put windows 8 to sleep? [duplicate]

Possible Duplicate: How can I put the computer to sleep from Command Prompt/Run menu in Windows Vista? A few days ago I installed Windows 8. I first found the lack of the "shutdown" menu ...
3
votes
5answers
1k views

Use Ctrl+Backspace to delete word in Windows command line?

How could I erase the whole word with using Ctrl-Backspace in Windows XP command line? Is it possible at all?
1
vote
1answer
367 views

admin group disappeared; cannot groupadd

Okay, so this is embarrassing, but I seem to have lost the admin group on my machine, though I would have sworn I hadn't gone anywhere near it. I'm running Mint Maya. Trying to innocently sudo this ...
0
votes
2answers
409 views

How to set default charset in Windows cmd?

When I open a command line in Windows and type chcp I get result Текущая кодовая страница: 866 How do I set the charset to chcp 1251 by default?
0
votes
3answers
45 views

Win 8 64bit: How can I see memory info from the command line?

I need to see the memory use from command line: I have Win 8 for 64bit and mem command doesn't work. Even if it would have worked I'm not sure would give the memory for the entire system. How can I ...
9
votes
7answers
3k views

Advantages of cat'ing file and piping to grep

Are there any additional advantages of cat'ing a file and piping it to grep, besides convenience? The convenience being that, when I retrieve commands such as those below from my history, the cursor ...
1
vote
1answer
994 views

Make a batch file find duplicate file names with different extensions, and actions on the results

What I want to do is have a batch file search folders, and subfolders, for matching file names that are ending in .mp3 and .wma and delete or move the *.wma duplicates. Below you'll find what I have ...
8
votes
4answers
2k views

Is there a shortcut to mkdir foo and immediately cd into it?

This is something I do frequently $ mkdir foo $ cd foo This works as a single command, but it's more keystrokes and saves no time. $ mkdir foo && cd foo Is there a shortcut for this? ...
3
votes
4answers
1k views

How to determine the user and group of a deamon in Ubuntu?

How can I check the user and group for the nginx daemon in Ubuntu? Or what's the syntax to find the user and group for a deamon running in Ubuntu?
0
votes
1answer
34 views

Mirror website with wget but only matching url pattern

I want to mirror a website. It's built-on like this. abc.com/A/B/1/... abc.com/A/D/2/... abc.com/A/R/3/... abc.com/A/G/4/... abc.com/A/F/5/... abc.com/A/B/6/... And I only want to get all links ...
2
votes
5answers
1k views

Whats the best linux console tool to explore sound file information? [closed]

Im looking for console tool that will output most detailed information about sound file (particularly mp3). Tried to use different tools (id3, lame, ffmpeg) Looking to get such info: Format ...
0
votes
1answer
38 views

Shortcut to “Select all” in Windows 7 Command Prompt?

Is there any shortcut to Edit -> Select all in command prompt in Windows 7?
0
votes
1answer
48 views

Easiest way to run a command with admin privileges as a standard user in OS X

Situation: I'm running OS X 10.8.3 and i have 2 users, an Admin user and a Standard user. When i'm logged in as the standard user and i need to run a command with admin privileges in the terminal i ...
-1
votes
3answers
93 views

Knowing Command Lines in Ubuntu [closed]

I want to know if any references out there I can follow-up in everything that's going on in GNOME-Terminal I'm studying to be a web developer and I'm going to be making the jump to Web Administer I ...
29
votes
4answers
5k views

Linux equivalent command for “open” command on Mac/Windows?

Coming from Mac OS X, you can type: $ open yourfilehere.txt and your file will open just as if you had opened it from Finder. On Windows, one can type: > start yourfilehere.txt and it will ...
2
votes
2answers
80 views

How to undo “remove all dismount” in Diskpart?

I made a boo boo! I executed the following commands in CMD. diskpart list volume select volume 13 remove all dismount exit I have one of those dual-slot card readers with one slot for SD and one ...
0
votes
0answers
35 views

Can FIGNORE be limited to specific applications?

I know that you can use FIGNORE to remove filename completion from suffixes. For example, to avoid a lot of garbage files produced by LaTeX, I've been using: ...
0
votes
0answers
14 views

Error resizing mysql command line client

I installed MySql 5.6 on Windows Vista (32Bit). I am trying to resize the MySql commandline client window. Right Click on top left-> Properties -> Increase Width and height of screen in Layout Tab ...
3
votes
2answers
52 views

How can I pass two commands with all their switches in Windows command prompt or powershell?

I want to pass a netstat -t -b 90 command and tell the prompt to simultaneously or successively perform this command to launch network monitor start netmon /autostart.
0
votes
1answer
56 views

Qn: Is apt (on the Mac) the same as apt-get?

I'm a little new to this so pardon me. I am following a book which requires me to do "sudo apt-get install..." on an Ubuntu OS, but I only have a Mac. Found a UNIX executable in my Mac installed by ...
1
vote
5answers
698 views

Batch script halts after Thunderbird is opened

I want to be able to open Thunderbird from a batch script in Windows. I can do it just fine from command line: C:\>"C:\Program Files\Mozilla Thunderbird\thunderbird.exe" If I create a batch ...
1
vote
1answer
60 views

Batch script for archiving

I need to set up an archiving task on Windows 7 using Windows command line and WinRAR (or some other similar program). I want to create a script that does this, but I have no prior experience. I want ...
1
vote
2answers
36 views

Closing a (remote) linux command-line interface

If I run code (e.g. an executable) on a Linux command-line interface and then close the interface, what happens? Does the executable keep running in the background? What if it requires user-input? Can ...
3
votes
2answers
88 views

How to find multiple files in linux system

I have massive of files in my system and every file has one corresponded file name. For example, test.pdf has a test-project.zip test2.pdf has a test2-project.zip test.pdf and test2.pdf are the ...
0
votes
1answer
90 views

Need a script to calculate batch file execution time

I need a script that I can call/include from another batch file (.bat) that can calculate the amount of time it takes to execute the first batch file. The script would be used for automation on both ...
0
votes
0answers
19 views

Specify archive-to directory in 7z

I'm running 7z a from the command line and wish to specify the directory which the archive .7z file is to be in. I don't see, from the man page, a way to do this (and -o and -w don't do it). Is there ...
1
vote
2answers
46 views

netcat output into separate files using string delimters

I want netcat to pipe the output of a tcp/ip connection to commands that examine the output and split it into distinct files separated by the strings "msg" and "/msg" from the output, something like ...
2
votes
1answer
44 views

How to export a specific registry key to a text file using command line

How can I export specific value from the registry to a text file using the command line? For example, I want to export Hkey_local_Machine\Software\mcafee to a text file in C:. I just need the key – ...
6
votes
3answers
597 views

If a Windows cmd.exe is running with elevated privileges does anything I execute from its prompt also run with elevated privileges?

If my cmd.exe Window says "Administrator" in the title bar, indicating it was started with elevated privileges, does this mean anything I execute from this command window is also run with elevated ...

1 2 3 4 5 80