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
1answer
13 views

How do i locate where a program is installed on Linux without knowing its exact executable name?

I am trying to locate where a program's executable file is located from the command line. Is there any way to do that without knowing the executable's exact name? Ive tried whereis "program name" ...
0
votes
1answer
20 views

How to delete all files that match a pattern (or older than..) except the newest file that matches the pattern?

I have a scheduled task / script running that takes a snapshot of a file each 3 hours, but the file is growing and disk space is limited, so each week I want to perform a cleanup. As for now I do ...
0
votes
2answers
29 views

Linux command get unused port

I'm looking for a command or script which returns an unused port on my ubuntu linux system. I have look on internet and the only thing I find is about the used/Listen port with the nestat command. ...
0
votes
0answers
12 views

Get vector graphics (svg, pdf) page size (width, height) in different units via command line?

Basically, I would like to find out the image size (and possibly, any special boxes) in different units (points, pixels, centimeters) from the command line. As an example here, I have produced an SVG ...
0
votes
1answer
12 views

How to filter this output from powershell?

This is my powershell command: powershell -noprofile -NonInteractive -Command "(gwmi win32_process | select ProcessID,ParentProcessID,@{e={$_.GetOwner().User}}, CommandLine) | ft -AutoSize" When I ...
0
votes
0answers
22 views

Unable to type in Putty after a few minutes of inactivity?

For some reason I am unable to type in Putty when connecting to a remote CentOS server, after a few minutes of inactivity. It appears the prompt is disabled and can't be clicked or typed on. I ...
0
votes
0answers
21 views

Executing Minecraft Server Commands via SSH and Screen

I'm extremely new to linux, so please help me out if you can! I have read many of the posts about managing/monitoring servers using SSH and Screen, but have not found anything regarding my particular ...
1
vote
1answer
9 views

How to use Command Line Parameters to create Outlook 2013 email to Distribution Group?

As a software developer that must account for project time, I am required to send in daily emails to 3 senior members of our development team. So that I will not forget, I set up a daily task for ...
0
votes
0answers
8 views

Execute remote commands as admin (vmrun)

I am using vmrun.exe to execute commands from a master to my virtual machines. For instance, I would like to be able to change the IP address of my virtual machines (netsh.exe should be launched as ...
0
votes
0answers
5 views

Is there a command line or scripting interface for KDE Baloo's file tagging?

KDE's Baloo allows to tag files by adding an extended file system attribute on the file system level (where supported), while keeping a separate index of all the tagged files. Searching within ...
1
vote
1answer
13 views

Verify GPG tarballs from command line with signer's public key block?

I've got a script to fetch Gcrypt's five source packaes from GnuPG Download. I also fetch the signature for each package. For example: FILE=libassuan-2.2.0 wget -q ...
0
votes
1answer
38 views

How can I get full command and parent process id from powershell?

It is the command I run in powershell gwmi win32_process |select ProcessID,ParentProcessID,CommandLine,@{e={$_.GetOwner().User}} And here is partial listing of the ouput ...
1
vote
0answers
33 views

Windows .bat script to recursively archive (with 7zip) files in subfolders

I'm struggling to achieve the following DIR1 FileA FileB SUBDIR2 --->FileC --->FileD --->SUBDIR3 ------>FileE ------>FileF etc and end up ...
0
votes
1answer
6 views

Running the command “bochs -q” from Cygwin fails

I'm having troubles to execute the command "bochs -q" from Cygwin. I have installed the XV6 operation system in my C drive. I'm using Cygwin in order to compile the XV6 files, that is execute the ...
0
votes
0answers
11 views

Jscript executing batch file that incorporates setting of environment variables

I'm working on creating a base for a batch file that is designed to 2 main things: Set several environment variables for the current session only Executes a jscript file Currently this is what I'm ...
0
votes
1answer
23 views

Attempt to hide console using Command line, Run, Exec and Pipe in VBScript

I'm using Zbarimg which (I believe) outputs its data to STDOUT. So at present, a cmd string within a VBScript executes the command and stores it in a variable, thus: ...
2
votes
1answer
27 views

Last time word/office was used

Where I work at we have (3k+ computers) that is 95% windows 7, and for licensing reasons I need to figure which computers have office installed on them but haven't been used in the last 3 months. I ...
0
votes
2answers
15 views

How do I print the line only with the last occurrence of a regex?

I have a (large) file that has multiple occurrences of the expression SCF Done and I am (for now) only interested in the last of these lines. Currently I am using a piped command: sed -n '/SCF ...
0
votes
0answers
17 views

User Access Control no longer opens

I can not run programs as Administrator, because I tried to do this, and modifying the value in the registry didn't do what I wanted to do, I thought that it would stop asking for passwords and let me ...
0
votes
1answer
31 views

How can I ping computers on another network?

I can successfully ping a computer on the same wireless network as me using the ping command in Terminal, however when I try to ping computers on outside wireless networks using their external IP ...
0
votes
1answer
15 views

Running .bat file in zsh (in Windows)

In a Windows machine I want to avoid using cmd.exe at all cost. I'm trying to use babun (mintty 1.1.3) to run a batch file in a Windows folder. This works: { ~ } » ./file.bat -o ...
0
votes
1answer
24 views

Getting a URL from search results based on a query, and updating in a web page

Trying to find a way to do this process on a daily or even hourly basis: Go to Amazon and search for "item" Find a specific product in the search results (it will always have the same title) Capture ...
-1
votes
0answers
21 views

Command to read User Tab in task manager of remote computer

I need to find who remotely connected to the computer. I am using the following command to see who is using the computer. tasklist /v /fo list /fi "imagename eq explorer.exe" /s " machineName ...
0
votes
1answer
17 views

How to switch user with pre-configured credentials in SSH Terminal after logging in as standard user

I am talking about authentication without needing user intervention like specifying password and username in the command file so that user don't need to input anything to switch user. For example: ...
1
vote
1answer
55 views

Run command for every line of a file in bash, passing lines as standard input

How do I pass some input to a command line by line (ie. invoke the command for every line)? xargs does not work because it passes the lines as arguments, not as standard input. The specific case ...
0
votes
1answer
20 views

Pretend file on disk exists for old program

I have an old program that requires its input to be files on disk. The format of said files are space wasting plain ascii, and large. For both performance and storage management I keep the files ...
-1
votes
3answers
54 views

HTTP download via command line in Windows [duplicate]

I would like to know if there is a way to make a http download via command line just with the standards programs in windows (XP and 7) and without PowerShell. Please, don't give programs I need to ...
2
votes
2answers
63 views

DHCP not issuing out IP addresses

DHCP on my network is no longer issuing out IP addresses. Every new device must be manually configured to connect to the network. After executing show ip dhcp binding, i noticed that all the ip ...
1
vote
0answers
24 views

Using batch to automate manage-bde

We would like to encrypt C (full disk) specifying a startup password (we are ok with this in plain text, it's temporary) and simply backup the recovery key to the desktop. So far what's working is ...
1
vote
0answers
23 views

Automatically open a file when gnuplot starts on Windows

I would like to assign gnuplot to .gnuplot files (gnuplot scripts) on Windows 8.1, in such a way that the gnuplot environment starts with the script file loaded. For this I would need to pass the ...
0
votes
1answer
17 views

Identify and kill batch script started before

I need help regarding batch script handling, help because working with on-board tools again, no extras installable. I have a CMD.exe script that gathers information about running processes (via ...
1
vote
1answer
16 views

How to filter processes with “ps” to match all conditions?

In Linux, if I use ps --user john -C processname, then I get all processes owned by the user and in addition all processes named processname. Is there a way to modify the behavior to get only ...
0
votes
1answer
45 views

How to locate deleted data from recycle bin in Windows 7 and Windows 8.1?

I'm using Windows 7, but I tested Windows 8.1 with the same results. From what I understand deleted files in recycle bin are stored as $R or $I format, however nothing is visible when I search command ...
0
votes
1answer
18 views

How to set Photoshop File Associations via command line

I am trying to re-associate .psd files with Photoshop CS6 via command line. I feel like this should work. But it is not. assoc .psd=Photoshop.Image.13 ftype Photoshop.Image.13="C:\Program ...
0
votes
1answer
21 views

xcopy wont copy shortcuts

Example code where shortcut resides: xcopy "Google Chrome.Ink" %CURRENTUSER%\Desktop Another Example where chrome.exe exists: xcopy /B chrome.exe %CURRENTUSER%\Desktop Both result in: ...
0
votes
0answers
35 views

Netstat only seems to execute when I get its syntax wrong. How can I fix this? [closed]

netstat -a is not working in command prompt. I receive error: netstat is not recognized as an internal or external command But when I write: netstat - a with error (wrong space before "a") and then ...
1
vote
1answer
19 views

Decode QR from image (or how to run Exec in a loop)

I need to decode a folder full of QR code from image files. After A LOT of research, I finally found a libary that works on Windows. Not my ideal choice (Zbar won't install on Strawberry PERL as ...
1
vote
1answer
30 views

Terminal new window always shows -bash: Searching: command not found

When open terminal, it always shows -bash: Searching: command not found. It does not affect other functions, just each time, even though open a new terminal window, it still pops up at the top of the ...
0
votes
1answer
41 views

Can I use “gksu” to became root for CLI operation?

I don't care if this is unsafe, because I'm only doing it as a programming exercise, but that's what I want to do: I want to create a C program that, with the "system" command, will call dpkg and ...
0
votes
1answer
18 views

How to Access “My Computer” files from Command Prompt

I'm trying to figure out how to access files on "My Computer" from the command prompt. In particular, I want to access files on my phone's share, e.g., My Computer\SAMSUNG\Phone\somefile.txt. That ...
0
votes
0answers
17 views

how can i delete specific parts of the history when i type “ipconfig /displaydns” on command prompt?

I already know how to flush the history in command prompt, but I only want to delete one part of it. I'm not really an expert on command prompt; I only know a few commands, but I really want to learn ...
1
vote
0answers
23 views

How to disable and re-enable an (wireless) network device? [duplicate]

I know I can enable and disable my network Devices in Control Panel > Network and Internet > Network Connections. I use the context menu and click on "Disable" and then "Enable". Because I have to ...
2
votes
0answers
37 views

Import html favorites file into chrome from command line

I have a list of Favorites from Internet Explorer 11 (Windows 7 SP1 32-bit) which I saved into an .HTML file. I am trying to import the favorites into Chrome from a command line or some sort of ...
0
votes
0answers
26 views

Set window size Firefox using cmd

This documentation contains various parameters that could be passed to the firefox command, executing e.g., firefox -new-window google.com opens a new Firefox window and subsequently starts ...
0
votes
1answer
32 views

Is there any difference between -exec cmd {} and xargs -I?

Normally, xargs bundles everything together, but when used with the -I flag it seems to put evaluate everything as a single line. Does this mean it loses its speed advantage? Also if the -exec cmd {} ...
1
vote
2answers
23 views

Wildcard not working in cp command when using exec

I want to copy all the files in all the directories to the parent directory, but I get the error ./img/* is not a directory For example. Here is the command that I used. Is there a better way to do ...
0
votes
2answers
36 views

List all files from folders and subfolders in Windows Server 2003 and export it to notepad

I have a server that has over 600 GB of data on one of the drives. I need to list all the files from the folders and subfolders and export that to notepad or to Excel.
0
votes
1answer
28 views

What does the percent sign indicate when used as a directory in batch files?

I have made a few batch files the hard way by CD-ing into the directory by typing all the way from root drive to folder. I have seen a few example codes use percent signs enclosing a few key words and ...
1
vote
2answers
33 views

Vim Avoid “Hit the enter key or enter a command”

I have the following configuration in my .vimrc file to switch between a .c File and it's corresponding .h File function SwitchHeader() w if(&ft=='cpp') e %:r.c ...
0
votes
4answers
47 views

Please explain the man page of command mv

I understand if I mv foo.file boo.file, I just rename foo.file to boo.file, and if I mv dir1/foo.file dir2/boo.file, I delete dir1/foo.file and make a copy of that to dir2 and rename it as boo.file. ...