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)

1
vote
2answers
30 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.exe ...
0
votes
1answer
25 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 ...
-2
votes
0answers
22 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 ...
0
votes
0answers
25 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
2answers
4k views

What command lists the files created in a specific month and readable for the owner?

I am supposed to find the command that lists all the files that are created in September and readable for the owner. Also explain how the command works. I know I'm supposed to use ls -l and I ...
1
vote
0answers
12 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 ...
-1
votes
1answer
28 views

Script to delete folder with time condition

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 ...
0
votes
3answers
10k views

Add domain group to local computer administrators command line

Is it possible to add domain group to local group via command line? I can add specific users or domain users, but not a group. I would prefer to stick with a command line, but vbscript might be ...
3
votes
1answer
2k views

Batch download of URLs from command line multithreaded

I have 100,000 URLs of small files to download. Would like to use 10 threads and pipelining is a must. I concatenate the result to one file. Current approach is: cat URLS | xargs -P5 -- curl ...
0
votes
1answer
17 views

bash autocomplete fails with wildcard

Using bash on this this system: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux The sequence: cd /tmp touch test1.txt && touch test2.txt && ...
0
votes
1answer
13 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
23 views

Combine 2 xml tags with SED

I create an xmltv.xml for TV listings and need to use SED for some post processing. Im using Windows 10 with SED for Windows run via a bat file. The trouble is only certain tags are shown on my ...
0
votes
2answers
18 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 ...
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
1answer
29 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
1answer
18 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 ...
0
votes
2answers
13 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 ...
3
votes
2answers
25k views

Run WMIC command across network

Instead of typing this in a command prompt one at a time: wmic /node:ipaddress /user:administrator /password:mypassword bios get serialnumber How can I run that against one entire subnet and output ...
47
votes
6answers
198k views

How can I find out when Windows was last restarted?

How can I know when my computer running Windows 7 was last restarted? I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.
4
votes
3answers
49k views

Printing from Windows 7 command line

I'm looking to automate some printing in Windows 7. Ideally from command line. Just as if I would've right-clicked and selected "Print". Tried the command: C:\>print /D:"CutePDF Writer" test.txt ...
0
votes
1answer
33 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
votes
0answers
32 views

Probleme of cmd.exe error “Can not write to the specified device.”

I run windows 10. When i install Python and visual studio 2015 if i open cmd.exe by click shift+right click mouse and by clicking directly in "C:\Windows\System32\cmd.exe" it does not work correctly ...
0
votes
1answer
108 views

SFTP key authentication not working from bash script

I am trying to set up a very simple bash script on Ubuntu that SFTPs to a specific server using public key authentication. When I run the command directly on the command line, it works like a charm: ...
1
vote
1answer
37 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
61 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 ...
1
vote
1answer
3k views

Bypass wifi-activation-button in XP start-up on Amilo L1310g

Right then. I have a problem on a Fujitsu Siemens Amilo L1310g. This (old) machine is constructed with a ("feature") physical button that activates the wireless internet. When pressed XP starts ...
1
vote
2answers
39 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 ...
-1
votes
1answer
33 views

Are there any command line programs that can add audio effects? [on hold]

I was wondering if there were any command line programs that work similar to ffmpeg, sox, or soundstrech in the way that you can preform functions via the command line. My goal is to be able to add ...
0
votes
0answers
11 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
5k views

cmd > attrib - Unable to change attribute

I'm following this tutorial because I'm having problems with the Task Scheduler service: http://technicallyeasy.net/2010/10/how-to-fix-keyset-does-not-exist-for-scheduled-tasks-in-windows/ Basically ...
1
vote
1answer
27 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 ...
5
votes
5answers
4k views

Script to set “Hide file extensions”

I'm tired of the multi-step process to set my preferred folder options on every server to which I log on (Mostly Win2008, but also some 2012 and Win7 here and there). I'd love to be able to script the ...
1
vote
1answer
37 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?
0
votes
0answers
14 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. ...
0
votes
2answers
4k views

FTP Not Connected - Can't input user credentials

I'm trying to download a file from a Linux server via FTP from Windows command line. I've successfully downloaded the file with FileZilla (same server, same file), but I want to do it in cmd.exe. ...
1
vote
1answer
50 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
14 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 ...
31
votes
4answers
17k views

Setting environment variable for just one command in Windows cmd.exe

In Bash, I can do EDITOR=vim command and command will be run with EDITOR set to vim, but this won't affect the value of EDITOR in the shell itself. Is it possible to do this in cmd.exe?
0
votes
2answers
74 views

Is it possible to use a .bat file to turn off 'Input indicator' when Windows starts?

http://www.thewindowsclub.com/turn-off-language-bar-windows I am using Windows 10 and have done the following according to the above instructions. 'Use the desktop language bar when it's available' ...
0
votes
0answers
15 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
1answer
38 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 ...
2
votes
1answer
4k views

How to add files to specified folder in archive with 7zip command line

I have folders and files on my disk C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll Can I create an archive with 7z command ...
0
votes
2answers
2k views

Proxy authentication for commandline in Windows

I am accessing web (port 80) using a proxy server which requires authentication. For web browser, it pops a window where I can enter my username and password but when I am using command-line (cmd) and ...
5
votes
4answers
743 views

How to fix diacritic issue on command prompt?

Simplified issue: I have a file called Bíblia sagrada.exe (note the í) on C:\ of my computer. When I open a command prompt on C:\ and execute dir /b /on B*.*, it will return: Bíblia sagrada.exe ...
1
vote
2answers
7k views

Imagemagick convert returns “no decode delegate for this image format”

I am trying to use this command for ImageMagick: convert "c:\users\****\My Documents\test.png" -transparent white test2.png However, I keep on getting two errors that look like this: ...
1
vote
1answer
56 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
1answer
22 views

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

I have a problem, 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 ...
0
votes
0answers
14 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
12 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
0answers
12 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 ...