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)

13
votes
4answers
143k views

How do I get the “net send” messenger service working on Windows 7?

When trying to use the method below to send message in Windows 7 nothing happens. net send It seems the Messenger Service is not working. Any suggestions as to why?
0
votes
0answers
25 views

sox FAIL formats: can't open input file '*.wav': Invalid argument

I am trying to familiarize myself with sox to do some audio processing tasks. Ultimately, I want to take all my WAV files and extract just one channel, and save them, ideally with a modified name ...
2
votes
3answers
61 views

Elevate cmd to admin with command prompt?

Is there anyway to enable administrator access instead of having to right click command prompt and run as administrator? I tried runas /user:administrator CMD (prompts for password) net user ...
1
vote
1answer
1k views

Windows task scheduler not running batch file on network drive

I have a batch file that I'd like to run with the Task Scheduler. Running the batch file manually works fine. If the batch file resides on the C:\ drive, task scheduler runs it fine, but if the ...
0
votes
1answer
25 views

Java command only working in command line not in sh files

I have recently attempted to install java on ubuntu server 12.04 LTS. I wgetted the tar.gz file and extracted it to /opt/java and then added /opt/java/bin to the path variable. This all works ...
1
vote
1answer
2k 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 ...
13
votes
2answers
8k views

How can I get the current screen resolution from the command line on OS X?

How can I get the current display resolution from the command line in OS X?
2
votes
3answers
1k views

Windows command line ZIP extraction with checksum or similar?

What I need to do, at the command line, is: Extract the contents of a a ZIP archive. Change an arbitrary number of the extracted files. Repeat step 1, but because it is a huge archive, only extract ...
0
votes
2answers
28 views

How can I create a sed command line from diff?

I'm aware that diff -e can output an ed script. And my understanding is that ed and sed share their approach, but that ed is interactive, and sed is for streams. What I would like to do is take the ...
4
votes
3answers
3k views

How to make a launch command set focus to an already running app instance in ubuntu / linux?

I'm using a program called easystroke to invoke commands from mouse gestures - typically to launch an application. 'gnome-terminal', for example. If I already have a gnome-terminal window open, and ...
0
votes
1answer
34 views

I'm trying to run a batch file that test for 4 different files then based on the correct file present it runs the correct command

:: batch file to run backup @echo off setlocal set backup1=="F:\my backups\Disk_1_DataBAckup" set backup2== "F:\My backups\2_backup_data_to_disk2" set backup3=="G:\my backups\3_backup_data_to_disk3" ...
0
votes
0answers
28 views

OpenBSD Change tty background color

Is it possible to change the background color of one or all ttys without installing any additional packages? Using a config file, or environment variable? I tried changing the text mode resolution, ...
11
votes
2answers
739 views

How do I get a right-click command line for a folder? [duplicate]

I want to be able to right click on a folder called (C:\myFolder) and have a command prompt open like this... Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All ...
2
votes
5answers
43k views

How to disable Bitlocker through command prompt?

I turned on Bitlocker on drive F:\ which has alot of important content in it. Now when I try to unlock it the PC hangs. Only restart fixes this. I know the password, but the recover key is lost. Is ...
2
votes
1answer
1k views

How to install GRUB command-line tools on OSX?

I need access to grub-mkrescue for a project I'm working on. I know that the GRUB command-line tools come builtin to Linux, but how do I get them on OSX? Is there a package? Is it built into the ...
1
vote
1answer
27 views

Command-line Decrypting of PDF, given a document open password

I've been given a PDF that is password-protected. I have the document-open password, which is enough to decrypt the contents and allow PDF readers to load the content correctly. Is there a ...
47
votes
10answers
27k views

Is it possible to `tail -f` the output of `dmesg`?

Want to do something like dmesg | tail -f but it doesn't work: I use Mac OSX 10.6.7, by doing that the tail will exit, instead of monitoring the output. I wonder if there is any way to do it, or ...
10
votes
9answers
28k views

Finding other computers on network over command line

I've got a handful of Macs on my home network, and shell access to only one of them from the outside. How can I figure out what IP address of the other machines are?
2
votes
1answer
22 views

How do I reverse the text in a file / stream in UNIX / Cygwin?

I have a block of text that I want to put in reverse-characer order (backmasking). Is there a simple way to do that via a Unix / Cygwin command-line?
1
vote
2answers
48 views

Can I use shell: commands to change directory in CMD?

I am trying to create a batch file which installs favorites on all company PCs and Notebooks. Is it possible to change the directory in CMD using shell:favorites? I need this because on the ...
6
votes
1answer
2k views

Mac OS Lion - Always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over? I imagine there's some Terminal command I can enter to adjust ...
0
votes
2answers
56 views

Why can't I connect to Google's SMTP server on port 25?

I'm working on an InfoSec exercise, specifically email spoofing. I started by executing the following commands: C:\Users\student>nslookup 6.0.0.10.in-addr.arpa primary name server = ...
1
vote
2answers
58 views

How to copy a file into folder and all its subdirectories

I found some topics on superuser which helped me, but I'm still stuck at some place. I found out that to copy file through command-promt I can use: Copy index.html forms. But this command copies ...
0
votes
2answers
2k 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 ...
1
vote
3answers
2k views

Connect a linux server to network and access it from another computer browser

I had a server in a hosting company and I took it home. I need to connect him to a local network (not wifi) and access to the server from another computer in the network via browser, like I did it ...
0
votes
2answers
29 views

How can I ensure a blank line before every new prompt?

I'm using the Cmder package for my Windows command line environment. Some commands don't create a blank line after they've completed, which can make it more difficult to see every command that's been ...
1
vote
1answer
33 views

OSX: How can I open Chrome from the command line with specific pages in tabs?

From the command line in OSX, how can I open Google Chrome with a specific list of URLs open in tabs, with certain ones pinned?
7
votes
1answer
10k 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: ...
0
votes
2answers
51 views

Is it possible to set the name of the current virtual desktop via commandline?

The utility wmctrl has the possiblity to list the names of all virtual desktops: % wmctrl -d 0 - DG: 3360x1200 VP: 0,0 WA: 0,0 3360x1199 Mail / Comm 1 * DG: 3360x1200 VP: 0,0 WA: 0,0 ...
1
vote
1answer
2k views

Trouble copying a folder from my computer to another network computer using ROBOCOPY

I am trying to write a batch file to copy all files and subfolders in a folder from my local machine to another machine on our network. I am trying to use the ROBOCOPY command and would like the ...
1
vote
0answers
18 views

Creating multiple screens in a for loop to run parellel programs and sending commands to each

Before flagging this questions as redundant, i have read and tried every answer to similar questions with no success I have this loop where it traverses a directory structure, and runs a program ...
-1
votes
0answers
29 views

Visual Studio 2013 - How can I prevent a console app from opening an external Command Prompt for output?

Is there a way to have Visual Studio display the output of a console application within itself, instead of having to open up an external command line window and outputting there? In essence, I don't ...
4
votes
6answers
90k 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?
1
vote
4answers
9k views

How can I get the current system date and time using a command prompt?

I would like to get the current system date and time using a command prompt. How do I get the date to be in a specific format, MM-DD-YYYY HH:MIN AM/PM?
0
votes
0answers
6 views

Controling many windows in irssi (tabs groups?)

I usually have like 40-50 channels opened among 15-20 different networks. It's really difficult to control them all, so do you have any tips what to do to make it easier? Maybe some extentions? I also ...
0
votes
2answers
29 views

check ownership of windows drive through cli

I am trying to figure out who the owner of a windows drive is through the command line and cannot seem to find the right command to run. I know about the takeown command to take ownership of a drive, ...
1
vote
1answer
75 views

Unix Command to get number of lines in a csv file

Hi Iam new to UNIX and I have to get the count of lines from incoming csv files. I have used the following command to get the count. wc -l filename.csv Consider files coming with 1 record iam ...
0
votes
1answer
44 views

How do I replace the windows explorer shell with some image during boot?

When I start the computer instead of opening explorer.exe I need to put some image or blank screen. In registry if I change shell value in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon ...
32
votes
3answers
36k views

How to find the executable files under a certain directory in linux?

How to find the executable files under a certain directory in linux?
2
votes
1answer
2k views

How to add files to specified folder in archive with 7zip command line

I have folders and files on my disk C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll Can I create an archive with 7z command ...
0
votes
1answer
72 views

How do you run a command as another user on Linux?

I have access to a linux server where I can sudo to 'foo' like this without a password: sudo su - foo Once I am the 'foo' user I am able to run a script like this: /dir/foo_user_script.sh The ...
0
votes
0answers
33 views

How can I import a security template in Windows 7 using command line?

I would like to remotely deploy some specific change in Security Policies to several computers via remote console (SSH). This is my just exported security template .inf file, extracted according ...
0
votes
0answers
12 views

Network Permissions, Traversing Folders, Command Line

I am trying to delete a text file from my command line in a directory that exists in a Failover cluster in a Windows 2008 R2 server, to which I am connected over my corporate network. I have all ...
1
vote
1answer
66 views

Install a driver in Windows (XP) from command line? [duplicate]

How can I install and uninstall a driver from the command line during a console session? I have the driver.sys and the driver.inf file, and I want to: install the driver use the device managed by ...
2
votes
2answers
51 views

How to extract tar file on Windows, when the filenames include a colon?

I have a tar(.gz) file created on a Linux system, and the filenames contain colon characters. The tar utilities I can find on Windows don't extract these files at all. How can I do this, ideally ...
0
votes
1answer
41 views

Get output while using putty remotely

I have two different servers (A and B, both are Windows) and I am executing putty via command line between them. Server A executes remotely an script in server B and everything works fine, but I am ...
1
vote
3answers
2k views

How to play a folders worth of music/video in VLC

In vlc I can use vlc -LZ <file 1> <file 2> <file 3> for example to play various files on repeat and shuffled. Is it possible to specify a whole directory and play all the music ...
0
votes
0answers
19 views

How to change keyboard layout by command line

I'm using a software ChangeKey to reassign keys like CapsLock to Ctrl in windows 7. The software is GUI based, if I can change the key assignment by command line, it become much easier to setup new ...
2
votes
2answers
4k views

Extract a certain file from an archive with 7-Zip from the command line

If I have an archive, for example, some.zip that contains one or more files, how can I extract only one file (I know the name of the file) with 7-Zip from the command line in Windows?
1
vote
2answers
37 views

Auto rotate scanned text image (OCR via command line?)

Can I auto-rotate an image that contains mainly text? Maybe via OCR? The algorithm or whatever needs to scan the image and decide if it has to rotate it 90°, 180° or 270° I want to include this ...