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
0answers
190 views
+100

DPI Scaling in Windows 8.1 via command line

I'd like to create a keyboard shortcut to quickly and easily change the DPI scale on my machine, by means of creating a small macro to run upon detection of the keyboard shortcut. In Windows 8.1, the ...
0
votes
1answer
23 views

Configure bash_profile for one single terminal emulator

I am using a new terminal emulator. Terminology is the E17 default terminal, and it has a great command: tyls which is a "graphical" ls I want to create an alias just for this terminal, because the ...
0
votes
2answers
17 views

Perform scp-then-ssh in one connection

Both at work and at home I tend to do the following very often: $ scp "SomeScriptIJustCreatedOrModified.sh" some-server: $ ssh some-server ./SomeScriptIJustCreatedOrModified.sh arguments And ...
20
votes
11answers
53k views

How to prevent the command prompt from closing after execution?

My problem is that in Windows, there are command line windows that close immediately after execution. To solve this, I want the default behavior to be that the window is kept open. Normally, this ...
-1
votes
0answers
10 views

Need Text Line Editing Commands for windows

I asked something similar to be do with batch but it didn't work out well (as i need batch only solution). Some suggested SED , TR etc. So i hope to get a solution with these 3rd party exe's using ...
1
vote
1answer
3k views

How to filter running in VLC video stream on commandline?

I easily can broadcast my webcam with VLC using command lines like this (I use Windows): "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv -I --dshow-vdev="Logitech QuickCam Express / Go" dshow:// ...
-1
votes
1answer
16 views

Start a program after waiting for user input

I'm writing a .bat file, and I'd like to start a program after waiting for the user to press any key. I tried the command below, but I got and "Invalid syntax" error: timeout /t -1 foo.exe
0
votes
1answer
17 views

How to collect specific data?

I have a text file like this abcdxxxxx abcdxxxxx 1234567 - abcxxxx from that file I want to separate only the strings with abcd as header part. Help me please. Thank you.
0
votes
0answers
6 views

Display image with fit to window and single instance mode

I’ve got a stream of images (jpg) and I want to display each one as soon as it arrives. So, basically, here is what I want: There is currently some image on the screen; a new image arrives, my ...
0
votes
0answers
8 views

An omnipotent Command Line? [on hold]

So far it seems like Command Line (CL) is an omnipotent tool. But I was wondering, are there any tasks that one can do only through Graphical User Interface (GUI), and at the same time can't be ...
7
votes
3answers
5k views

Difference between UnxUtils and GnuWin32?

I am a Windows user who wants programs like grep and sed along with other utilities like ls, cut etc in my command prompt. I came across 2 packages which would accomplish this UnxUtils GnuWin32 I ...
0
votes
1answer
33 views

How can i make changes to this file Encoding?

I have these 3 files 21/08/2014 07:15 PM 122 Tw2AWK.csv 21/08/2014 07:15 PM 125 Tw2Notepad.csv 21/08/2014 07:15 PM 119 Tw2REPL.csv C:\myfiles>file ...
0
votes
2answers
21 views

Is there any reason this cronjob would fail in cron, but not on the command line?

I have written a little one liner that will email me when a list of files changes - I used sha512 to generate a list of hashes and then periodically check that those hashes still match. */5 * * ...
20
votes
4answers
8k views

How to scroll up and look at data in GNU screen

I am using a mac (snow leopard). I am a ruby on rails developer and I watched a screencast on GNU screen and am trying it out. So far I like it. On a window when I start server I get to see the log ...
0
votes
1answer
2k views

Use ffmpeg copy codec to combine *.ts files into a single mp4

I've got a bunch of ts segments described by a single index.m3u8 file: index.m3u8 segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts segment4_0_av.ts segment5_0_av.ts I know they ...
33
votes
5answers
102k views

Any command-line or batch cmd to concatenate multiple files?

I have 50 text files in one dir. Is there a Windows command-line method to concatenate those files into a single file? I am using Windows Vista. I don't want to type the name of all files.
0
votes
2answers
7 views

How can I reconnect to a dropped gutil ssh session?

I have installed Matlab on a (remote) linux (debian) machine. I run Matlab by tunnelling in from my Osx machine via ssh and then using the command line interface. To run a Matlab script I run ...
18
votes
8answers
8k views

Is there a way to display a countdown or stopwatch timer in a terminal?

How can I display a real-time countdown timer on the Linux terminal? Is there an existing app or, even better, a one liner to do this?
0
votes
2answers
137 views

Windows 7 - 64bit OS - Opens java.exe always in a separate command prompt

Upgraded my windows 7 from 32 bit to 64 bit. Installed Java 6 (64 bit) and 7 (64 bit) version. Whenever i execute "java" in a command prompt, it opens a new command prompt and execute it. Even if i ...
0
votes
1answer
17 views

How do I use Adobe Acrobat's “combine supported files in Acrobat” feature from the command line?

The Windows version of Adobe Acrobat (not Adobe Reader) has a feature where I can select a group of files and hit "Combine supported files in Acrobat" in the context menu and it will present me with a ...
0
votes
1answer
24 views

Windows Batch - Move files to folder parent & Remove empty subfolders

I found several such questions and tried to adapt the answers to my needs but no luck so far. Im trying to create two context menu entries in Windows 7 that would: Move all files from ...
1
vote
1answer
229 views

Command prompt uses 4x6 font for non-1 sessions, 8x12 unavailable

I have a proble with Windows 8. If the current user session isn’t the first session started after a cold boot (basically meaning a restart in Windows 8), the console windows use very tiny 4x6 terminal ...
5
votes
3answers
4k views

Command line tool to query HTML elements (linux)

I am looking for a (linux) command line tool to parse HTML files and extract some elements, ideally with some XPath-like syntax. I have the following requirements: It must be able to parse arbitrary ...
0
votes
0answers
22 views

Automatic Onedrive setup at login

Now here's a fun ol' question. Basically we now have Office 365 and want a students home area to also be their Onedrive. We have managed to set this up for multiple users on a single machine, and it ...
39
votes
2answers
6k views

Case insensitive tab completion in Bash

Is there any way to make Bash tab complete case insensitively? $ bash --version GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0) Copyright (C) 2007 Free Software Foundation, Inc. I am ...
2
votes
3answers
7k views

Is it possible to use putty as the UI for the Windows shell?

PuTTY is much better than cmd.exe. Can I use PuTTY to execute Windows commands?
1
vote
3answers
3k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file ...
0
votes
0answers
20 views

Trying to delete locked files

I'm new to coding and the mac OS and I'm trying to delete a locked file under application support but I'm not sure what code I need to put into terminal in order to do that. If somebody could help, ...
0
votes
3answers
4k views

dd to create bootable linux usb, resulting filesystem unrecognozed?

I tried to create a bootable usb of kali linux using "dd if=kali.iso of=dev/sdb bs=512k" as per http://docs.kali.org/installation/kali-linux-live-usb-install but the resulting filesystem is ...
1
vote
1answer
56 views

How to parse pipe with multiple commands independently?

How can I parse output of a single command by multiple commands without truncating at each step? For example ls -al|grep -i something will pass every line that has "something" in it to the next ...
0
votes
1answer
19 views

Assigning a Windows environment variable to a batch variable?

I can't seem to assign an environment variable to another one inside a batch script. For example, this will work: set varA=C:\this\is\a\directory and I can happily use find /I "MyString" %varA% ...
0
votes
2answers
37 views

How do I find and kill a php loop (process)?

I have a php script that I have been developing which calls an external api within a loop. It is being tested on a VPS which is running LAMP on Debian. I noticed this morning that the api was not ...
0
votes
1answer
5k views

How do I mount internal HDDs in Ubuntu via the command line?

I'm new to Linux and have a home server set up running Ubuntu. In the GUI it's very easy to mount my additional internal hard drives. I just double click on them. Since I have made this server ...
0
votes
0answers
14 views

Prefix commands in batch

I am using a batch file to run Grunt with some console customization. I was wondering if there is a way to add grunt and a space to the commands I enter into the console. Here is my batch file: CD ...
23
votes
10answers
16k views

Bash: Reset and Clear Commands

I have been using the command: reset to clear my terminal. Although I am pretty sure this is not what I should be doing. Reset, as the name suggests resets your entire terminal (changes lots of ...
0
votes
2answers
27 views

CMD doesn't update environment variables even when restarting the OS

I've been setup my variables for my development environment using the Windows cmd, but it works well only the first time I set them with the System>Advanced>Env Vars dialog. I just restart cmd and it ...
2
votes
3answers
3k views

bat file to disable ethernet adaptor and then reenable it after windows log in

When I log into Windows 7 I need to wait 10 seconds and then disable the Local Area Connection (ethernet adaptor) and then reenable it. I have looked through the suggested answer: Enable/disable ...
-3
votes
0answers
23 views

When deleting file I get this msg [duplicate]

by Erase Command : C:\important Folders\pentest\bluetooth\blue-smash\vcards>erase "c:\important Fol ders\pentest\bluetooth\blue-smash\vcards\AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ...
0
votes
1answer
19 views

After each command tmux prints: ps1_update: command not found

On Linux Ubuntu 11.04, after each command (cd, ls, vim...) successful or not, tmux prints out as a last line ps1_update: command not found. Is there any config option I am missing? Thank you very ...
0
votes
1answer
25 views

How to automate copying files from external memory?

I'm looking for an efficient way to copy pictures from SD card to HDD. I'm using adobe suite for editing, and I don't want to "clutter" my PC with otherwise useless software (like Picassa). It would ...
1
vote
0answers
11 views

Is there a simple command line UPnP AV Control Point?

I am looking to implement a Glorified Internet Picture Frame at work. The goal is to show a 4k picture on our wonderful 4k television, with all pixels intact, from a network-accessible source which is ...
2
votes
1answer
8k views

How to install GNOME desktop from DVD on CentOS 6 using the command line?

I have installed CentOS 6 in Virtualbox. Although I have chosen to install General Purpose GNOME Desktop, the GNOME desktop does not start. All I get is a black and white text prompt. I would like to ...
2
votes
5answers
2k views

Disable Windows 7 for hidden files and folder search

I want to hide all my important folders. Fortunately I did that, but the biggest loophole here is anyone can find my files using their names in search. So if my folder is not visible, anyone can ...
0
votes
1answer
40 views

Enter response once prompt returns?

It's neither a secure idea nor one I'd recommend elsewhere, but I have a situation when occasionally it takes a while for my Ansible ad-hoc command to respond. I'd love to pipe or args or whatever is ...
0
votes
1answer
18 views

Error while using copy command to copy files in subfolders

I'm using the folliwing command to copy all files of the same extension from a folder and all its subfolders to a new destination: for /R "f:\" %f in (\*.mp3) do copy %f "C:\Documents and ...
3
votes
1answer
117 views

Why does ffprobe report an incorrect number of frames?

I have a small video file which ffprobe describes as:- Input #0, avi, from 'sample.avi': Metadata: encoder : Lavf55.12.100 Duration: 00:00:35.00, start: 0.000000, bitrate: 546 kb/s Stream #0:0: ...
0
votes
1answer
49 views

Batch Script to Trim lines in text to first 30 or 50 characters only

I am now new to scripts but i find it really difficult understanding "for" command (especially with that tokens and delimiters etc) . Saying so, i think that for command can be used to do what i am ...
2
votes
2answers
241 views

In Windows Command Prompt, how to get the last command that started with some letters?

Let's say I entered a bunch of commands one after another: rm blah.txt pwd ls cd .. cd blah pwd If I want to get "rm blah.txt" to appear again without typing the whole thing again, I can press up 6 ...
4
votes
3answers
100 views

Use DOS batch to move all files up 1 directory

I have created a batch file to be executed through the right-click menu in Win7. When I right-click on a folder, I would like the batch file to move all files (excluding folders) up 1 directory. I ...
10
votes
1answer
243 views

What does “C:2\” in a windows path string mean?

I got this pop-up from the Windows firewall. What is "C:2\" in the path? The real path is D:\Steam\SteamApps\common\... I tried cd /d C:2\ in cmd and got "The system cannot find the path ...