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
1answer
3k views

How to output batch command to null

@echo off mode con:cols=40 lines=2 echo BJNNAHQT4YRV57GITREWQ88|clip cls echo Wireless Password copied to clipboard. timeout 2 > NULL How do I make timeout not print any text?
0
votes
1answer
284 views

bash tab autocomplete feature

I would like a bash autocomplete feature that would cycle through all the possibilities, like in zsh, while also doing the usual operation, which is to print all the possibilities, assuming there ...
3
votes
1answer
2k views

7-Zip command line to zip all the content of a folder (without zipping the folder itself) [duplicate]

Possible Duplicate: Create an archive from a directory without the directory name being added to the archive I have a folder that I want to zip completely: MyFolder | |--- ...
3
votes
1answer
2k views

*nix `free` or DOS `mem` equivalent for Windows 7 (64-bit)

On *nix systems, free displays the total amount of free and used memory in the system. From my research, the DOS mem command is similar, but it is not available on 64-bit versions of Windows 7. Is ...
3
votes
2answers
922 views

Run a CMD comand from a key stroke?

I'd like to run a certain batch when I hit some given combination of keys. It's as simple as, when I hit, say, CTRL+D, I want to execute the command C:\scripts\run. Is there any way to do this, ...
1
vote
1answer
533 views

How to pipe output of tail -F on OS X?

I've recently moved from Ubuntu to OS X and I'm finding that the 'tail' command behaves differently. On Ubuntu I could run tail -f xyzzy.log | espeak (To have the computer read me what's happening ...
1
vote
1answer
1k views

DOS copy recursive, but squash directory structure

Similar to How can I copy file recursively ignoring destination directory structure? but in DOS. I'd like to copy all files recursively, but in the destination folder I'd like to squash the directory ...
1
vote
1answer
287 views

How use windows command-line to run tools like SVN and MYSQL without going to theirs respective path [duplicate]

Possible Duplicate: Adding an .exe to default path without adding the directory What are PATH and other environment variables, and how can I set or use them? Hi I would like to use ...
1
vote
2answers
784 views

How do I run a command with elevated permissions within a PowerShell/cmd.exe session?

In Linux, one can do su to become root (Administrator) for multiple commands, or sudo ... to run one command as root. Is there something similar in Windows, for either PowerShell or cmd.exe, that ...
2
votes
3answers
1k views

Where are these non-default Vim settings stored if not in my .vimrc file?

So when I press :set I see a bunch of settings that are not on my ~/.vimrc file. (My guess is they're settings I've set years ago and don't remember). So I do :version and get a path $VIM/vimrc, ...
1
vote
1answer
7k views

Runas different user to launch CMD and run command

I want to run a batch file as a different user, via the Windows -> Run dialogue. I have tried: runas /profile /user:test CMD "C:\Users\MyName\Desktop\Run.bat" runas /profile /user:test "CMD ...
6
votes
5answers
16k views

how to list all files and directories in given directory with full path but not recursive?

Somehow like dir /b command but I need also hidden and system files there. Built in dir command doesn't allow to list such 'hidden' files with the rest and I must use /s to have full path in there, ...
0
votes
0answers
389 views

ping and tracert don't work, while netstat does on windows pc

I am relatively new here and I don't even know if I'm asking the qn in the correct site. Please bear with me if I'm wrong. In my command line netstat works, but ping and tracert don't. I don't get ...
1
vote
1answer
791 views

Open Notepad++ with a folder as a project

I am looking for a way to open notepad++ in a folder (using cmd) and auto-load this folder as a project or open it with light explorer plugin. Say I go to D:/foo/bar in cmd and want to run something ...
11
votes
1answer
32k views

Tunnel adapters on ipconfig?

Hello I recently noticed unusual information in my IPCONFIG. Usually I only see Ethernet adapter Local Area Connection, but now I see Tunnel adapter isatap... and Tunnel adapter Teredo... I was ...
1
vote
1answer
357 views

cd Command Linux and Mystery Flags

Platform: CentOS 6.2 Shell:tcsh I'm playing around with cd for a BASH script, and noticed the wondrous cd - option, but was left with many questions... Why the cd -? Isn't this redundant with cd ...
1
vote
3answers
931 views

On Mac, how to open a file from command line and have it shown in an existing Emacs window?

How to open a file from command line and have it shown in one of the existing windows in the existing frame, otherwise in a new window in a new frame? The default behavior is it is opened in a new ...
0
votes
0answers
5k views

CMD - Rename Local Computer, Join Domain, Join Specific OU

Alright so not sure if this is entirely possible all in one. Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the ...
2
votes
1answer
4k views

Is there any way to elevate a command prompt in Windows 7? [duplicate]

Possible Duplicate: Elevate a running program to administrator (Windows 7) Situation: I start a command prompt normally, without Administrator permissions, either accidentally by habit or ...
0
votes
2answers
226 views

Shortcut to cd (change directory)

Is there a way I can set up some shortcuts to my most used directories? I mean "cd trunk" would always get me to my trunk location (e:\projects\work.....) from any place ?
1
vote
1answer
373 views

Windows command line commands intermittently do nothing

UPDATE Just speaking to the two devs in question now and they both said they are running Win XP 2002 SP3. This could well be an issue to. Damn that's old. All, I'm not sure the best way to ...
2
votes
3answers
2k views

Find multiple files in linux

I am searching for files in linux and am able to execute the command to search for a single type of format e.g *.jpg but would like to find all files with *.jpg and *.css in one command.
0
votes
1answer
267 views

Reverse Terminal Commands - Mac?

I'm using OS X Snow Leopard and typed this cmd into Terminal after reading a blog post that claimed it was a fix for a particular problem I was having, but it has caused other config issues instead. ...
1
vote
0answers
145 views

Run a script when connected to wireless (Windows XP)

I want my computer to run a script when it connects to my home WLAN. This Answer is very good but all the options are not available under Windows XP. Are there Windows XP build in tools to do this?
1
vote
1answer
1k views

How to diagnose “Windows cannot access the specified device, path, or file” error?

When running Python script at the command line I get this error Windows cannot access the specified device, path, or file. You man not have the appropriate permissions to access the item. How ...
0
votes
0answers
705 views

Recall Commands In Windows With Command Prompt History

is there any chance of getting history from previous sessions of Command Line in Windows OS? I have tried Google, however I wasn't in able to find anything relevant.
0
votes
1answer
576 views

ShellScript:dialog inputbox

Somehow to interact with user using shell in Linux you can use dialog. my question about dialog --inputbox where you let user to enter a string as an answer to a question then you can redirect the ...
5
votes
1answer
3k views

How to start on-screen-keyboard when installing windows

How do I start the on-screen-keyboard during the windows installation process? I need to install Windows 7 and I don't have keyboard, I only have a mouse.
0
votes
1answer
295 views

Testing UNIX `mail` command in OS X. Sending to gmail, but how do I reply?

OK, so sending works fine, but what I receive is from "Username@ComputerName.localhost", which clearly cannot be replied to. Is there an IP address linked to the email that can be used to respond? -- ...
0
votes
1answer
1k views

Disabling QoS Packet Scheduler in Windows Server 2008 via script / command line

Currently you can enable/disable "QoS Packet Scheduler" using Windows GUI. Right-click on the NIC, Properties. Is there a way to do this from a command line ? or scripting ? I have many windows ...
1
vote
3answers
4k views

Search for files and print their full path

ls -R /media/X | grep filename lets me search for file names, but it only prints the file name and not the directory it resides in. How can I print the file name and its directory?
0
votes
1answer
355 views

Converting PPT and XLS to TXT from Linux command line

I want to convert PowerPoint (.ppt) and Excel (.xls) files to a plain text format (.txt) from the command line on a server running Linux. The server does not have xorg or similar libraries installed, ...
3
votes
1answer
9k views

How do I view a list of devices from the command line in Windows

I want to use the Windows command line to enumerate through devices connected to a computer and return information. How can I accomplish this?
5
votes
4answers
11k views

How to remove “System File” attribute from a file without command prompt?

Is it possible to take away a file's "system" file attribute without using command prompt? Basically, I want to do this: attrib "folder" -s attrib "file" -s without using command prompt, or a batch ...
2
votes
2answers
4k views

cmd.exe customizing the “Open Command Prompt here” shell extension

Thought I would see if anyone had any pointers on the following situation. I've been customizing command prompt to my needs, and recently changed the prompt for my user. Instead of displaying the path ...
10
votes
2answers
59k views

How to start a program with command line arguments on Windows' cmd with 'start' command?

I need to start a program (virtual machine) in the background with a start command on Windows' 7 command line. Normally you owuld do this like that : start /b cmd yourprogram But I need to pass ...
2
votes
2answers
1k views

Use output from command line as a parameter for a command [duplicate]

Possible Duplicate: How to replace a command with the result of another in linux? I'm able to parse my command output so it only shows the file name that I'm interested. My question is, I ...
6
votes
3answers
2k views

Why doesn't “cd D:” change the command context to D:? [duplicate]

Possible Duplicate: Using cd Command in Windows Command Line, Can't Navigate to D:\ Every time I want to change directory context to another drive (D, E, F, or whatever..) on a Windows ...
3
votes
2answers
638 views

How can I “which <binary>” in cmd.exe

Is there a way to quickly determine where a binary (that the %PATH% variable points to) is located. That is something that would do the equivalent of which perl in a traditional unix shell. I ...
9
votes
1answer
14k views

How to detect the speed (fast or gigabit ethernet) of a network connection over Windows command line

To troubleshoot a network problem I would like to inquire the real network "speed" for a given network adapter, which can be seen when opening the "status" of a network connection under Windows: ...
2
votes
2answers
1k views

Set relative time using command line

Using something similar to the date command, is it possible to set the date and time relative to 'now'? So instead of something like date +%T -s "10:13:13" something like date -s +1h or something ...
2
votes
1answer
2k views

Copy all files with a certain extension into a single directory (w/o directory structure)

I have been trying to copy all files in the various subdirectories that have a jpg extension located on C: into a single directory on D:. I don't want to preserve the directory structure. This is as ...
2
votes
2answers
6k views

Change VPN in Windows 7 from command line

How can I change my VPN connection settings in Windows 7 from the command line? I know how to do it using the GUI but I really need to do it from the console. I need to change the user, password and ...
1
vote
2answers
336 views

“which” Program Requires Shell Refresh to See Newly Installed Programs?

Why does the Linux program which require you to refresh the shell (e.g. type tcsh in the terminal) to see new programs installed in your path?? I was baffled why I couldn't access a program, which ...
6
votes
3answers
13k views

FTP “425 Can't open data connection” only happens when using command prompt

All of my computer are behind a single router. I have a FileZilla server running on one of them. I am trying to automate an upload to the server using a batch script and Window's built-in ftp.exe. ...
0
votes
1answer
805 views

Unable to use command line on Mac OS X

I can't use my command line (terminal). sudo gem install compass but I only get "command not found". I'm admin om my Mac and my password is not blank. I've also tried this: defaults write ...
1
vote
2answers
904 views

VLC find out when movie stops from cmd

I am working with VLC from C# by creating a process that opens the command line. Is there any way of knowing when a movie ended in from the command line or something ?
4
votes
3answers
2k views

How to quickly save what is currently shown in cmd.exe to a file

I am asking if there is a quick way/command to save the current standard output from cmd.exe or powershell to a file. For example, I have run a bunch of commands in cmd.exe which generating like ...
2
votes
1answer
86 views

Duplicate a mostly empty disk?

What's the fastest way in Linux, using free tools, to duplicate a mostly disk onto another identical disk? In this case, SD cards, but I think the same would apply to USB drives, HDDs, etc. I have ...
1
vote
2answers
5k views

How can I turn on File and Printer sharing, and the Firewall from the Windows command line

I am using PsExec to access cmd on a Windows 7 computer on my network, and I want to turn on File and Printer Sharing, followed by the Windows firewall without having to get up and walk all the way to ...