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
2answers
1k 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
0answers
11 views

GNU screen command on path not found

When I use GNU screen in the following way, it works: screen java -jar .... but why does screen bukkit .... not work when bukkit is a executable script from my path ($PATH)? I've read here, ...
0
votes
1answer
2k views

Stream multiple displays using one VLC instance

Trying to figure out a way to start an instance of VLC from the command line to stream 3 displays on a Win7 box. We can start an instance of each one individually, and connect to each (though not at ...
1
vote
4answers
5k views

How can I prevent to run same batch file twice to allow only one instance?

I need to detect if a batch file is already running or not. In the batch I simply loop and repeatedly do some tasks. Sometimes the loop cannot complete. I run the batch file at a scheduled time. When ...
0
votes
1answer
2k views

Why do not all computers show up on net view?

I have a wired LAN network with some networking issues. In dealing with them, I have used net view in Command Prompt to try to see all of the computers on the network. There are four computers on the ...
10
votes
4answers
3k views

Detecting currently active window

The linux commandline tool wmctrl allows you to list all windows, or all desktops, among other things. In the desktop-listing mode, the current desktop is marked with an asterisk. I need a tool that ...
1
vote
1answer
47 views

Mass rename of pdf files using command prompt [closed]

I have a client who is using there own CRM and file naming structure and I need to change the file names to match the data in their system. All of the pdfs will be in the same folder. What I would ...
0
votes
1answer
4k 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: ...
0
votes
1answer
17 views

Changing the font when printing with lpr

I have searched through the internet, and Super User, but couldn't find the answer. Is it possible to change the font used when printing with lpr from Monaco to some other font, like Times New Roman? ...
0
votes
2answers
394 views

How to filter out .svn-base files from DIR command output?

I was wondering how I could go about doing the following (in Windows) I need to examine the total number of characters in the full path to everything in c:\directory and all subdirectories. Here is ...
21
votes
6answers
2k views

What is the general consensus on “Useless use of cat”?

When I pipe multiple unix commands such as grep, sed, tr etc. I tend to specify the input file that is being processed using cat. So something like cat file | grep ... | awk ... | sed ... . But ...
12
votes
3answers
58k views
4
votes
5answers
15k views

How can I use Tab-Completion in PuTTY connecting to a Ubuntu Server?

I use PuTTY to connect to an Ubuntu Server (VPS). I would like to use Tab-Completion when I'm working with the command line on Ubuntu Server... How can I configure it?
0
votes
2answers
24 views

Can wget decode uri file names when downloading in batch?

Normally when downloading files using wget, the filenames are encoded. In example: wget -c --content-disposition "https://class.coursera.org/ml-005/lecture/download.mp4?lecture_id=1" and the saved ...
-1
votes
1answer
26 views

The syntax of the command is incorrect

What is wrong with this command: c:\move xxxyyy.dll C:\Program Files (x86)\Google\Google Earth Pro\Plugins I'm in an elevated Command Prompt and the error I receive is The syntax of the command is ...
42
votes
20answers
78k views

How can I mass rename files from the command line or using a 3rd party tool?

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 ...
0
votes
1answer
42 views

TC command via webpage as a sudo

The main goal- run a tc command via webpage, starting with: tc qdisc del root dev eth0 (deletes all the filters) Following Simple linux commands from a webpage I am trying to add a tc command, but ...
1
vote
4answers
975 views

Disable Sounds in 10.5 and 10.6

I need to disable "Play user interface sound effects" and "Play feedback when volume is changed" in the Sound pref.pane via terminal/unix command/ARD on multiple computers. fseventer shows ...
1
vote
3answers
4k views

Start programs via command-line, but only if not already running

I came up with the batch file below, and it is working great. However, I would like to know if there is a way to code it so that if a program is already running, it would skip it and launch the next ...
0
votes
1answer
54 views

How to get BIOS serialnumber with WMIC command

Whenever I use the command line below wmic bios get serialnumber It outputs the BIOS Serial number with my laptop. However, I've tried that command line to get BIOS serial number with my ...
1
vote
2answers
2k views

can you list shared folder sessions from command line?

if you right-click my computer and go to Computer Management -> System Tools -> SHared Folders -> Sessions you can see the list of network users currently connected to your shares. can this list be ...
0
votes
1answer
23 views

cisco 2610XM telnet and http username and passwords

I have a cisco 2610XM for which they gave me a username and password. I can access and login into the web gui. from there I show the running configuration, it contains: line vty 0 4 password 123 ! ! ...
1
vote
1answer
76 views

Windows XP - How do use grep to find strings in files in subdirectories

I once had a version of grep on my PC (I think it came with an early version of Delphi) which supported searching in nested folders with the -r switch. Now something (I suspect a later version of ...
4
votes
2answers
170 views

Flush Chrome and Firefox DNS cache from command line?

Occasionally, I need to do a scorched Earth cleansing of my local DNS cachi. The most common scenario for this was that I was using OpenDNS, and when a name would fail to resolve (it was a hostname ...
1
vote
2answers
184 views

Limiting I/O activity for a specific process - Linux

I run a convert *.tif bla.pdf command sometimes with say 60 images. Now this renders my computer unusable until it finishes. I tried using nice and ionice but it did not help much. Is there a way to ...
13
votes
3answers
36k 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 ...
11
votes
4answers
9k views

Producing a specific ASCII character in Ubuntu

I'm used to holding the left Alt and entering the ASCII character whenever I'm using an unknown keyboard configuration and want to type a special character. For example, Alt + 0 + 9 + 2 makes a ...
3
votes
2answers
942 views

What is the use of binary output on stdout?

Some programs print their binary output directly on stdout. Here are some examples: tar -c file.png dd if=file.png Well, I see that the output can be redirected to a file. But these programs ...
2
votes
1answer
1k views

Can BitTorrent Sync CLI be used to create shares?

BitTorrent Sync can be executed from command line, but there are only a few options show by the --help parameter. Executing btsync makes a web ui available (at port 8888) which can be used to ...
0
votes
0answers
18 views

Copying files to multiple folders and subfolders - command line

I have a folder with files that I do need to copy in multiple folders and subfolders. The folders and subfolders are not created. For example I want to move test1.txt to folder1/subfolder1 ...
3
votes
1answer
1k views

Easy way to swap characters in command line with emacs key bindings?

If I'm in vi, and I see that I've transposed two characters, it is easily fixed by putting the cursor over the first and typing x followed by p in command mode. Is there a similar trick that works at ...
0
votes
0answers
9 views

Open VPN Config command on Mac OS

I need exactly alternative of this command on MAC OS! It's for OpenVPN Server iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE - See more at: ...
11
votes
2answers
837 views

What does the output from CTRL+N in Windows Command Prompt mean?

In the Microsoft Windows Command Prompt (Win7), what does the command Ctrl+N do? I get the following output: C:\Users\pbarney>^N '' ␋_ ┼¯├ _␊␌¯±┼␋≥␊␍ ▒_ ▒┼ ␋┼├␊_┼▒┌ ¯_ ␊│├␊_┼▒┌ ␌¯└└▒┼␍, ¯▬␊_▒␉┌␊ ...
9
votes
10answers
7k views

Is there a better, more UNIX-like command line shell for Windows?

I'm sure this has been asked before, but I haven't found it after an hour or so of searching... I've been using Unix and Mac OS for a while, but I'm a Windows user at heart. This #1 things that I've ...
1
vote
2answers
5k views

Dump batch script output into a text file without specifing batchfile location beforehand

Im aware that i can get the output this way (to capture both standard and errors): [batchFilePath] > [logFilePath] 2>&1 Or this way for standard output: C:\MyBatchFile.bat > ...
0
votes
1answer
198 views

Read console output of a running python process (script)

I launched a python script that prints out some infos. Now I'm connected to that machine (Gnu/Linux) via ssh. Is there any way to read the current output of the running process? I already know how ...
1
vote
1answer
56 views

Linux - Output to Folder that Yet Exists (in one command)

Is it possible to achieve this in one command without requiring a script: echo "test" > /folder/that/does/not/exist/newFile.txt
0
votes
1answer
373 views

Executing PHP script from command-line

It has been a while since I did any scripting with php. Now that I'm back at it, I find I'm missing something simple. Currently, the only way I am able to run my scripts is with the php command in ...
-1
votes
1answer
20 views

how to copy contents from current tty to a file in Linux RHEL 6.3

I am trying to copy the contents of on the current tty to a file by using command ls -l > ls-l.txt but I'm unable to get the output Can any one help me how to copy content from screen(terminal) ...
1
vote
3answers
891 views

Command line output to split files

I want to be able to split an output from a command line that goes into a file. I want either or both of the following ways to split: Split based on file size. If it gets to say 500kb, then create a ...
1
vote
3answers
582 views

Copy and paste RESULTS of a file search

In order for me to get the results of a file search in a readable format, I use the following command line in a command prompt: dir *.* /s > myResultList.txt I then open that list in Excel, use ...
13
votes
4answers
25k views

Remove USB device from command line

I'm constructing a backup script for Windows 7, and the last action I want it to perform is to safely "remove" the USB drive that it is backing up to. I am under the impression that plugging the drive ...
0
votes
0answers
18 views

understanding HTTrack actions

i just started using HTTrack . and it offers 5 actions whenever i want to download a website for offline viewing. which are 1 Mirror Web Site(s) 2 Mirror Web Site(s) with Wizard 3 Just Get Files ...
0
votes
0answers
27 views

CLI tools/ways for dynamically constructed DOM structure parsing HTML Javascript

I'm planning to make a tool which recognizes HTML using DOM structure in CLI. As many sites produce many DOM elements using JavaScript these days, it's becoming difficult to extract information from ...
1
vote
2answers
9k views

Change Display Arrangement via Batch/Command Line on Windows 7

I want to change the Display Arrangement of my computer via Command line. I have 2 monitors set up, extending, and I want to change the monitors setup from Dual Display to Single Display and back via ...
15
votes
4answers
362 views

How to copy text in the Windows command line 'cmd'?

Is there any way to copy text that's shown in the Command Prompt window C:\Windows\system32\cmd.exe to the clipboard?
2
votes
3answers
2k views

In windows xp, how can I set the default browser from chrome to IE via Command Line, without admin privs

Situation: 1. Need to Set the defualt browser to IE via cmd(problem) 2. Need to do a citrix login via IE(amounts to loading a url) beause it wont run in google chrome 3. then set default ...
0
votes
1answer
2k views

How to install Broadcom Wi-Fi on Arch Linux in command line mode?

How do I install Broadcom Wi-Fi on Arch Linux in command line mode on an Acer eMachines EM350? I assume that Broadcom STA should be the driver used and my USB key the way to install it with the help ...
0
votes
2answers
2k views

Add a directory and all subdirectories to the PATH variable with a single entry

I've got a directory in my home folder in which I place command-line software (CMD_Software). I put each piece of software in its own directory within CMD_Software in order to avoid clutter. I would ...
1
vote
1answer
54 views

Windows theme resets everytime computer is restarted after registry modification?

I had gotten bored one day and changed the colors/fonts of the command prompt, then finally i wanted to, undo this and change the color/font scheme of the windows command prompt cmd.exe back to the ...