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

DOS command-line query returns too many results

Can anyone tell me why dir *.asp returns all .asp files but also all .aspx files? It seems dir ignores extensions longer than three. This is really bugging.
0
votes
1answer
16 views

Looking for bash command to recursively find and copy only files from one dir hierarchy to another

Is it possible to run a command using bash that will replace all the files in one directory structure with all the files in another. For example, if I have these two directory structures: dest dest/A ...
0
votes
2answers
26 views

Why redirecting FINDSTR output produce UNIX line ending?

When I issue this command: FINDSTR /I /N "<sdk:extra>" addon.xml output is: 973: <sdk:extra> 995: <sdk:extra> 1017: <sdk:extra> 1036: <sdk:extra> 1057: ...
15
votes
5answers
36k views

List all members of a group (Mac OS X)

I've tried Googling but not getting anywhere. How can I list all the members of a group called mygroup from the command-line in OS X? $dscl . list /groups will get me all the groups...but how can i ...
0
votes
1answer
23 views

Long commands typed in bash overwrite the same line

Since We updated Bash to 4.3.27 when I type a long command, if it reach the end of terminal window, instead of continuing in a new line, it overwrites over the same line using a ">" at the beginning ...
4
votes
3answers
9k views

Interactive Session 0 in Windows 7

I'm trying to launch cmd.exe in session 0. So far I've done the following from an elevated command prompt: sc config UI0Detect start= auto net start UI0Detect And the response indicates that the ...
0
votes
0answers
27 views

Syntactic differences in cp -r and how to overcome them [migrated]

Let's say we are in a blank directory. Then, the following commands: mkdir dir1 cp -r dir1 dir2 Yield two (blank) directories, dir1 and dir2, where dir2 has been created as a copy of dir1. ...
3
votes
2answers
210 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 ...
8
votes
2answers
569 views

Open the folder associated with the Command Prompt's working directory? [duplicate]

I am wondering if there is a command one could type into The Windows Command Prompt which would cause Windows Explorer to open a folder set at the Command Prompt's current working directory? (This ...
1
vote
0answers
17 views

Windows 7 text input/graphics repainting in random areas

In the past few months I've been encountering this issue where the line of text being typed in the command prompt window reappears in a random place on screen and paints over whatever was previously ...
0
votes
1answer
19 views

Storing info from wmic as variables in command prompt (Windows 7)

I'm trying to write a batch file that copies a folder from my flash drive to the desktop. I want the batch file to achieve this on any pc in my college. the command wmic logicaldisk get ...
55
votes
6answers
84k views

How can I open a command prompt in current folder with a keyboard shortcut?

How can I open a command prompt in current folder with a keyboard shortcut in Windows 7? Is there any way to implement this? I think Autohotkey could do this, but don't know how.
1
vote
1answer
25 views

In bash: processing every command line without using the debug trap?

I have a complicated mechanism built into my bash environment that requires the execution of a couple scripts when the prompt is generated, but also when the user hits enter to begin processing a ...
1
vote
1answer
81 views

DOS command to remove file_001.* copies, but only if file.* exists

Didn't find the answer, hope it has not already been answered here. I have a tree of directories containing files and sometime a copy at the same location. This copy is identified by some string, ...
2
votes
4answers
779 views

Set the tab length in cmd.exe

By default tab characters in cmd are written as 8 characters long. Is there any way I can change this to something smaller? We use tabs for indentation in our code. So diff output from Mercurial ...
1
vote
1answer
35 views

WinRar - Custom shell commands

i'm trying to create custom commands on the context menu in windows. i found this great registry hack here: https://superuser.com/a/376879/395548 this is the code made to work for me: Windows ...
10
votes
4answers
5k views

Equivalent to ^D (in bash) for cmd.exe?

Is there an equivalent key-stroke for exiting a command prompt on Windows (launched via Start->Run : cmd) to the bash standby of Ctrl-d to prevent needing to type exit to leave the shell?
0
votes
2answers
36 views

How can I get my prompt back after starting Emacs from the command line?

After I type emacs somefile at the command prompt and hit Enter, I don't get my prompt back until after Emacs closes. How can I run Emacs so that I get the prompt back immediately after Emacs starts? ...
0
votes
0answers
21 views

Silent uninstall with the Flash Player Uninstaller

I am using this tool to uninstall broken Flash installations on Windows 7. I would like to known how it can be run silently from command line. I was able to find to some answers to this so I known ...
1
vote
4answers
202 views

How to batch compress images with Imagemagick or similar command or program in Linux

I recently learned about the convert command from imagemagick which I have used to compress many pictures that I have for personal use, and for a blog that I have. In my experience, Imagemagick is the ...
0
votes
1answer
591 views

Environment Variable ORACLE_UNQNAME not defined

I'm trying to install Oracle 11gR2 Entreprise Edition but during database creation, I got this Error : Environment Variable ORACLE_UNQNAME not defined And when I tried to lunch 'emctl.bat' From ...
4
votes
8answers
120k views

How to launch Internet Explorer from the command prompt?

I have to launch Internet Explorer from the DOS command prompt. I have done it with Firefox, like: cd \program files\mozilla firefox\ firefox How to do the same with Internet Explorer?
18
votes
3answers
42k 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 ...
0
votes
1answer
30 views

Notepad++ search and replace with current line number

I am using notepad++ and am using it to create 200 copy commands. Each line starts copy \\server\\folder\a.pdf 1.pdf I want the 1.pdf to be a different file name for each line so I was thinking of ...
0
votes
5answers
869 views

Select text across lines in cmd.exe?

Is there a way to select text across lines as a single line in the Windows command prompt? For example, selecting this rectangular selection: puts two separate lines in the clipboard, even though ...
0
votes
1answer
33 views

Launch emacs with ediff-files (of ediff-directories) from command line

I would like to launch emacs to ediff either files or directories. For example, I'd like something like: emacs -f ediff-files file1 file2 But when I do this, it doesn't take file1 and file2 as the ...
1
vote
2answers
223 views

Convert YouTube DASH audio (youtube-dl) to m4a (AAC DL)

I am unable to listen to m4a DASH audio I download from YouTube via youtube-dl on Winamp. Is there an option in youtube-dl to remove the DASH audio part of m4a file and download/save it as an m4a (AAC ...
0
votes
2answers
44 views

accessing a computer through the command prompt [duplicate]

I'm trying to access files on another machine on the same network, I know you can do it with Windows Explorer by typing \computername\c$ etc. but when I do it in the command prompt it shows an error ...
2
votes
2answers
176 views

Tmux - Check if server is up

Is there any known tmux-function, like tmux has-session -t <session>, but to check if the tmux server is currently running? It would be handy when writing automation-scripts. When checking if a ...
0
votes
0answers
16 views

Control vmware workstation network “bandwidth” settings from command line

Is there a way I can use the command line to adjust the network bandwidth settings of a running VMware Workstation instance?
4
votes
5answers
2k views

Even on Windows 7, can you do a “dir” and be able to see filenames that has unicode characters?

This is somewhat related to question http://superuser.com/questions/157207/on-windows-7-dir-or-tree-cant-show-unicode-characters-even-starting-cmd-with-c Even on Windows 7, I found that the only ...
5
votes
2answers
4k views

How to drop all MySQL tables from the command-line?

Usually I open Terminal.app and connect to a remote MySQL database. Then I use this command to drop a table: mysql> drop table [table name]; But what I need is the command line to drop all ...
0
votes
1answer
23 views

Change the default command line startup location in Windows 8

I want to be able to open my command prompt from my desktop, for example, and have the default starting location be somewhere else, such as C:\ My question is how to I do this in windows 8?
47
votes
21answers
90k views

How can I mass rename files?

I've got a bunch of files named with a the pattern 99 - DescriptiveName.txt and I'd like to remove the number from the front so I just have DescriptiveName.txt. How can I do this? Can I do it from ...
2
votes
2answers
2k views

exiftool: delete exif data but preserve some specific tags

Currently I use exiftool with the -all= option and it deletes all the EXIF data from my photos: exiftool -overwrite_original -all= /Users/andyl/photos/*.jpg Now I want exiftool to delete all the ...
0
votes
2answers
528 views

How can I create a batch job (.bat) that zip a folder?

From 7zip I've downloaded their command line tool 7za.exe, and I have to following script: echo off cls set zip ="C:\7za.exe" set filename="%date%.backup.zip" set pathtobackup="C:\MyDocs" %zip% ...
39
votes
4answers
47k views

What does “2>&1” do in command line?

I know that the > sign is used for output redirection in the command line, but I'm having trouble finding something that explains the use of 2>&1 in the command line. For example: curl ...
0
votes
0answers
8 views

Set screensaver lock delay from registry or command line [duplicate]

I have a few Windows 7 machines in my network, and I don't have GPO or an AD. I do however have a tool that can push commands or registry changes. Is there a command string or a registry tweak that I ...
0
votes
0answers
8 views

Can I make vlc expand all given directories in its playlist on startup?

I have a script which runs a command of the form vlc music/foo/ music/bar/ It starts playing immediately on shuffle but only one of the directories foo/ or bar/ will be expanded in the playlist, ...
0
votes
1answer
25 views

I've placed a binary in my $PATH, but when I run it from powershell it gets its own directory instead of the current directory

I’ve installed Hugo (a static website generator) on my Windows 7 system by placing it in a directory in my $PATH. When I try to run it, regardless of the directory I’m in, it's run in its own ...
1
vote
1answer
25 views

Resource and Performance Monitor error

When I try to issue this rather simple command in cmd.exe, I run into this strange error. INPUT: C:\Windows\system32>perfmon.exe /report OUTPUT: An error occured while attempting to generate the ...
5
votes
2answers
3k views

How can I make the following conversion in VLC from the commandline?

I find the command line documentation a little overwhelming, given that I know almost nothing about codecs and the like... So the following is exactly what I'm doing in VLC (1.1.11) and it would be ...
0
votes
2answers
32 views

Echo/Pipe command output to Serial line

I have a serial device running on 115200 baud at /dev/ttyUSB0. I need to Pipe the output of a command to it. I Need somthing like: command-that-gives-stdout | command-that-puts-stdin-to-serial --baud ...
15
votes
3answers
628 views

Is there a name for the text that shows up at the front of each command in a CLI?

For example, in Ubuntu when I start up a terminal, it says: username@computer:~$ And in Windows: C:\Users\Username> Is there a formal way to refer to that text?
0
votes
1answer
3k views

Bypass wifi-activation-button in XP start-up on Amilo L1310g

Right then. I have a problem on a Fujitsu Siemens Amilo L1310g. This (old) machine is constructed with a ("feature") physical button that activates the wireless internet. When pressed XP starts ...
1
vote
1answer
13 views

Start zsh with a prompt specified on the command line

Is it possible to start an interactive zsh session with a specific prompt without modifying a configuration file? I tried things like that: zsh -c 'autoload -U prompt; prompt adam1; zsh -i' But ...
0
votes
1answer
153 views

Unable to start C:\WINDOWS\system32\cmd.exe when launching Console2

I've just downloaded Console2 as an alternative to the default cmd console that comes with windows, when I double click I get this error : I added the C:\WINDOWS\system32\cmd.exe to the PATH ...
3
votes
1answer
3k views

Is there a way to extract email addresses from a distribution list via command line in Outlook?

I have been able to get the members of the distro list via the command below but I am unable to figure out how to get the email addresses. Any ideas? dsquery group -name "Distribution-list" | dsget ...
3
votes
0answers
20 views

Does pbpaste empty the clipboard under some circumstances?

The manual for pbcopy and pbpaste reads as follows: pbpaste removes the data from the pasteboard and writes it to the standard output. The wording read odd as remove for me carries the ...
0
votes
1answer
47 views

Flash inactive tab in ConEmu (like Console does)

Is there a setting on ConEmu similar to the "Flash inactive tabs" setting in the Console app? When I run three scripts in three different tabs in ConEmu I would like either of the two tabs that are ...