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

How to output net group command in list format in batch

I'm using the net group "Groupname" /domain command which outputs a bunch of users in the group in the format of 3 columns. There are spaces between the columns. How do I output the command so that ...
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
18 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 ...
8
votes
4answers
10k views

Windows equivalent of ssh - how to connect to a remote machine and access command line?

I'm having a difficult time coming up with a solution to extend a framework that was designed for *nix machines over to windows. The framework currently runs from one *nix server and ssh's out to ...
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 ...
9
votes
7answers
8k views

Can you dynamically resize Windows Command Line window?

Windows Command Line window has a fixed size. You can change it, but not on-the-fly, with a mouse. But maybe it's just me or my system (Windows 7). Can you dynamically resize Windows Command Line ...
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 ...
8
votes
2answers
2k views

Make OS X Terminal commands I type BOLD

I'd like to make commands I've typed (input) into terminal stand out from all the output. For example: imac:~ buster$ chmod -R g-w myfolder imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l ...
7
votes
3answers
10k views

Open source command line subtitle converter

Are there any open source, command line, subtitle converters - preferably for Linux?
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 ...
3
votes
4answers
1k views

How can I open “special locations” in Windows, like “Control Panel” from the command line?

If one opens Windows Explorer and then enters "Control Panel" in the location bar, then the Windows Control Panel will start. Similarly, the location string "Control Panel\NVIDIA Control Panel" starts ...
13
votes
2answers
23k views

How do I set an executable's working directory via the command line, prior to executing it?

If I run a program on the command line whose location is resolved through the Path environment variable, the program's working directory is generally set to its installation directory. I would like ...
1
vote
2answers
108 views

7z command line = 7-Zip “Extract to”

I have a dmg "winzipmacedition40.dmg". I'm trying to extract dmg from Windows 7. How do do the "extract to" method via the command line? Result 1 Using right click file -> 7-Zip -> Extract to ...
-1
votes
0answers
19 views

Get cmd.exe to run as administrator all the time - compatibility tab missing [duplicate]

New to Windows 10 and I would like my cmd to always execute as administrator. If I right click C:\Windows\System32\cmd.exe and select Properties, I do NOT have a compatibility tab. This is the tab ...
2
votes
2answers
1k views

Run Command Prompt as Administrator by Default on Windows 10

After the recent upgrade to Windows 10, the good ol' AppCompatFlags method no longer works. Which is something like this - Windows Registry Editor Version 5.00 ...
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, ...
0
votes
1answer
39 views

git commit hash in zsh prompt

I'd like to see the current commit hash (just the first 8 or so characters) in my zsh prompt. I have this so far: https://github.com/calebmeyer/cpm-zsh-theme/blob/master/cpm.zsh-theme#L3 ...
-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. ...
1
vote
2answers
50 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
2answers
6k views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
0
votes
1answer
8k views

Why do not all computers show up on net view?

I have a wired LAN network with some networking issues. In dealing with them, I have used net view in Command Prompt to try to see all of the computers on the network. There are four computers on the ...
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 ...
2
votes
1answer
97 views

Serial console login on OSX

Background I've got a Wyse WY-50 terminal here that, for various nolstagia and productivity reasons (really!), I'd like to connect to my Macbook and use as a login terminal. I'm using OSX 10.10 El ...
10
votes
1answer
7k views

How to change ONLY the prompt color of the Windows command-line?

As we all know, Windows command-line have the white-black color scheme. And we could use: COLOR command to change the colors of background and text. But the command above will change the whole ...
1
vote
2answers
3k views

Environment Variable ORACLE_UNQNAME not defined

I'm trying to install Oracle 11gR2 Entreprise Edition but during database creation, I got this Error : Environment Variable ORACLE_UNQNAME not defined And when I tried to lunch 'emctl.bat' From ...
7
votes
1answer
10k views

Extract and overwrite existing files

I am trying to write a batch script to extract files out of an existing ZIP file, into another folder on my desktop and to have the system not prompt me as to whether I want to overwrite the existing ...
0
votes
1answer
7k views

CMD - Rename Local Computer, Join Domain, Join Specific OU

Alright so not sure if this is entirely possible all in one. Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the ...
0
votes
1answer
4k views

Starting IE with runas

I want to run an IE shortcut, as another user and starting a specific site. With the following Target command line: C:\Windows\System32\runas.exe /user:Domain\Account@Domain "C:\Program Files ...
0
votes
1answer
26 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
1answer
3k views

Write file permissions for root user

I have a file called myfile that I would like to move using: sudo mv myfile deep-dark-directory/ I need to use sudo to move the file as deep-dark-directory needs root privileges to write and I ...
0
votes
0answers
25 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 ...
5
votes
5answers
28k views

How do I archive with subdirectories using the 7-Zip command line? Or, how do I KEEP the folder structure while archiving?

I have a bunch of files like this: C:\G\G1\35antique-shop.mp3 C:\G\G2\35antique-shop.mp3 C:\G\G1\09saguri.mp3 C:\G\G2\09saguri.mp3 I just want to know how to keep the folder structure while ...
1
vote
2answers
4k views

7-Zip command line -p switch is not working according to the help page

I want to be able to automate the encryption of the file type .pcapng in a Windows batch script. My current problem is that I get an error when extracting the encrypted file saying something along the ...
1
vote
1answer
897 views

How to enable the new console in Windows 10 and what are its defaults?

I expected to get to see the new console earlier in the preview, but I just was greeted by a completely different looking command prompt (not PowerShell) after installing Windows 10 without providing ...
0
votes
1answer
23 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 ...
7
votes
5answers
2k views

Transparent Command Prompt in Vista?

Is it possible to have a slightly transparent command prompt window in Vista or Windows 7? Are they any 3rd party alternatives?
0
votes
2answers
32 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:\ ...
30
votes
5answers
429k views

How can I check a system's current NTP configuration?

I need to verify the current NTP configuration on some Windows systems. Ideally, I'd like to be able to do this via command line instead of navigating through configuration screens. (I'm working on ...
1
vote
0answers
46 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
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.
20
votes
3answers
142k views

How to get hard drive serial number from command line?

From the Windows NT-based (Windows XP and 7 specifically) command prompt, how can I get the serial number of a hard drive as a variable? The one I'm looking at is the serial number of the physical ...
0
votes
0answers
24 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 ...
18
votes
1answer
16k views

Using SCP or SFTP with my ssh config file?

Perhaps my google-foo is failing me here... I'd like to connect and upload a mysql dump file via terminal using SFTP or SCP to my remote server using my ssh config file. According to documentation ...
3
votes
3answers
5k views

How to set to a variable, the result of a expression

I need to extract the date of a file, for then use this string as part of the name of a new file. I trying to solve this using the next commands: First I get the details of the file and redirect the ...
0
votes
0answers
9 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
23 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
2answers
35 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 ...
0
votes
1answer
20 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 ...