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

Show proxy settings of other user profile

I'm trying to find a command-line to show, list or view proxy settings of another user profile in some computer. I can view my own proxy settings via command-line querying HKCU\SOFTWARE\MICROSOFT\...
0
votes
1answer
21 views

Delete Subfolders and Data But Leave Root Folders

In a directory, I have about a thousand individual folders. Is there a way to search through those subfolders and delete everything in them, but leave all of the folders at the root intact? In other ...
0
votes
2answers
21 views

Unescaped commandline content in fish shell

Is there a way to get the unescaped content of command line in fish? I mean if command line is like ... $ ls 'foo' "bar" ... the desired output would be ls 'foo' "bar". The commandline fish ...
1
vote
1answer
59 views

Add strings to zsh tab completion for all commands and arguments

I want to add the keywords foo and bar to be added to the auto completion results for any command or argument. eg: cd <TAB> should give foo and bar in the suggestions in addition to the ...
0
votes
1answer
54 views

run powershell command from cmd

how i can run this command from cmd : powershell.exe "(get-process | ? {$_.Description -eq "Sysinter Process Explorer"}) | select processname | out-file $env:APPDATA\example.txt" i still get ...
1
vote
1answer
35 views

How to list all the File accessed by a process? (also released)

I'm trying to get a list of files accessed by a specific process by having either its process ID or by launching it under some command line utility. I tried xperf but the documentation is really ...
0
votes
0answers
21 views

Linux: WD USB not seen via df command from cli - also not automount (only from graphical itf)

Situation: on linux (Mint): new external WD usb disk (after plug-in autodetected, accesible via /media/user, also visible via df cmd) formated to the ext4 (I know, my stupid step :( - but I had a ...
1
vote
1answer
31 views

Bash Script, Striping out newline characters in variable

Still getting the hang of bash scripting... I have a function that resizes images and calculates how much to scale it based on the file size. I need to pass this percentage as an argument to the ...
1
vote
1answer
46 views

Batch: Return the matching lines from pipe's output to the console with regex

I have the following domain checking bash script in Linux: #!/bin/bash TLD='.com' while read -r domain; do whois -H $domain$TLD | grep -oPaq '^.*(Creation Date|record created).*$' if [ $? -eq 0 ...
1
vote
1answer
48 views

Why can't my SYSTEM Command Prompt access these files owned by SYSTEM and how do I fix it?

I launched a Command Prompt under SYSTEM with PsExec to move a file owned by SYSTEM without changing the file and folder's permissions, but I'm still being denied access. What's going on here?
1
vote
1answer
87 views

How can I get ConEmu, Far Manager and the VS Developer Command Prompt to play nice together?

I'm currently trying to set up my environment such that I can open a ConEmu tab and it will automatically initialize Far Manager and the VS Developer Command Prompt environment. My failed attempt was ...
0
votes
0answers
16 views

Windows 7: Can't open recycle bin — previous solutions don't work

I've tried the solutions offered in the past. It seems that perhaps the recycle bin does not exist anymore, so I can't find it or open it. Typing recyclebinfolder after CtrL+Esc does not work. ...
1
vote
1answer
58 views

Why do I have to type .exe after all commands in windows 10?

Using the Windows 10 command prompt, I have to type .exe after pretty much any command to make it work. For example, >ping google.com 'ping' is not recognized as an internal or external command, ...
0
votes
0answers
24 views

How can I add extra commands/arguments when opening Command Prompt with PsExec?

I'm creating a shortcut to open Command Prompt with SYSTEM privileges, it works fine, but I want the title of the resulting cmd window to be clearly labeled with something like "SYSTEM". So I want to ...
0
votes
0answers
134 views

Linux Command to list all FTP users in shell including the users created using vsftpd

I have created a few ftp accounts/users on my CentOS server using vsftpd. Now I would like know the username of that accounts using SHELL. I have root password to access the SSH. I have tried to find ...
0
votes
1answer
43 views

Does Windows7(+) have the env or equivalent? (Env. variable for single run of application) [duplicate]

I'm looking for an opportunity to launch an application (eg, compilers) with specific environment variables . I want same functionality like env in Linux. env var=value application.exe I found ...
1
vote
1answer
90 views

How do I close a windows program in BASH

I use X64-based Win10. Recently, I started to use git, so I am switching the console to bash/mingw64. But I don't quite understand the way bash behaves. I tried to kill a program, say notepad, via ...
0
votes
0answers
20 views

Converting unix cli command to windows

I am using gethttpsforfree.com to get my cert. I am stuck on step 3. They want me to run a command but it's a unix command and I am on windows. The command is PRIV_KEY=./account.key; echo -n "...
0
votes
0answers
26 views

Can't restart SearchUI.exe through CMD

When I try the following command: net stop searchUI.exe It says "The service name is invalid". Why? How can I fix it?
1
vote
1answer
43 views

Extract file from a zip inside another zip using 7z command line

I know this command: 7z e [archive.zip]-o[outputdir] [fileFilter] But the file I wanna extract is in a Zip inside another Zip for example: Archivo1.zip\Carpeta1\Archivo2.zip I use this line ...
0
votes
0answers
15 views

Configure network settings based on available wireless networks

Good day- I work in a variety of locations each with their own IP settings - some static, some DHCP, some wireless, some hardwired. I've written a bunch of batch files to quickly set and reset (...
1
vote
0answers
73 views

Using thunderbird for sending emails over command line

When I receive orders I handle them in an admin tool. When processed, I launch thunderbird with command line, so it opens up email windows with prefille subject, to, from, body and file attachment. I ...
0
votes
0answers
54 views

Powershell : this command sticks my script, freezes

I am trying to get a list of available updates using $UpdateSession = New-Object -ComObject 'Microsoft.Update.Session' Write-Host "[1]" $UpdateSession.ClientApplicationID = 'MSDN PowerShell Sample' ...
1
vote
2answers
29 views

Automating email sending by using telnet & FTP on OS X CLI

Running the following script: #!/bin/bash cvs_domain=abc.com cvs_mail_server=mail.${cvs_domain} cvs_port=25 telnet $cvs_mail_server $cvs_port<<_EOF_ EHLO $cvs_domain MAIL FROM:my_mail@abc....
1
vote
1answer
39 views

Piping credentails to git push

Whenever I execute git push, I have to type my username and password at the prompt manually. However, I want to automate this process. So, I tried to pass the credentials to the command using ...
2
votes
2answers
49 views

Ubuntu find files and directory matching a name in one line

There are parameters of find command for finding files and directories respectively -f and -d, but I want to avoid writing two find commands and && or || between them. I want to find file or ...
0
votes
1answer
44 views

Match account/ipaddress of users connected to a remote desktop

The remote desktop is running on Windows7. I do not have admin rights. Using nestat I am able to get a list of all remotely connected IP Addresses: C:\>netstat -n | find "3389" | find "...
0
votes
2answers
81 views

combining / piping / chaining multiline ffmpeg commands together

Greetings I can convert a video file to a high quality animated gif file by executing the following two lines of commands below one right after the other. ffmpeg -i test.mkv -vf palettegen palette....
-1
votes
1answer
130 views

After Windows 10 upgrade, administrator account lacking full access privileges

My local Windows account is an account of Administrator type. Note that it's not the built-in account of Administrator name. Before Windows 10 Pro upgrade, I was using Windows 7 Professional. In ...
0
votes
0answers
20 views

Move files in sub folders to parent folder avoiding overwrite by changing filename

In continuation of the question I asked here: I would like to ask how it would be possible to still do the move, but still avoiding the overwrite by changing the filename. Like for example adding a ...
3
votes
1answer
25 views

batch file to move files from sub dirs to root dir with overwritting files with name conflicts

So requesting some help, I am currently trying to sort out a mess in my google photos. I have downloaded the archive of my google photos and have a bunch of folders with files/photos in them. I am ...
0
votes
2answers
85 views

youtube-dl | OUTPUT parameters | remove just the appended “-id” tag

win10_HomePremium_x64 youtube-dl_16.05.10 Since i'm using Windows, i've set an alias to use youtube-dl.exe ALIAS regedit > HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor new string ...
0
votes
2answers
31 views

Exclude a directory from `ls -R` command in FreeBSD

I want to list all of my files in a directory in FreeBSD 9.2, but I don't want to include a specific directory. I checked both -I and --ignore parameters for ls, but I only ignores superuser mode and -...
1
vote
0answers
16 views

Cairo Converts SVG to Black and White

I am trying to convert an SVG into a PDF on the command line but both svg2pdf and cairosvg result in black and white images (the original is in colour). $ identify original.svg original.svg SVG 31x40 ...
1
vote
0answers
24 views

Set CMD Prompt to always be the current directory name in Windows XP? [duplicate]

I would like my command prompt to display just the directory name I am currently in, not the full path. If I am working in C:\Mystuff\Junk\ I would like the command prompt to display: Junk> If I ...
1
vote
0answers
18 views

How do I run a job in the foreground with the at command on OS X El Capitan

I figured out how to enable the atrun daemon on OS X so that I can use the at command. However, any job I schedule seems to be run in the background. For example, if I schedule echo "testing", the ...
1
vote
2answers
80 views

Batch compress .avi files with ffmpeg which contain previous date in their name

im trying to manage CCTV footage, and im trying to batch compress them with ffmpeg So far i managed to come up with this command ffmpeg -i "0515 210004.mp4" -b 200000 output.avi But i need to do ...
1
vote
1answer
75 views

get process name from it's own description?

How can I get the process name from computer memory by using loop depending on the process description ? Example: My program name is "dev.exe" in memory and its description is "a tool for helping ...
-1
votes
1answer
35 views

Script to delete folder with time condition [duplicate]

I wrote a command to create a folder named with day's date and copy some file and folders to it. @echo off for /f "tokens=1,2,3,4 delims=/ " %%a in ("%date%") do set wday=%%a&set month=%%b&...
1
vote
1answer
26 views

Sum numbers in filenames in a directory using command line

I'd like to have a sum of real-time sales-tax exposure on my desktop. I name all my purchases and expenses the same way: date {string} SPACE item{string} SPACE amount{string}, the latter will always ...
0
votes
0answers
11 views

How can I display a tmux pane only when the output changes?

I'd like to display the output of a static-analyzer only when there is output to display (most of the time, it simply outputs “No errors!”). When there is something to say, it spits out a ton of noise:...
0
votes
0answers
40 views

Can't get screen resolution through WMIC on fresh Windows 10 installation

Running wmic desktopmonitor get screenheight, screenwidth in Windows' command prompt should return my screen's height and width, however when running that command on my fresh Windows 10 install, no ...
0
votes
0answers
89 views

How to use Terminal command srm (or other) to secure delete a folder? Mac OS X El Capitan

When I try to use srm -m to secure delete an empty folder in Trash, I get the following: srm: /Users/tomhughes/.Trash/Recovered files is a directory
1
vote
1answer
34 views

ffmpeg multiple files dimensions change

I saw a post on superUser on changing dimensions of a mp4 file which like this FFmpeg -I Input.mp4 -vf scale=460:690 output.mp4 but I want to change dimensions of multiple mp4 files in one go so I ...
-1
votes
2answers
93 views

echo $path returns blank on Mac

echo $path is returning blank for me. The following are contents of my .bash_profile. CHANGE PROMPT export PS1="►►" export TERM=xterm-color export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' ...
2
votes
1answer
47 views

Windows batch: Get the first folder name starting with some value?

I have a batch file in which I pass the name of the folder I want to use as a argument. But now I want to make it a little smarter by letting the user specify only the first few characters of the name ...
0
votes
1answer
45 views

How can I connect to bluetooth headphones from command line?

I have a pair of bluetooth headphones that, when started (or restarted) don't always trigger my computer to automatically connect to them. In those cases I have to go into the sound menu, find the ...
0
votes
1answer
34 views

Run windows command

(Moved the question here from StackOverflow) I am not familiar with windows. Please help with the following questions. The windows program is "xxx.exe". When running it, we can do "xxx -options" ...
0
votes
2answers
73 views

SSH Difference between ./ and sh

I wrote simple file "hello world" and try to execute it on virtual server by SSH. #!/bin/bash echo "Hello world" Of course I give chmod +x Then on one server I try to execute it by command: ./...
32
votes
4answers
4k views

How do I determine if my system is Windows 10 using the command line? [duplicate]

I'm working with InstallAnywhere, an old program for creating installers. I would like to install a particular file, only in case of Windows XP and Windows Vista. Due to InstallAnywhere limitations, ...