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

can't run console program in batch file

I have a batch file (run.bat) which is to change my IP address setting: netsh interface ip set address "lan" static 192.168.30.77 255.255.255.0 192.168.30.2 The command worked as I expected when I ...
0
votes
0answers
18 views

Updated Drivers - Command Prompt periodic executes

Well just recently I updated my drivers a bit ago and I would rather not have to rollback my drivers, but is there anyway I can track what program or the source of this commmand prompt that keeps ...
0
votes
1answer
27 views

Is there a way to toggle the Windows “compress this drive” command through a command prompt?

My friends laptop (a 64-bit Windows 7 Home Premium with 4GB RAM) was running slowly and she asked me to take a look at it. One of the things (besides that the disks had not been defragmented for a ...
0
votes
1answer
11 views

Restart Windows Services from Linux while keeping password off the command line

I'd like to write some scripts (run on my linux computer) to help automatically restart some windows services. While I've found many answers that suggest using net rpc service, they all involve ...
-2
votes
0answers
52 views

How to uninstall an app installed with another user in Windows 10?

Yesterday I had a problem with my current user, and to solve it I had to create another user account in windows, and delete my previews account to be able to logon with my Microsoft Account in the New ...
0
votes
1answer
16 views

Create a batch file to add a beginning and end to text file lines

Can anyone show me how to create a batch file to add a beginning and end to each line of a text file? I have a large list and it would take endless time to add this to beginning and end. Even a ...
0
votes
1answer
23 views

Access denied when modifing value of registry key [run as admin & owner of key]

So i found out that i cant really modify value of the registry , whatever i do with my permissions i cant get it to work from command line (I need to do this from command line since i want to use ...
0
votes
1answer
15 views

Using the “%~dp0” with command line arguments not working

Been concocting a deployment script for a software, which needs to install Visual C++ 2013 Redistributable, in silent mode, from a moving source (aka, the folder might be on a key, on a server, ...
0
votes
1answer
39 views

copy files from directory/subdirectory listed in text file (Mac)

I'm looking to search and then copy all files with filenames matching in a text file from a directory (with subdirectories) on a server to another directory. I've found a great solution (though quite ...
0
votes
1answer
25 views

Copy Multiple Files w/ Same Extension but Add Date

I want to create a single command that will backup all my *.db files in a directory but I want to append the current date. a.db -> a_2016-04-21.db b.db -> b_2016-04-21.db c.db -> c_2016-04-21.db I ...
0
votes
1answer
34 views

Convert MKV with DTS audio to MKV with AAC, AC3 or MP3 audio

I have an MKV with multi-channel DTS audio. Using ffmpeg from the command line I want to convert to MKV with either multi-channel AAC, AC3 or MP3 audio. Can someone please tell me command-line for all ...
0
votes
0answers
12 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 ...
10
votes
5answers
2k views

How to open Command Prompt in a specific folder as Administrator?

I made a shortcut to cmd.exe and specified the folder that I want to start in. I then went to Advanced and ticked Run as administrator. When I double-click on the shortcut, it always starts in ...
0
votes
1answer
18 views

Rename php.ini.default to the more recognizable and standardized php.ini

When I type command: mv /etc/php.ini.default /etc/php.ini I get: bash-3.2# mv /etc/php.ini.default /etc/php.ini mv: ...
0
votes
2answers
278 views

How to run a bash script via absolute path?

I have a file: /Users/danylo.volokh/test/test_bash_script.sh Content is very simple: #!/usr/bin/env bash echo "-- print from script" I'm in folder "danylo.volokh" This command runs fine: ...
0
votes
1answer
25 views

Passing http link to vlc as command line argument

When I type vlc http://192.168.1.2/new video.mkv into cmd, vlc tries opening two files. The first is http://192.168.1.2/new and the other is video.mkv. Is it the space in the file name that is causing ...
1
vote
1answer
20 views

ftype changes are ignored. Where does Windows retrieve the “incorrect” value from? How can I enforce my changes?

assoc and ftype, provide a mapping between extension and a program to launch for that extension. And for some reason, despite what I have specified by assoc and ftype, some other application is ...
1
vote
1answer
461 views

How to update Registry with REG ADD command

I need to do set this registry value from command line: [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation] "AllowSavedCredentialsWhenNTLMOnly"=dword:00000001 ...
0
votes
1answer
23 views

Windows 10 Command Prompt: Running Programmes freeze until Ctrl+C

I have been using the command prompt in Windows 10 quite a lot, lately, running stuff like Node.js and Apache Tomcat servers, and I have noticed an odd problem: every now and then, the programmes stop ...
0
votes
0answers
29 views

Telnet on Windows 10

I'm attempting to play around with telnet but it has the ugliest usability I've ever seen. The problem is described here as an answer, stating: It actually isn't hanging; it's just that, for some ...
0
votes
1answer
36 views

Change location “Download” folder from CMD - Windows 8.1

I'm trying to change the location of the Windows download folder. I want to do from the CMD and not from "right click - Properties - Location - Find Target". I already tried with the symlink (mklink), ...
0
votes
1answer
6 views

What's the equivalent of top -H -p <pid> on OS X?

I need to monitor the CPU usage of threads created by a given process. In *nix one can use top -H -p <pid>, but that not available in OS X. An equivalent of ps -eLo ...
4
votes
2answers
426 views

Why does Linux allow users to remove the root directory? [duplicate]

When I installed Linux for the first time in my computer, I always liked to use root, because I didn't need to add sudo and type the password every time I executed a command that needed root ...
3
votes
1answer
47 views

Command prompt always pops up when logging on

Every time I log on to my PC, this command prompt appears: What is this? How do I remove/disable it?
0
votes
1answer
39 views

Run C program in mintty from the windows command line

I want to run a C program in mintty and divert the stderr output stream to a file, debug.txt. This may be accomplished using: ./zombie_jump 2>debug.txt However, I am having issues lauching this ...
1
vote
1answer
19 views

Cygwin can't find the top command [duplicate]

When I want to run top I get a message saying that the command cannot be found. I had a similar problem with the nano text editor. I resolved that by installing the nano package from the Cygwin ...
0
votes
0answers
26 views

Need a TeamViewer command line switch to start session in full screen mode

There's an official TeamViewer Help page that provides a couple of startup switches to create a shortcut to a particular host: ...
-1
votes
1answer
67 views

Bash on Ubuntu on Windows: ls command returns nothing at root level

On the new Bash on Ubuntu on Windows app on Windows 10, I tried to run ls from the starting directory to see the subdirectories but nothing comes up. I don't really know the directory structure so I'm ...
1
vote
1answer
22 views

Access to line arguments in shell script

I wonder if there is possible to access full command line call in shell script. In my script I need to pass it further. I find that there are $@ and $* accessors, but it do not pass all the ...
0
votes
1answer
29 views

How to suppress output of bash command

I've found this way of checking whether a host is accessible on a given port, however I am only interested in the status code of the command, therefore I am trying something like this: ...
0
votes
1answer
38 views

How to retrieve a complete directory from a URL [duplicate]

Is there a method on Windows or Linux for downloading all files* within an online directory, specifically: http://download.opensuse.org/tumbleweed/ so I have a local repository I can work on? Any ...
0
votes
0answers
7 views

Need to extract info from the source of HTML and put it in an mySQL update string

I need to get callsign, channel number and xmltvid from this HTML source. Here's a link to a larger sample of the file: http://pastebin.com/VuzBRhq6 In this case each TD of the table contains a span ...
0
votes
0answers
10 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
17 views

Copying a large number of files from a remote device without creating an archive

Normally, if I wanted to copy files from a remote machine I would do scp user@remote.device:/folder/* . However, in this case there are so many files that get I the error bash: /usr/bin/scp: ...
0
votes
0answers
30 views

Simple ICMP DOS attack example with cmd on Windows 10 crashing the attacker's computer?

I had to make a simple batch file as an assignment in which I had to attack another pc on the same network by a ICMP DOS attack and analyze the traffic using Wire-Shark. Here the code which I used: ...
1
vote
0answers
35 views

Adding path delimiter on autocomplete in Windows cmd

In the Terminal on OSX, when you press Tab to autocomplete a directory name, a / delimiter gets added for you, so you can immediately type your next entry. Is there a way to have the same behavior ...
1
vote
2answers
74 views

windows 10 C:\ is not accessible

ok so this is a common issue that seems to have many causes. After attempting to install a standalone SDK .exe the installer quit when almost completed and indicated a permissions error. I tried ...
1
vote
2answers
25 views

Read lines from a file into command window and expand variables

Im trying to see if its possible to read lines from a file into the command window and then write them back out to a file. The tricky part is that anywhere in the file where there is text resembling ...
1
vote
1answer
90 views

Running commands remotely through an RDP connection

This question is a follow up of this one. I am trying to run a command through the command line on a remote machine running Windows 7 from a workstation running Debian in an SSH session on that ...
0
votes
1answer
14 views

“Element not found” error when adding dns via netsh command

When trying to add dns entries via netsh commands, I get "Element not found" errors. netsh interface ip set dns “Wi-FI” static 10.0.0.1 1 What is the correct command format for setting both primary ...
1
vote
1answer
21 views

WUSA syntax issue, /norestart

I am attempting to use this syntax: wusa.exe "IE11-Windows6.1-KB2929437-x64.msu" /norestart But it simply pops up with the WUSA help box, like it doesn't understand my syntax. I've tried a full ...
2
votes
2answers
29 views

does start title and tasklist /fi windowtitle reference the same title?

I was looking up the start and tasklist commands, and i noticed 2 things. They both had references to a window title. start "myTest" /b somefile argA tasklist /fi "WindowTitle eq myTest" the thing ...
0
votes
0answers
19 views

Trying to track a PID in windows created from the pub command

I am doing some Polymer and Dart development, and when I am running the server, i run pub serve in order to spin up the server. The issue is that to stop the server, i need to break out of it ...
1
vote
1answer
17 views

Multiple app-id in Chrome command line?

I have a launcher that loads Chrome in a wrapper but only with one extension, I would like to have it load two (or perhaps more!) as well.. I can't figure out the syntax and my google-fu has failed ...
1
vote
1answer
22 views

How to recursively delete directories skipping some directories/files from command line in windows?

Suppose I have a complex path of directories: <ROOT> folder1 folder2 sub1 sub2 folder3 sub1 sub2 ... and suppose in some folders there are files named "skip.me" How ...
2
votes
1answer
35 views

Differences between how the find command interprets units of size

When I issue find / \( -type f -size +10M \) -and \( -type f -size -1G \) I don't get any results. However, when I type find / \( -type f -size +10M \) -and \( -type f -size -1000M \) the ...
0
votes
0answers
30 views

Source windows environment variables in MSYS

I have a setenv.cmd script which contains paths for the windows cmd prompt: set CURRENT_SCRIPT_DIR=%~dp0 set PATH=%PATH%;%CURRENT_SCRIPT_DIR%\bin But I'm using bash (via msys in the git for windows ...
0
votes
1answer
56 views

How to switch git user at terminal?

I am trying to push a project to a remote repository from the command line. From inside my local directory, I hit: $ git push and obtain the following error: remote: Permission to ...
0
votes
2answers
17 views

What is the the command for opening a pdf file?

I saw many answer related this question in "stack overflow" and "ask ubuntu".I also tried with this solution.I use gnome-open,evince command also.This command works when the filename has one word.But ...
0
votes
1answer
11 views

urxvt triple-click not selecting lines as expected

Can anyone please explain why left mouse triple-click is not selecting lines for me in urxvt ? To be specfic it sometimes works, but it depends on the nature of the text I'm selecting. For example, ...