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
0answers
17 views

what cygwin packages do I need to install to be able to run commands from cmd.exe on windows?

I am trying to install JSCover http://sourceforge.net/projects/jscover/files/JSCover-0.2.0.zip/download, I snooped around and figured that to run .sh files on windows easiest option is to install ...
0
votes
1answer
15 views

Sed is not Interpreting Pipes Correctly

OK, this is hard to explain, so I will give a reproducible example: I have a text file test.txt contains the line: somesetting-parameter /an/old/path I want to replace it with a path I can get via ...
2
votes
1answer
17 views

How to hide a program from linux's tab-completion

I have an account on a shared machine, and cannot access /usr/bin, where there are many programs which I never use. I'd like tabbing to ignore many of these programs, for example I'd like ...
-2
votes
1answer
21 views

Dos Batch: How to Fill in Data?

I need help to write a batch file that can do fill the blank. File like this: ~E-00001~|~E-0000001.pdf~|~C:\2014\text\~ ~E-00002~|~~|~~ ~E-00003~|~~|~~ ~E-00004~|~E-0000002.pdf~|~C:\2014\text\02~ ...
2
votes
2answers
35 views

Delete sixteen million lines of an eighteen million line Unicode 24 Gig Windows XML file?

Any ideas on how to delete 16 million lines of a 24 GIG file from line 3 onwards. The traditional UNIX command line text tools, recompiled for windows, won’t handle the Unicode aspect of the file nor ...
3
votes
0answers
18 views

Why does ffprobe report an incorrect number of frames?

I have a small video file which ffprobe describes as:- Input #0, avi, from 'sample.avi': Metadata: encoder : Lavf55.12.100 Duration: 00:00:35.00, start: 0.000000, bitrate: 546 kb/s Stream #0:0: ...
0
votes
2answers
29 views

Upload the whole directory with ftp from command line [duplicate]

I've got this .bat file: ftp -s:commands.txt commands.txt: open www.domain.nl username password cd path/to/upload/to/ prompt how can I now upload the folder where I ran the .bat to the server? ...
0
votes
0answers
15 views

robocopy using parent folder name

I have a small batch file that uses robocopy to backup a folder. The intended action is for it to copy C:/users/public/ into D:/Backups/YYYY-MM-DDTHHMM/ At present, it copies the files into a folder, ...
1
vote
1answer
25 views

Windows command-line: Fastest way to disable internet (keeping LAN)?

Split question: this other one here is for Linux. I think the easiest way to deactivate internet (not LAN) in Windows command-line is to remove the default gateway, so, assuming LAN is ...
0
votes
3answers
28 views

How do I determine callable commands provided by an installed Debian package?

I'm a relatively new Linux user, so today I ran into an issue. I installed an emulator front-end ("visualboyadvance-gtk") from my distro's apt repository, but after it finished installing, I couldn't ...
-1
votes
1answer
17 views

Every possible line combination/permutation in a set of text [on hold]

I have 164 lines of text I would like to arrange these lines of text into every possible combination and then save it into a .txt file For example (treat the brackets as if they are non-existent to ...
0
votes
1answer
22 views

How do you export Windows 7 AQS search to file? [duplicate]

My question is identical to this question that has already been asked back in 2011, but that does not have any answers: Export Windows 7 Advanced Search Results to Text File I'm hoping that someone ...
2
votes
1answer
126 views
+100

Handling black text in a dark terminal colour scheme

I tweaked my colours in iTerm (though the specific terminal application I use is not relevant). I chose a dark background colour, and defined red, green, yellow, etc. All was well until I ran npm ...
0
votes
1answer
18 views

Suppressing errors from an embedded command in a batch file for loop

I have a batch file that uses the for command to parse the output from another command, but I want all errors written to STDERR to be suppressed. I have tried this: for /F "usebackq delims=" %%a in ...
0
votes
0answers
15 views

Can't access other drives in Windows 8 recovery/safe mode command prompt

I'm trying to use the recovery (safe mode) feature of Windows 8 to back up my user directory. I've done this by going to Settings > Advanced Startup > Restart now. When it restarts, I select Choose an ...
0
votes
0answers
5 views

Output of usbmon ( length field )?

In http://www.mjmwired.net/kernel/Documentation/usb/usbmon.txt#163 it is written that before status tag ,there is data length field ,in my output for usbmon http://pastebin.com/b6U7Je7h please ...
3
votes
1answer
25 views

How to use usbmon for knowing amount of data transferred from usb (pendrive )?

Please someone explain me in simple terms how to use usbmon to track the amount of data transferred from pendrive ?
0
votes
0answers
37 views

Batch file - Copying folders with percentage

I'm currently trying to create a batch file, which actually copy a folder from a server to a clients machine. And I'm playing around with batch file, using xcopy, and it gives me the percentage of ...
0
votes
0answers
18 views

Windows compact /s /u command runs forever on deep directories greater than MAX_PATH

I ran the command compact /U /S /I /Q > status.txt on a large deep directory and after it ran for over 24 hours I decided to investigate whether it was hanging. It turned out that meanwhile the ...
0
votes
0answers
24 views

How can I list all files recursively that have the compressed attribute set?

I started a decompress operation using compact /U /S /I /Q > compact-report.txt on a large dir (120GB+, ~950M+ files) and it has been going on for about 24 hours now. Most files seem decompressed, ...
1
vote
0answers
31 views

Windows command line - accessing of remote windows server folder

I am logged in a Windows 7 and was trying to access the shared folder located in a Windows server 2008. I can successfully map the network drive with the URL: \\\ServerName\DavWWWRoot\Shared ...
2
votes
1answer
26 views

Attempting to end CMD after Batch File

I am running a Batch file on which is located on my DC. explorer.exe = taskmgr.exe end; end; The batch file works fine and does what I need. The thing is that when I run this batch it forces the ...
1
vote
0answers
7 views

Converting file to PCM using SoX

I am using SoX. A-Law, 8000 Hz, 64 Kbps, mono Is the format I need What I tried: input -c 1 -r 8000 output It is not working for me, please advise. I get the file output, it's just not ...
1
vote
1answer
30 views

why would running apache as a service produce different results when simply starting it from the command line

I have a .php script that produces different results when apache is launched as a service, as compared to when apache is simply started from the command line with httpd.exe. I have checked things ...
0
votes
1answer
47 views

Cannot unzip with zip command line

I am having difficult unpacking a zip to a specific directory. I am trying to get all contents of subdirectory of the zipped file and not the parent directory. This is parent directory within zip ...
0
votes
1answer
34 views

How can I batch convert subfolders of images into single PDFs?

I'm surprised I couldn't find an easy script for this online. I have a directory with lots of subdirectories, each filled with TIFFs. How can I batch convert subfolders of multiple images (TIFFs) into ...
0
votes
2answers
20 views

CLI tool to graphically select lines during piped commands

Is there a tool similar to choose that I can plug into chain of commands that will let me select (multiple) lines for the next step? choose unfortunately doesn't "pass on" the line you select, ...
1
vote
1answer
20 views

Retrieve colors from PDF

I have PDF files for designs and I'm wondering if there is any way I can extract the colors (as RGBA, RGB or HEX). The best would be to annotate the PDF with the colors. A command line tools would ...
2
votes
1answer
42 views

How can I store text already typed in the command line for later use?

One frustrating thing that happens very often to me is that I type a long command into a command-line interface (CLI) and then realize I need to execute another command before that one. Sometimes I ...
0
votes
1answer
20 views

vi Error | Out of memory saving lines for undo - try using ed

While executing the following command on a large file: vi largeFile.log I get the following error: Out of memory saving lines for undo - try using ed My environment is: AIX6 I cannot add any ...
0
votes
1answer
38 views

Piping tail -f into awk

Greeting, I am trying to pipe tail -f into awk to monitor a logfile in realtime, but according to examples, there should be not problem but I can't get it to work. here is the command I'm running ...
0
votes
1answer
36 views

How to access cmd of another computer from my computer's cmd?

How can I access the Command Prompt of another computer from my own computer's Command Prompt in Windows7? I am hoping that I can do something like that into a batch file: Enter \\ComputerA -u John ...
1
vote
2answers
31 views

Can flush DNS command resolve internet speeds?

Was assisting a user that had been downloading 8 movies from iTunes. Her speed was sitting at .06 mbps down with ethernet. Restart and power cycle got her up to 2.36 mbps down. 0% packet loss. I ...
1
vote
1answer
27 views

Strange probs with popd and pushd

Just when I thought I got popd and pushd, when I tried to practice on my own...it all went to hell. I removed the temp directory.I verified this by going through Finder. Then I made a new set of ...
1
vote
2answers
56 views

Batch file, skip a step if an error occurs

I'm trying to write a script that automates copying some files from two external locations using Robocopy. I want the script to skip a step if one of the locations is unavailable. I'm using the ...
0
votes
2answers
69 views

VirtualBox: How can I add (mount) an ISO image file from command-line?

There was before in VirtualBox command-line a command with this syntax: VBoxManage controlvm <VM> dvdattach <filename> So attaching (inserting) a CD/DVD was as easy as: VBoxManage ...
0
votes
2answers
35 views

Please help me visualize popd and pushd

I'm working through The Command Line Crash Course. I've been doing really well, but now find myself completely stumped at popd and pushd. I've read the analogy of a stack of plates or pancakes. I ...
1
vote
2answers
30 views

Batch output md5 with corresponding file name to text file

I'm trying to output to a text file a md5 checksum of each file in a folder in this specific format: checksumhash1 *NameOfFile1.ext checksumhash2 *NameOfFile2.ext checksumhash3 *NameOfFile3.ext ...
0
votes
2answers
21 views

File sorting confusion

Q1. I have a command and I'm confused why it's sorting the filesizes by Kilobytes then Megabytes? $ find ~ -maxdepth 1 -size +1024c -type f -exec du -h {} \; | sort -nr 80K /home/sl6/S3401636/Lab 4- ...
0
votes
1answer
18 views

Cygwin: Run a script in mintty/bash

Initially asked on SO.com, but I closed it. I think it better fits SU.com. Please tell me if it is also not the right place. I want to add a context menu to a .sh file to run it in cygwin. I tried ...
3
votes
2answers
67 views

Practical (closer to the classical Linux one) way to use (automate) SUDO for CygWin

Being able to use sudo commands in CygWin is useful, and faster than opening an elevated shell: Luis@Kenobi /cygdrive/c/Users/Luis $ net user /add TestUser System error 5. Access denied. Luis@Kenobi ...
0
votes
1answer
21 views

7z commandline: test archive and only show failures?

What is the easiest way to get only the failures from 7z when testing an archive for integrity? Looking at the command-line options, there seems to be no verbose or non-verbose option (i.e. there ...
0
votes
0answers
10 views

du -sb giving different results for 2 directories with same contents?

I have a directory A with 1000 sub-directories (000-999) each containing 3500 .jpg files. I wrote a PHP script that copied each of those files to another directory B in the exact same structure, ...
1
vote
1answer
92 views

I'm not terminal literate, and I think I did something wrong

I was trying to resolve an issue I had with Adobe Illustrator on OS X Mavericks, and was told to type this into the terminal: sudo touch /etc/launchd.conf It did not fix the issue, but it did slow ...
0
votes
0answers
27 views

Getopts - command with multiple options

I have a command script i'm making and wondering how do i go about combining multiple options the general usage of the command is as follows: Usage: myCommand [-fpr] [-n count] [-s size] [-u user] ...
0
votes
0answers
17 views

How to fix this “Errno::EACCES: Permission denied” error while executing a compiler script?

On trying to execute a compiler script from command prompt, like this "C:\sass.bat" "--cache-location" "C:\Users\admin-win8\sass-compiler" "--debug-info" "C:\webapp" "C:\webapp\css\all2.scss" ...
0
votes
0answers
13 views

Script to open mutliple terminals with multiple tabs each, move and resize these and execute commands

So I am trying to make a bashscript, which does the above mentioned. Background is that I have to keep an eye on lots of logs, and theres have to have opened many console side-by-side. E.g. one ...
2
votes
2answers
108 views

Administrator getting “access denied” - unable to create directory

As far as I can tell, I am in the Administrators group on Windows 7 Service Pack 1. With CMD prompt pinned to my Start menu, I rightmouse and select Run as Admin and get this error on xcopy: ...
0
votes
1answer
31 views

Bash alias with Sed not working

Does anyone know why this alias isn't working? alias tailsed="tailf error.log | sed -e 's/\\n/\n/g' -e 's/\\t/''/g'" I've tried replacing the single quotes with doubles so that it's like: alias ...
0
votes
1answer
42 views

Confusion about `start` command in Windows `cmd.exe`

There are bajillion places where start command is mentioned used like start command arguments... and I am almost sure it worked for me, but now when I try it it wants to be called like start ...