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
530 views

File matching pattern on command line?

Can someone help me with a relatively complex command-line file matching pattern? I've got files in a directory as follows: 1.png 1_thumb.png 1-1.png 1-1_thumb.png 1-2.png 1-2_thumb.png 2.png ...
2
votes
1answer
133 views

Problem with running different programs the Start - Run menu

When I try to run Chrome via Start → Run → "chrome", I succeed. However, I fail when I'm trying to run the Beyond Compare program via Start → Run → "bcompare", as I saw the ...
1
vote
2answers
287 views

how to set PATH variable correctly

I have some problems with setting my user variable PATH, my PATH contains the following line: %PATH%;"C:\Program Files\K-Lite Codec Pack\Media Player Classic";C:\Program Files\SSH Communications ...
1
vote
1answer
358 views

How can I maximize the window of a command line application? [duplicate]

Possible Duplicate: Is it possible to make consoles full screen? I have Windows XP installed on my laptop and can't maximize the window of my 16bit application. When I try Alt+Enter, it ...
1
vote
1answer
162 views

Why do wildcards behave differently for different drives?

I'm using a Windows XP SP3 machine. My Z: drive is a mapped drive to a UNIX box. There is a file called wk1_dailybackup_20110605043344.sql in both z:\archive and c:\archive. At my CMD prompt from ...
2
votes
1answer
4k views

How to configure putty key bindings to work with cmd.exe correctly?

If putty is connected to a ssh server running on windows and cmd.exe is used as shell, the cursor keys do not work correctly. Typically you could recall old commands with cursor up/down but inside ...
2
votes
3answers
3k views

SSH to server without including username in URL on Linux/Unix/Mac

I am trying to ssh into my server from the command-line without including the username in the url. I do not want it to send any username, as it currently takes the active account and sends that as ...
4
votes
1answer
2k views

gzip - Extracting without deleting zip file

Right now I am running an extract from a .gz file using the Windows gzip.exe. However when I decompress the file, it kills the .gz file and leaves me with the extract file. For example if I run this ...
4
votes
3answers
2k views

What happens exactly when I type 'bash' on the Terminal command line on Mac OSX?

I have an alias that I've added to .bashrc, and it only activates in Terminal after I run the 'bash' command. I feel like I should know what's happening here, but I don't. :)
0
votes
1answer
238 views

How to locally change the DNS tool in Windows?

I need to force my PC with Windows XP as if there were a DNS record on my domain, a CNAME record for paths with the value ghs.google.com. How can I do that? The DNS is cached somewhere between me ...
34
votes
5answers
5k views

What is the equivalent of Linux's “~” (tilde) in Windows?

In Linux, we can go to the user home by entering the tilde (~) character after cd: cd ~ How to do the same in Windows? Each time, I need to type: cd C:\Document and Settings\freewind That's too ...
0
votes
1answer
1k views

Setting CMD CD to the directory that the batch was run in

I'm trying to create a batch script that will open a program in a different environment (so I can make a portable version of it). I use this set APPDATA=%CD%\data to tell it to do that. The problem ...
8
votes
3answers
366 views

Is it possible to configure the way bash completes directory names?

I'd like to instruct bash to use a special method to perform completion on certain directory names. For example, bash would call a program of mine to perform completion if a path starts with "$$", and ...
8
votes
1answer
3k views

Linux: What is the best way to copy from a damaged HD?

I get I/O errors from my storage HD when i try to copy files. These are large raw video files, so I can tolerate errors. cp stops on the first read error and scp/rsync complains and deletes the copy. ...
25
votes
3answers
7k views

In Linux, how do I truncate command-line output?

If I grep -nr sumthin * in my source code directory, it also spews out very long lines from minified JavaScript or CSS files. I want to get just the first 80 characters per line. For example, a ...
1
vote
1answer
2k views

windows runas command with elevated privileges, user in admin group

I have a windows 7 user who belongs to admin group. I want to execute sc command that requires admin privileges. I DON'T want to open an elevated cmd, want to be able to simply Win+R->Enter command, ...
5
votes
4answers
6k views

Windows equivalent of ssh - how to connect to a remote machine and access command line?

I'm having a difficult time coming up with a solution to extend a framework that was designed for *nix machines over to windows. The framework currently runs from one *nix server and ssh's out to ...
3
votes
2answers
3k views

How can I configure the Command Prompt to display French correctly?

Observe the following snippet: PS Z:\dev\windows\nc\NC.ProtoBuf> hg help qimport hg qimport [-e] [-n NOM] [-f] [-g] [-P] [-r REV]... FICHIER... importe un patch Le patch est insÚrÚ dans la ...
0
votes
2answers
89 views

How can I specify what action (run/open/edit) I want to execute on given file in the command line window?

Is it possible to specify what action (run/open/edit) I want to execute on a given file in the command line window? If so how?
2
votes
2answers
191 views

Windows cmd dosn't find exe even if it's in the path

I just installed strawberry perl. It's bin directory shows in the path but windows refuses to run it unless I give the full path (I even tried to reboot to make sure all environment variables was ...
4
votes
2answers
4k views

Windows 7 Command Prompt problem - cannot find 'cmd'

When I try to open a Command Prompt in Windows 7, the following message comes up: Windows cannot find 'cmd'. Make sure you typed the name correctly, and then try again. How can I overcome this ...
5
votes
2answers
40k views

7-Zip command line: Extract silently/quietly [duplicate]

Possible Duplicate: How to disable the output of 7-Zip? I want to use 7z.exe from a command prompt to silently/quietly extract an archive. I do not want to use third-party scripts or APIs. ...
1
vote
2answers
328 views

Is there a way to schedule a shutdown on an interval from the command line?

I need to shut down a Mac every night at 10:00 pm. Does Mac have a scheduler that I should use, or should I defer to cron? I'm a Linux user, this was a question asked to me by a friend. I'd like to be ...
3
votes
1answer
166 views

Is there a way to insert a command into Windows Task Scheduler?

I need to run a command every night at 11pm on a Windows machine. In order to keep things simple, I'd like to automate the insertion of this command into Windows' event scheduler. I'm looking to do ...
0
votes
1answer
93 views

Windows 7 manage accounts

I have two different computers running windows 7 ultimate. Each computer has its own user accounts (both Administrators on the local computer). I try to figure how can I give an administrator ...
1
vote
2answers
1k views

Mac OS X Lion terminal places command prompt in the middle of PS1 envvar

Before I installed Lion opening a terminal window placed the cursor at the end of the prompt like so: Wed Aug 31{shirsch4@Susan-Hirschs-iMac}/projects/perl/perl/lib/Utils--><cursor> Now ...
1
vote
1answer
66 views

Any screen recorders specifically for CLIs?

I want to record videos specifically on Ubuntu's CLI and recordmydesktop has been giving me inaccurate window dimensions and low frame rates for following my typing. Ideally, I'd like to record on ...
4
votes
3answers
199 views

DVD filenames contain quote marks; can't copy to Windows machine

I need to copy some QuickTime videos from a DVD, but the filenames contain quotation marks so Windows prevents me from copying or moving them to my PC. Does anyone know what can I do? I am running ...
1
vote
1answer
183 views

How to delete files in a directory, that exist in another directory?

What I need is a 'subtract' operation on sets of files in different directories. Assuming this file system hierarchy: A\1.txt A\2.txt A\3.txt B\2.txt B\4.txt ... I'd like to remove all files under ...
6
votes
1answer
10k views

How to rename files located on a network path (UNC path) in Windows 7 command prompt?

In the command prompt, I need a way up rename a file on a remote server. Conceptually, this is what I am looking for: ren \\servername\folder\file.txt \\servername\folder\file2.txt Aside from ...
5
votes
1answer
11k views

How do I tell tor, from the command-line, to give me a new identity?

Is there a way to ask tor/vidalia for a new identity, via the command-line, as opposed to mousing to the icon, bringing up the menu, and clicking the option there? I'm running Mac OSX 10.6 and 10.7 ...
3
votes
5answers
5k views

Concatenating files from multiple subdirectories

Say I have a directory structure that looks like this: file1.txt folder1/ file2.txt folder2/ file3.txt How can I concatenate file1.txt, file2.txt, and file3.txt into a single file? Edit: ...
5
votes
2answers
9k views

7zip: How to exclude files (not file types) using an exclude list file?

I know you can create a text file containing a list of files and then tell 7zip to reference this file so that it can exclude them from the archive, but I cannot find the syntax for that. Can someone ...
3
votes
2answers
211 views

Virtualization of multiple command line tools

Short Question Has anyone had success virtualizing multiple command line tools in Windows? Background In a previous SU Question I asked how to setup isollated work envrionments. The over all ...
1
vote
1answer
2k views

vlc dshow:// how to limit playback time

I want to use VLC media player to record from an USB TV receiver. I would like to schedule when to record, but calling vlc from the command line: vlc -Idummy dshow:// ...
2
votes
1answer
8k views

Batch the “Extract Here” command

I would like to batch the "Extract Here..." command on a complete folder. Every type of archive should be unzipped into the current folder with the name of the archive file. I have found some BATCH ...
20
votes
3answers
45k 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 ...
4
votes
3answers
4k views

How to send a Skype message from the Windows command line?

I would like to send a message to group chat from the Windows command line. I know the chat name from skype, lets say it is 'TestChat'. What is the easiest way to do that?
3
votes
3answers
2k views

Terminal strangeness after installing Xcode on Lion

I have a simple custom bash prompt: PS1="\[\e[47;1;30m\]\u@\h [\W] \!\[\e[0;32m\]$\[\e[0m\]" It worked great under Snow Leopard, and worked great in Lion until I installed Xcode. I installed Xcode ...
3
votes
2answers
407 views

How to make a Two Minute Mute button?

Alternative phrasing: is there a commandline command to allow me to mute the speakers, and unmute them later. Ideally with the ability to fade-in. If I knew how to do that, I can work out how to tie ...
14
votes
6answers
5k views

Is there a Windows command line with smart bash-like autocompletions / command history?

I recently started using bash, and discovered some really wonderful features (not necessarily come out of the box, but can be configured): Up/down arrows support partial completion: Type "git ", ...
3
votes
7answers
6k views

Unix-type “locate” on Windows?

Using the Windows CLI (cmd), how does one locate a file that he knows part of the name of? For instance, every single Windows workstation installs javac in a different location, how would one find it ...
1
vote
1answer
320 views

How do I read data from my Address Book card from the command line?

From a Mac OS command line, I'm looking for a command that will read my address book card and print my email address to stdout. Doing it via an osascript command would be fine.
8
votes
1answer
6k views

sudo chown fails with operation not permitted

I have found similar questions here, but the answers provided to those questions do not resolve my problem. If I do: sudo chown <username> main.m I get an operation not permitted error. ...
1
vote
1answer
149 views

Why wouldn't a file show up on the Windows XP command line?

I've got a Visual Studio 2010 project with some post-build commands to neatly package up all the dlls etc that the project needs, zip them all, and then copy the zip to a network drive for ...
3
votes
1answer
383 views

Re-run command with prepended text from bash history

How do I repeat the last bash command with some text pre-pended to the front of it. So if the previous command was: $ ls /somedir I want to run the following command utilizing the bash history to ...
1
vote
2answers
77 views

Getting a list of network enabled processes

Can you possibly get a list of network enabled processes through command prompt that are working through internet and running on your operating system?
2
votes
1answer
6k views

Mac OSX Terminal cmd/script to display HDD sectors pending allocation

I've been trying to find a way to get terminal to display results of a SMART status check in the terminal for a recovery drive I use. The cmd diskutil info or diskutil info -plist / only say whether ...
6
votes
1answer
23k views

DOS Batch file to find “new” files by date

My PC has entered an infinite BSOD loop - but I do have access to a safe-mode command prompt. I'm trying to get an idea of "what changed" that might have triggered this. e.g. I might have gotten a ...
4
votes
2answers
4k views

Why am I getting “File Not Found” when typing “dir” in the command prompt?

On my Windows XP machine, I type dir into the command prompt in a specific directory. It starts to list a bunch of files but then pauses and then shows File Not Found. Does anyone know why that ...