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

Scripting with tmux?

Can I script several bash/sh instructions to open and run in separate tmux panes? I have about 5 or so different commands that need to be executed simultaneously or consecutively. I usually type ...
0
votes
1answer
45 views

How to handle variable in Batch script nested loop?

the following batch work well until the comment "the following do not perform as expected" I've try any kind of %; %%, ! around the variables but always fail, either do not have any thing or errors! ...
0
votes
0answers
12 views

AIX cut the file size from the ls -l output

Given the 2 lines from the ls -l command: ls -l /text*.txt -rw-r--r-- 1 root root 1307250 Jun 01 10:44 text1.txt -rw-r--r-- 1 root root 697 Jun 01 10:30 text2.txt How can ...
1
vote
2answers
33 views

How can I compress multiple files to multiple zip using 7-ZIP?

for example I have one folder which contains below mentioned files: 001.txt 001.doc 002.txt 002.doc 003.txt 003.doc Continue.... I want all similar file names each in separate zip. e.g. 001.zip ...
1
vote
1answer
27 views

Line is not Wrapping in Terminal

I am using Ubuntu G-NOME 16.04. Line wrapping not functioning properly in my terminal. It starts rewrite at the beginning of the same line. eg. If I try to type follwining command user@MY-PC: ~$/home/...
0
votes
0answers
23 views

How do I get VLC to play on the both screens?

I have two monitors on my desk. I want to split a video in half and play each half on each monitor. (I don't want a big stretched out full screen window stretched over both the monitors but rather 2 ...
1
vote
1answer
721 views

How to treat the “No instance found” of WMIC command in batch?

In a batch I want to terminate all instance of a process. I've try using: @echo off setlocal EnableDelayedExpansion for /f "usebackq skip=1" %%r in (`wmic process where Name^="CALC.exe" get ...
3
votes
1answer
35 views

How can I remove the last blank line of a wmic command?

In a batch I want to use: FOR /F "usebackq skip=1" %I IN (wmic datafile where Name^="D:\\TOTO.EXE" get Version) DO (ECHO %I) and want to restrict the ECHO, not having an ECHO is on. for the last ...
1
vote
1answer
38 views

Windows PATH variable isn't working

I have the following folder in my PATH (both paths actually, the system path and my user path) C:\Users\deqn\.cargo\bin In this folder there is file called racer.exe, when I try to run it from cmd ...
1
vote
1answer
25 views

I accidentally `git init`ed my home directory. Now my command line prompt won't load

Is there some way to enable hidden files on OSX without using the command line? This is a real Catch 22 since I can't use my command line to undo the thing that's preventing it from loading in the ...
0
votes
0answers
27 views

windows batch, program started by 'start' command minimized

I am writing a windows batch file to launch my java gui application, but when I run my batch file, my application starts in minimized, how can I bring it to front at start ? I run it on windows 10 ...
0
votes
1answer
41 views

Nircmd | Setting Volume | set specified volume amount (*/100)

Nircmd is like a variable to windows already built-in cmd and comes along with great informative, most especially brief documentation. SETTING VOLUME (commands) changesysvolume change ...
0
votes
0answers
15 views

Cannot Delete Folder, Could Not Find Item

I cannot delete a folder from some files shared between my brother and I. When I attempt to delete, rename, or move the folder, it tells me "Could not find this item. This is no longer located in... ...
0
votes
1answer
45 views

After npm install -g, command still not found?

I don't know what's going on, but none of my installed node packages are actually registered. npm and node work fine, but if I sudo npm install -g ffmpeg or brew, they're listed at /usr/local/lib/...
1
vote
2answers
54 views

I need a batch file that opens cmd, runs two commands, and keeps cmd open

I am making a set of batch files made to force restart games when they freeze and won't start back up again. So I need a batch file that opens cmd.exe, runs the two commands: taskkill /F example....
0
votes
1answer
31 views

Directory doesn't exist, but it does, but it doesn't

Before I start, my /etc/fstab file has the line: //10.10.10.1/Atkins ~/Desktop/Atkins cifs rw Ubuntu is giving me strange issues. I'm trying to mount a directory, so I type: sudo mount //10.10.10....
-2
votes
0answers
28 views

How do I search for a file whose path contains a null byte?

I want to search all files underneath a directory for a null byte in the path name. How would I do that? Especially via: Windows main GUI Windows powershell Git for Windows bash-esque terminal I'...
1
vote
0answers
18 views

MySQL doesn't seem to be executing commands

I am cleaning up a lot of my DB's/Tables, and have been running into an issue. When I execute most commands which change data on a table (i.e, DELETE FROM or UPDATE), the command returns as completed ...
0
votes
1answer
28 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
20 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
17 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
33 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
48 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
34 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
17 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
39 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
45 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
80 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
15 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
57 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
18 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
55 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
42 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
81 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
18 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
19 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
35 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
30 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
40 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' ...
0
votes
2answers
22 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
35 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
45 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
64 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
79 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
19 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
24 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
55 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 ...