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
1answer
22 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
47 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
85 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
36 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
39 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
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
24 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
42 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
45 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
99 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
26 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
106 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
25 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
36 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
47 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
20 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
26 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
25 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
37 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
31 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
88 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
18 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
14 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, ...
1
vote
2answers
58 views

How to restart Command Prompt from Command Prompt

I am trying to set up a remote build server for Continuous Integration with Visual Studio Online. I run an npm install to set up the environment, in my case, to install the tns tools, so I can then ...
-2
votes
1answer
19 views

change the default directory of command

I have two programs named abc in different directories (/dir1/ and /dir2/). Each of these directories contains other programs. In general, I would like dir1 to be searched for a command before dir2. ...
0
votes
0answers
38 views

Is there a command line to close a specific Chrome tab on Windows?

I'm running Chrome on Windows where I open a web site to record an online radio broadcast on schedule. Then when the broadcast is over I would prefer to close that specific web site. To do so my ...
0
votes
1answer
24 views

How do I insert the results of a unix command into the tcsh CLI?

I often find myself wanting to create datestamped files and folders. For example, I'd love to be able to create a folder with a yymmdd datestamp called "160408-projectA" by typing: mkdir ...
0
votes
2answers
46 views

Robocopy what is the command to copy a dvd to my Hard Drive excluding a Folder?

I want to copy all the folders, subdirectories and files from a DVD to my hard drive excluding a Subdirectory, using Robocopy, what is the command for this task using this path? Copy all from D:\ ...
0
votes
1answer
36 views

How can I add git.exe to Visual Studios command line path?

I've just set up a new computer. When I installed Visual Studio I didn't install Git because I don't want to use it from within VS. Instead I installed Git for Windows. However, a script we use to ...
1
vote
0answers
61 views

Replace / Edit host file with windows BAT

I wish to add and remove some lines in host file within a period of time (Time setting will be done via task schedule job) I can create two BAT file, one for adding new lines and one for removing ...
1
vote
1answer
10 views

Easily copy current command line in GNU-Screen

I want to copy the text command to copy in the current command line in a very fast way. user@server:~/somepath$ command to copy I know this way: Use Ctrl+[ to enter copy mode, Navigate by arrow ...
0
votes
0answers
27 views

How to check Paging Memory on swap for Windows, via command line?

On Windows operating systems, we use the Resource Monitor to check the memory paging for my server. I need to check it via command line so I can put in my standard script to check and create text ...
0
votes
0answers
10 views

Need to delete a large batch of broken links--foreach fails on spaces

I deleted a directory at some time that has a bunch of links elsewhere pointing to its contents. I wanted to use a unix foreach to delete the now dead links from the directory without dinging other ...
1
vote
0answers
21 views

Windows DIR analogue of ls -v

In linux, ls -v returns a file list in a "natural sort" order -- that is, when the name has a numerical part, it is sorted as a number: file1.txt file2.txt file11.txt Is there a way to ...
0
votes
0answers
44 views

sh command not found on Windows 10

I'm trying to install devkit using the command npm install -g devkit. It makes a loading bar which goes on for a few minutes then gives an error, firstly saying that the sh command can't be found, ...
0
votes
1answer
25 views

Unable to execute FOR loop from batch file

I am trying to execute the following command from inside a batch file: @echo off & for /f "delims=*" %A in ('dir /s /b') do echo %~fA %~zA >> "\path\to\output.txt" I found this command ...
0
votes
2answers
43 views

How to run multiple batch files with one master batch file

I have three bat files I would like to run, in three different directories: directory/bat1/bat1.bat directory/bat2/bat2.bat directory/bat3/bat3.bat I would like to use one master .bat to start all ...
1
vote
2answers
30 views

How to download a .gz and use it as a command?

I recently had the need to install a command to limit cpu recources to a task. (If you're interested, the source is here: http://www.willnolan.com/cputhrottle/cputhrottle.html) This task has always ...
1
vote
0answers
15 views

linux - append but skip existing data

Being somewhat new to linux, I am trying to copy but append existing information from multiple updated lists under different directories, to the existing files that may have some matching information, ...
0
votes
1answer
36 views

Command line to rename file using name of other file type

I have 2 files: fileone.txt and filetwo.mkv. How can I use the command line to rename filetwo.mkv to fileone.mkv.
0
votes
1answer
15 views

How can I get dictionary size of 7z archive using comand line?

I've got an 7z archive, I've read manuals but couldn't find how can I get dictionary size of this archive using comandline?
1
vote
1answer
25 views

Is there a way to silently extract a self extracting multipart rar files via commandline?

I have a multipart self extracting rar file; setup.sfx.part1.exe setup.sfx.part2.rar setup.sfx.part3.rar Now when I try to extract it by starting the exe via commandline I get a nice screen where ...
0
votes
1answer
36 views

Is it possible to embed a command line statement in a Hyperlink?

Here's what I'm trying to make happen: User gets automatic email-reply with a hyperlink inside. The hyperlink contains a net use command to map a network drive. A confirmation should not be necessary. ...
0
votes
1answer
34 views

Repairing a specific file or folder in windows 7 with chkdsk or alternative program

I have a 500 GB NTFS partition on which there is a folder that I know contains some bad sectors.So to save time and resources, Is there any possible way to run chkdsk or alternative program to repair ...
-1
votes
1answer
33 views

Getting the following error when using ls in Mac terminal: -bash: ls: command not found

I am getting the following error when running ls or nano or clear in the terminal... SE-ASLAE002-MB1:~ aslae002$ ls -bash: ls: command not found SE-ASLAE002-MB1:~ aslae002$ nano newfile -bash: nano: ...
0
votes
0answers
32 views

Batch script with FOR /R and ECHO don't work

The script below don't work, it doesn't create the file with the ECHO command. If I run the FOR line (changing %% by %) in CMD it's working perfectly. Do you know why ? SET TXTDATDIR=c:\TEST\EXPORT ...
0
votes
1answer
38 views

Make ConEmu close after exiting batch file

I am running a batch file from ConEmu and want it to be as little intrusive as possible. I have set ConEmu to run minimized and close on exit. But.. after the batch is run, the window stays open and ...
1
vote
1answer
156 views

Auto extract .rar files from qbittorrent with WinRAR command line CLI

After a torrent download on qbittorrent completes, I am executing an external program via the options menu: Tools -> Options -> Downloads --> Run external program on torrent completion ...