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
0answers
7 views

How can I find out the command line options for git-bash.exe?

Apparently my google-fu sucks... I know these from other StackExchange posts: --cd-to-home # Change directory to home --cd=<path> # Change directory to <path> -i # ? -...
0
votes
1answer
7 views

Windows batch extract zip files, into folders based on zip name and combining similar zips

I have been searching for a way to bulk extract zip files in a directory and extract them into individual folders based on their zip file name. I found: Extract all Zip's in a directory (incl. ...
4
votes
1answer
22 views

Is it safe to edit the global PATH environment variable?

I just recently found out that I couldn't run mysql without typing out the whole path or being in the correct directory--unless I added the path to the PATH environment variable. I managed to do so ...
2
votes
1answer
22 views

Windows Command Prompt: dir + what option shows only Directories and not files?

All / (switches) in Windows don't have any filter purposes. I know in Linux it is - (options). At a Windows command prompt, how can I show only Directories and not Files?
1
vote
1answer
17 views

Program or script to walk directory structure, based on my loop

I've the following loop and would like some help expanding it's functionality. for /D %d in (*.*) do "c:\Program Files (x86)\7-Zip\7z.exe" a -tzip "%d.zip" ".\%d\*" Currently, in a directory ...
0
votes
0answers
7 views

How can i make SFX from WinRAR and make WinRAR can't read it?

I want to pack all my setup files to WinRAR SFX. But i want it get passworded, both the files and the header so the other user of WinRAR can't extract it directly from WinRAR without a password. So i ...
0
votes
0answers
20 views

How to create a video file from images on hard disk using ffmpeg command line?

In command prompt window i typed in the directory of the images: D:\SavedScreenshots>ffmpeg.exe -r 3 -i Imgp%04d.bmp -s 720x480 test.avi The images file are Bmp type. The first image file name is: ...
2
votes
1answer
15 views

Make ghostscript run from Windows command line natively

My problem: I am using Python to print plots which I usually output as .pdf file. Now I want to use .eps files, but Ghostscript is required (which I noticed because my Python console gave the error "...
0
votes
1answer
16 views

Syncing time on two networked machines

I'm trying to sync the clocks on a Windows 7 (A) and a Windows 8.1 (B) computer on their own, private network by using the command (cmd on computerA): net time \\computerB /set /y As I expect, this ...
2
votes
2answers
39 views

7zip - Use Windows Task Scheduler to zip a file that has timestamp of previous day

I have a web server that generates log files everyday, the log of the day will be automatically saved as Log.YYYY-MM-DD.txt (i.e. Log.2016-07-20.txt). Now I need to use Windows Task Scheduler to zip ...
0
votes
1answer
28 views

How to stop .bat files from running in background?

I'm facing a strange problem after change the Screen configuration on my PC, the story is that before I identify my graphics card I used to use the CMD in full screen (windows 7), and whenever I run a ...
2
votes
1answer
25 views

How to create a batch file for this issue?

I need help making a batch file that will create a folder and then extract a cabinet file from a Windows installer file and then run a DISM command to install said extracted update. Below is a list of ...
0
votes
1answer
25 views

keyboard shortcut to preserve un-entered cmd line typing

You've got most of a command typed out then realize you forgot a step, need to run a different command first. Without touching mouse, in quick edit mode, how not to lose the typing of a command not ...
1
vote
0answers
35 views

Bash - log every input and output and write to file

I am often on assignment and sometimes I forget to document my work. E.g. write down output from different one off tools. Is there a way to automate that via .bashrc? So I open up a new shell, it ...
0
votes
1answer
15 views

Running Windows 7 Virtualbox on Ubuntu command Line

Is it possible to run a windows virtualbox and possibly control it using nothing but a command line from ubuntu? I will also need to access regedit.
0
votes
1answer
46 views

How to create a Windows Batch Script to do this?

I am running Windows-7. I want to create a Windows Batch file which works like this: Run an exe with specified arguments. Wait for the complete execution of this exe. (This EXE is essentially ...
0
votes
0answers
10 views

In fish shell, which command is equivalent to bash's compgen?

compgen is a useful command, and fish is an excellent command shell. But I cannot find an equivalent in fish. I write one by myself: function compgen --description 'Print a list of documented fish ...
0
votes
0answers
26 views

Delete column from csv file with only cmd [duplicate]

Looking for some way to delete specified columns from csv file using only batch command file
1
vote
1answer
99 views

Difference in cd.. and cd .. (Change Directory) [duplicate]

cd.. and cd ... Basically, they are doing the same. But, who and why thought of changing it with space or without space? Why is there space and why there isn't space between cd and two dots? C:\...
0
votes
1answer
26 views

windows - Why does my executable shortcut (*.lnk) not behave like the program it points to?

I have a shortcut that points to ant.bat (apache ant). Executing that shortcut always returns the fail error ("build.xml does not exists"), while executing the ant.bat directly with full path does not....
3
votes
1answer
112 views

Replace Builtin commands with Custom Commands for CMD.exe

If I do a command like (on windows cmd.exe): where dir or where cd I get the following message: INFO: Could not find files for the given pattern(s). This tends to mean to me that cd and dir ...
0
votes
0answers
21 views

Why can't I get (most) Chrome command line flags working?

I am running Chrome 51 on Windows 8.1. According to both this documentation and this source file I should be able to launch Chrome with command line parameters. Yet when I try to - with the exception ...
0
votes
0answers
19 views

How do I (admin) add an existing user to a Mac OS X with missing user ID?

I restored a Mac and now only have admin and guest as a user. I know group name, user name, apple id and account name. I do not know user ID, aliases, login shell, UUID or directory. 2 Question: ...
0
votes
1answer
20 views

E: Package 'libtool-bin' has no installation candidate

due installing the prerequisites for a software, which is explained step by step here , when I enter this command: sudo apt-get install libtool-bin I get this error: Reading package lists... Done ...
-4
votes
0answers
19 views

how long does it take to setup hot folders and is powershell the best to use?

I am hoping any experts out there in the field of powershell can help me. I have 0 experience in scripting but i need scripts to be made to execute as follows : I need folders to be made as ...
0
votes
1answer
24 views

unicode characters suddenly appearing in asterisk CLI SSH console

I have a mysterious issue. I connect to an Arch Linux virtual machine running asterisk. All of a sudden, anytime I enter the asterisk CLI, the SSH console spits out unicode character codes. What I am ...
0
votes
0answers
8 views

Is there a limit on xargs of GOW on windows?

I use GOW tool kit on windows which contains many linux tools I found that if the current directory contains several directories and many files (much greater than 1000), If I run gfind . | xargs rm ...
1
vote
2answers
25 views

In Firefox, is there a counterpart to Google Chromes -app option?

Google Chrome has ability to launch in an "app" mode by using -app command line switch, for example: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -app=http://some-url Using this I ...
0
votes
1answer
12 views

Why does FFMPEG different arguments' placement create different mov clips?

I use ffmpeg to cut the first 4 seconds of a mov 14 seconds video file. This is the command I use (on Ubuntu) to create the new clip: ffmpeg -i H264_test1_Talkinghead_mov_480x360.mov -ss 0 -t 4 -c ...
0
votes
1answer
22 views

How to exclude current directory from executable search in Windows?

When typing a command in Windows shell, it first looks for the program in current directory and then from PATH directories. Is it possible to somehow (eg by a environment variable) exclude current ...
0
votes
1answer
12 views

input same line as echo batch file

Cannot seem to get this exactly right, trying to setup a batch file to do some network commands, such as ping. I have the following code: echo Please enter the IP Address to TELNET echo IP Address: ...
-1
votes
1answer
36 views

can bash on windows10 execute windows programs?

I'm excited about the possibility of having a decent command-line interface on MS Windows using bash, I haven't installed windows10 yet though. In bash in windows would I be able to run windows ...
3
votes
1answer
18 views

Unable to find local files when using FTP

I'm trying to create a plain FTP file and a batch file for my colleagues to use to upload som zipped files to a database. The problem I run into is, when connected to the server, I cannot reach my ...
-1
votes
0answers
27 views

Using sed to replace string with special characters in XML file - part 2

To continue the discussion about sed, variable strings and special characters, this works perfectly : sed -i "s~${LINE}~${NEWARGS}~" $FILES for the variable with contents of: JAVA_OPTS="$JAVA_OPTS -...
1
vote
1answer
33 views

How do I shift the execution of a batch file from one CMD to another CMD?

This is my batch file script: ::opens new cmd in admin mode powershell.exe -Command "Start-Process cmd -Verb RunAs" ::this needs to execute in the previously, newly opened cmd wmic product where ...
0
votes
0answers
46 views

VLC Playlist with Folders fails

I have a playlist that consists of two folders. I have random and repeat active on VLC 2.2.4 When I click to play the playlist it expands one folder only - and once it gets to folder two it expands ...
0
votes
0answers
7 views

Treat .ahk files as executables in clink

If there is an exe file in a directory clink when I press tab does context sensitive completion e.g. when I enter run and press tab key I get: C:\Users\michal>run RunLegacyCPLElevated.exe runas....
0
votes
2answers
35 views

Obtaining all command line parameters in CMD prompt

What command would I use in CMD to get all of a program's available switches/arguments? For example, program abc.exe might have a switch of /o that starts the program in offline mode. Assuming I did ...
2
votes
1answer
36 views

Command line to permanently get access to folder

I cannot access certain folders e.g. c:\Program Files\WindowsApps. Via command line I get an error of "Access is denied" and via Windows Explorer I get a pop up a dialog box stating "You don't ...
0
votes
1answer
14 views

Print a file with specified Application from mac command line

Is there a way of printing a file as if I had opened the file with a give app and pressed print in Mac from the command line, the same way I'd do this in Windows? I need it to go though the app since ...
0
votes
1answer
26 views

How to write a Bash script that accepts options?

I'm writing a Bash script to make easier to start a local webserver that I use for testing purposes; I don't need it running all the time, it is more useful to me to start it when I need it. Right ...
-1
votes
3answers
44 views

How to extract a specific line in multiple text file into a single txt file on linux?

I have 5000 txt files with the different data below that. I need a shell script to copy only line 11 (last line) of them into a single file and sort them from smallest to largest. for example: file1....
0
votes
1answer
35 views

Deterioration of Windows 7 after running the regsvr32 command

My operating system is Windows 7 Ultimate 64bit. I receive the following error message when I run InstallShield 2010: "no such interface supported" To solve the problem, I followed these ...
0
votes
1answer
16 views

KeePass kdbx not respecting -pw parameter

If I use the command line KeePass.exe {kdbx location} -pw:{password}, all that happens is KeepPass opens minimized and still asks for the password when I click on it. Even putting this in a ...
0
votes
1answer
65 views

Getting 256 colors from Cygwin within cmder/ConEmu

I am trying to get 256 colors under Cygwin while running cmder. Generally, what I am doing is opening a terminal session in Windows 10 by typing "cmd" into Start. If I need to open a Cygwin terminal, ...
0
votes
0answers
23 views

Bash - Removing all but a single number in output of command

I'm working on a script to process all images in which the standard deviation is less than a certain threshold, e.g., if overall SD is less than 50 in x image, do y to x. The command I am using to ...
1
vote
1answer
50 views

Offline Windows Install - How to view and change Pagefile settings

I'm trying to fix a broken Windows 10 installation which I can't boot into (even into Safe Mode). I have installed a fresh Windows 10 onto another hard drive. How do I view and set the page file ...
2
votes
1answer
25 views

Bash: amount of bytes used in a log file grouped by token

Assume a large log file of several GBs and several million lines where each line contains a token identifying the user account that generated the line. All tokens have the same length and can be ...
0
votes
0answers
27 views

command_not_found_handler not allowing cd command

I have the following code block in the ~/.bashrc file function command_not_found_handle { for dir in $@; do path="${path}${dir}/" done if [[ -d ${path} ]]; then echo "...
1
vote
1answer
17 views

Adding ffmpeg as environment variable

I've been trying to follow step two of the dependence guide of Microsofts Project Malmo. https://github.com/Microsoft/malmo/blob/master/doc/install_windows.md I need to create the environment ...