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
5 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
2 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
13 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
16 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
17 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
19 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
28 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
24 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
6 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
29 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
29 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
0answers
21 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
19 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
18 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
32 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
17 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
36 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
32 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
29 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
24 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
48 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
49 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
33 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
29 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
12 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
50 views

Practical (closest 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
16 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
7 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
21 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
14 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
12 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
93 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
30 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
40 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 ...
0
votes
1answer
27 views

how to give argument to multiple parameter calling bash

I know the title isn't very clear, but I don't really know how to state my problem. I have a shell, and I want to be able to call it using multiple parameters, some needing argument other not. ...
1
vote
1answer
20 views

Using Bluestacks to run an android app directly from Windows command line or Desktop Shortcut

After installing Bluestacks is there a way of launching an android app without going through the Bluestacks interface? Is there an API or something that would allow this? Actually I found where it ...
0
votes
1answer
40 views

How to rebuild a Windows Image (WIM) using ImageX tool?

I've previouslly mounted a WIM image using DISM where I've removed some packages and then I've unmounted it commiting changes, and now I would like to rebuild the WIM file to save filesize and ...
1
vote
0answers
23 views

Windows7 command: set http_proxy and bypass

I am sitting behind a company proxy. To start vagrant i had to use set HTTP_proxy=http://http-proxy.example.org:9999 i tryed using netsh winhttp but that didn't work. So now my command line uses ...
0
votes
1answer
11 views

aireplay-ng command not found

I just downloaded and installed Kali Linux on my MacBook Pro (dual boot) to mess around with penetration testing - I have experience with aircrack-ng, but it was a while ago (and I was at least ...
0
votes
0answers
7 views

Showing line of text file without using strstr() in C [migrated]

I have a problem with my C program. It's a command line argument of searching character string form the text file and output the line started with the user input character without using strstr(). It's ...
0
votes
0answers
24 views

configuring p4 on red hat enterprise linux

It's time to get rid of this simple but yet not easily explained topic. And whatever I got on internet, in one or other way, failed to sync my WINDOWS depot to RHEL client. Following is the stuff I ...
0
votes
1answer
20 views

Entering Password in su- through loop

The Scenario is like I have a list of root passwords. But i don't want to keep trying Manually. So i wrote the shell script : for i in {1..26} do su - >>result done and all my ...
1
vote
1answer
16 views

How to add dll-override to wine config from command-line?

I know that I can add dll-overrides from wineconfig GUI: WINEPREFIX="$somedir" winecfg I know that I can temporarily add dll-overrides from command-line by specifying WINEDLLOVERRIDES environment ...
0
votes
1answer
30 views

How to use cd to locate a file and then open the file in vim easily in least possible keystrokes?

Very often I find myself in a situation where I would cd into a really deep directory structure to traverse to a file and then would have to open the file in vim.. So while doing cd I constantly keep ...
1
vote
2answers
41 views

How to make .exe's run from Run (winkey+R)

So I've noticed from using the Run thingymabob a lot that for some programs you can simply type in the .exe without specifying the path and it'll run. Chrome, Notepad++, and any native windows apps ...
3
votes
1answer
14 views

Ubuntu Linux sudo groupadd option menu keeps showing

I'm a beginner to Ubuntu and Linux. Every time I try to do a groupadd in my Ubuntu terminal the options for groupadd show up and I dont know why. I enter this in my home directory: sudo groupadd –g ...
1
vote
1answer
53 views

Need to create a robocopy in Powershell 1.0

My ultimate goal is to mirror a folder and its subdirectories with the restriction of only copying files with the extensions, sln, vcxproj, cs, cpp, hpp, c, and h. There are far too many subfolders ...
2
votes
0answers
49 views

Is there a way to get the path of a bash script when used in the source command

I want to set an environment variable relative to the location of a script. I can easily find and set it for the duration of the script (test.sh): #!/bin/bash export MY_VARIABLE=$(dirname $0) echo ...