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

Disk Usage Equivalent of Bandwidth Stats

Looking for in effect the equivalent of vnstat -w but for disk usage: rx | tx | total | avg. rate ...
0
votes
1answer
14 views

Password cmd switch for Telnet

I'm trying to created a batch file to automatically ping routers with telnet. My connection prompts me for password and I'm not being able to set it : start "C:\Windows\System32" telnet.exe [server] ...
2
votes
1answer
20 views

Continue typing in command line after executing an option

Noob question: (I don't know if this is the same for everything as it is for SASS), but after typing sass --watch sass:css it says Sass is watching for changes. Press Ctrl-C to stop., as expected, ...
0
votes
1answer
19 views

How do I run Asterisk as user other than root?

I compiled Asterisk 11 from source as user root on CentOS. Now I want Asterisk to run as user asterisk group asterisk. I have uncommented AST_USER="asterisk" AST_GROUP="asterisk" in ...
1
vote
2answers
33 views

cmd has wildcard bug?

Files in folder: a.j ab.jp abc.jpg abcd.jpeg dir command results: Command Result (Files shown) ---------- -------------------- dir ?.* a.j dir ??.* a.j, ab.jp dir ???.* ...
0
votes
2answers
28 views

Windows 7 - How to locate a list of files by filename and copy them into a folder

I have a list of 200 filenames. I need to find these files, which are located in different subfolders, by their filename and copy them into one separate folder. I'm using Windows 7. How do I do that? ...
0
votes
1answer
55 views

Accidentally associated .exe files with java.exe

I have downloaded a YawCam.exe program in order to take pictures with my webcam. After installation I clicked its icon to start then it opened 'Open With...' dialog to select which program to be ...
0
votes
1answer
42 views

Disable auto launching of Photos application on Mac OSX Yosemite

I'm aware that there are solutions existing that allow you to prevent auto launch of applications such as iphoto or the newer replacement, Photos on a per device basis through the UI of Photos itself, ...
1
vote
1answer
27 views

Stop/start a Windows service with a specific path?

I would like to create some scripts (Windows Batch or PowerShell, whichever will work) that can stop and start services that have their binPath in a specific folder. It will speed things up when ...
0
votes
2answers
61 views

.bat file random open file for 1-5 file in folder

I need a script to run in a window to monitor my folder. When I put a jpg file in this folder, then the script running in the window should open that jpg file with photoshop droplet (.exe), wait for ...
-1
votes
2answers
33 views

How to determine the username on a windows command shell

There are various suggestions on how to determine the current username on a windows command shell without using whoami, such as this question or this question. The generic answer seems to be echo ...
2
votes
1answer
22 views

Search for files created at specific time in folder OS X

I have a folder with 2000+ image files in it from a time lapse camera. I want to find/select all the images that were taken at the time 10:00 and 15:00. The find function has a "date created" but I ...
-1
votes
0answers
20 views

Unable to Import BCD Backup Using CMD [on hold]

I am running windows 7 64bit. I have previously upgraded to win8 and downgraded back to win7 using windows own upgrade software. Had problems with my computer and attempted to rebuild the bcd using ...
0
votes
1answer
13 views

Hashutils to recurse the whole drive

Following this post another super user question, I downloaded hashutils. Works great with with the -r flag to recurse a folder. However, I am unable to recurse a whole drive. Trying this command, the ...
0
votes
1answer
24 views

can't run 'wget|curl|git clone' or 'irb' in MobaXterm

A collegaue recommended me to try out MobaXterm (Personal) for my *nix on Windows (7) needs. It's promissing but I have the following problems: although I had installed ruby (tried the apt-get and ...
-2
votes
1answer
33 views

Batch/Powershell - Empty directory - mkdir with todays date - backup folders

I'm trying to make a batch or a powershell script that: First: Empties the folder C:\backup\ Second: Creates a new folder with todays date withinin c:\backup\ Third: Copies 2 folders c:\123 and ...
0
votes
2answers
44 views

How to install exe versions of linux utilities on windows? [duplicate]

I am aware that we can get .exe versions of many linux utilities. I happen to have wget.exe, curl.exe and busybox.exe. But how can I install them so that instead of typing C:\Users\Rahul>cd ...
1
vote
1answer
26 views

How would I add a RunOnce reg key on a remote machine to have a browser open a webpage

Context / Background / Info: I have local admin access (not domain admin) in a few computer labs that I manage and maintain. I have a script that I use (below) that will reboot computers and log in ...
-1
votes
0answers
21 views

Recursing through folders to find all files with timestamp greater than given date using a .bat

I'm very new to .bat scripting and struggling with this problem: I have a deeply nested file structure (many files and folders) and want to find all files with a time stamp greater than a date given ...
0
votes
0answers
9 views

Pipe remote jpg webcam image to ffmpeg as video

I have a cheap ip webcam. All it provides is a single http url to a static jpg file. Such as http:///image.jpg. Repeatedly requesting the same url will provide subsequent frames from the ip camera. ...
0
votes
1answer
17 views

Decompress files in subfolders to the same subfolder using 7-Zip

I have a set of subfolders with .gz files buried in them. I need to decompress the files and keep the directory structure the same. I have used for /f "usebackq" %i in (`dir *.gz /s/b`) do 7za x %i ...
2
votes
3answers
34 views

Make batch file wait for service to start when restarting services

I have a batch file that frequently restarts a group of services developed in house. We are soon moving away from these to something more stable, but for the time being the services need to be ...
1
vote
2answers
38 views

What is the difference between REN and RENAME?

I typed help into cmd and the following lines were part of the output: REN Renames a file or files. RENAME Renames a file or files. Next I typed help ren and help rename and got ...
0
votes
4answers
36 views

Copy paste a multiline command into command line

I'm writing a doc about installation of my soft and I have to write things like Please do the following: sudo apt-get update sudo apt-get install python-dev cython portaudio19-dev The ...
0
votes
1answer
25 views

Command Line utility for MySQL

I want to download only MySQL command line utility. I tried searching but unable to find. I even downloaded the entire MySQL Community edition and tried installing only MySQL Utility but the installer ...
0
votes
3answers
27 views

How can I use the output of ls/grep as input for pdfunite

I want to use pdfunite to merge several pdf-files into one output file. Since the directory contains lots of different stuff, I thought i could use ls/grep to get the apropriate file-names and then ...
2
votes
0answers
46 views

Cannot redirect .exe output to file

I'm trying to capture a program's output and then write it to a file. Running MyFile.exe -args > foo.txt gives an empty file. The same goes for MyFile.exe -args > foo.txt 2>&1. If I run ...
0
votes
1answer
18 views

How to switch between command-line and GUI in VM on a Mac?

I have installed CentOS 7.1 in VMware Fusion of my Mac. I logged into the terminal (default runlevel 3) and started the GUI using the command "startx". I want to switch back to the terminal. ...
15
votes
3answers
1k views

Command vs program?

I was looking up the difference between adduser and useradd, and an explanation is that useradd is a command while adduser is a perl script. I understand what a perl script is, but what I do not ...
0
votes
2answers
30 views

How can I list the contents of an lrzip file without extracting from the Linux terminal?

How can I list the contents of a lrzip file created via lrztar without extracting it?
0
votes
0answers
23 views

Merge two pdf files side by side in command line

I have got two pdf files with same number of pages and want compare each page with the corresponding page in the other file. For this I would like to merge say page 1 of File1.pdf with page 1 of ...
1
vote
1answer
16 views

curl capturing http status and timing the request

I have a loop in wich I check urls from file one-by-one and want to get the status header and the execution time of every request as result. I have two curl commands: This one outputs the header ...
0
votes
1answer
34 views

How to run batch file command line argument on another server?

I have Encrypt.bat on \\RDWAPPserver which contains code to encrypt the file and upload it to FTP server by using 2 commandline parameters. Encrypt.bat needs 2 commandline parameters exl: ...
-1
votes
4answers
25 views

Commands in command prompt not working

My command prompt won't run any simple commands such as man, ls or pwd. It only shows the following error: "xxxxxx" is not recognized as an internal or external command, operable program or batch ...
0
votes
1answer
18 views

What is the number after `shutdown /a`?

I noticed when I tried to abort a shutdown it gave me Unable to abort the system shutdown because no shutdown was in progress.(1116) What's 1116? Also I noticed the command runs with -a or /a is ...
0
votes
1answer
25 views

What does qsub --cwd `pwd` mean?

I am newbie to Linux command lines. I just got a queue submission command from others. The command line is as follows: qsub --cwd `pwd` -t 60 -n 1 --proccount 1 --mode c1 --env ...
1
vote
1answer
36 views

In what order does GNU env print environment variables?

When invoked without arguments, the env and printenv commands from the GNU Coreutils print the value of every environment variable. What determines the order in which these variables are printed? ...
2
votes
2answers
81 views

Windows 7 cmd paths are different

I am trying to change the System paths on my computer. For some reason when I open cmd via run my paths are correct as expected. However when I Shift+Right Click in a directory + open cmd window ...
0
votes
0answers
29 views

Change OS X Internet Sharing Wi-Fi hotspot password from terminal

I have Mac and use it as a hotspot. Is there any way I can change the hotspot's password from terminal?
1
vote
2answers
46 views

Ending task in task manager works, but taskkill in cmd does not. Why?

I need to terminate a software every time it is done transcoding a movie file. To automate this I made a small batch script. Therein I tried to use taskkill like this: taskkill /im taskname.exe /t /f ...
0
votes
0answers
29 views

Run Notepad++ macros on command line

I have a lot of txt files in a folder and what I want to do is creating a Python script wich reads all the files contained in this folder and applies to each of them a n++ macro. To do this I need to ...
1
vote
1answer
16 views

Make shell script rerun command on certain user input

I'm writing a shell script that randomizes my hostname but prints the random hostname and prompts me if I want to use this hostname for example NEXTHOST=$(sed `perl -e "print int rand(99999)"`"q;d" ...
0
votes
2answers
64 views

I can't run .bat and .cmd files with start command (Windows 7)

I can run .bat and .cmd files typing his names in windows console, but if I run with start "" file.bat I get this error: System can't run specified program. I have tested with a very simple file ...
1
vote
0answers
14 views

lspci -vvv output CorrErr and UnCorrErr change over time

lspci -vvv output shows flags such as CorrErr and UnCorrErr. I'm wondering if these flags can indicate health of the device and if they change over time. A sample output is below. Thanks. ...
-2
votes
2answers
49 views

How do i hide Windows batch file or hide the password in this text?

I have a code that I save into a text file and label it locker.bat, and it will hide a folder for me. But the problem is I can just right click and click edit and find the password (like down below ...
0
votes
0answers
13 views

Use Rsync to create folder based on filename

I am currently using an rsync command to move files into a remote server based on 2 things, the file extension and how old it is: rsync -avx --timeout=30 --ignore-existing --include '*.txt' --exclude ...
0
votes
0answers
23 views

Add websites to JRE8 Java Web Start exclusions list unattendedly (JRE8)

In JRE8, applets on some sites don't start until exception added for these sites: My question is, how to change these setting during or after silent install to allow browser applets from sites we ...
0
votes
1answer
26 views

grep: display all output but highlight search matches

in bash, if I want to execute a command and only display output lines that matches a certain pattern, I can pipe it to grep, like file testfile hello there my friends command $ cat testfile | ...
0
votes
1answer
47 views

How to execute remote command using PuTTY over Telnet

I was created a .bat file to run PuTTY and it successfully runs. The problem now is, the command line I was key in were not executed, any solution for this? My .bat command is: putty -telnet -P ...
1
vote
1answer
65 views

How to upload file in FTP server using batch script?

I have created batch file called FTP_automation.bat which contains code below SET MyPath=E\PGP\test_pg ftp open 142.245.30.165 21 TESTA9MS test11 binary put %MyPath% quit Pause The thing is when I ...