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
5 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 ...
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
1answer
3 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 ...
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
13 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
16 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
227 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
15 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
15 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
55 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
18 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
26 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
22 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
10 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
17 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
116 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
44 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
240 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
90 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
239 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 ...
0
votes
0answers
23 views

Create a word cloud on linux command-line

I'd like to create a word cloud on the linux command-line, similar to wordle and similar services. How can I do that? I have plain-text files and I'd like to create a word-cloud for each one.
0
votes
1answer
21 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 ...
4
votes
5answers
6k views

How to change the default color of the Command Prompt?

I want to change the color scheme of the command prompt in Windows, ideally a default of 0a (green color on black background). How can I change this?
2
votes
2answers
4k views

What command to use to unpack a .tar.gz file in Windows?

I use to receive tar.gz files fromm colleagues but unpacking them with 7zip is not convenient as it unpacks a tar file from gz first while I usually seek to get the tar file contents (so I have to ...
2
votes
1answer
508 views

copy list of video file names to text file along with their runtime?

How to copy a list of file names to text file? I am linking the above page because of its relevance to my question. Is there anything similar that can be done to output a 'plain' looking text file ...
6
votes
1answer
12k views

Set Permanent Environmental Variable in Windows XP

I want to set environmental variables permanently through a batch file. Is there a command to set Permanent Environmental Variable (other than SETX) for Windows XP service pack 3? command SETX ...
2
votes
4answers
3k views

Batch file to backup and change environment variables

How do I write a batch file that backs up and restores the environment variables. After that, I want to set some of the variables and if something goes wrong, I can rollback the changes with this ...
0
votes
0answers
12 views

Imagemagick: Advanced JPG to PNG convertion

How could I do something like this with Imagemagick?: imagemagick -inuput:0*.jpg select-by-color:ffffff -threshold:15 -fill:fffff -mode:greyscale -mode:index:17 -output:Original_filename.png Using ...
0
votes
4answers
42 views

Kill multiple processes by name instead of pid

I have a job that spins up 2-5 copies of a command on Ubuntu Server 14.04. I'm trying to figure out the simplest (i.e. single command-line instead of a script if possible) to kill all of them. The ...
5
votes
3answers
5k views

Refresh environment variable

How can I refresh a Windows cmd shell after I modified my Environment variables? i.e. in bash I can just do "source ~/.bashrc"
3
votes
1answer
88 views

Does Windows 8.1 prevent defragmentation from a SSD even in the event of running by mistake defrag on command prompt?

Hope you can me with this. I am concerned about a possible defragmentation on my SSD. I have a laptop running Windows 8.1 preinstalled and further equipped with a SSD. Windows 8.1 has detected the ...
15
votes
7answers
32k views

Get list of installed applications from Windows command line

I once saw a guy run a command and got a list of all installed applications on his computer. How do I do this? I would like a list of my currently installed applications. I believe he used WSH ...
0
votes
1answer
18 views

How to access Java JARs through CLASSPATH environment variable on Windows 7

I know there is this article on JAR files on Linux but the solution involves some Linux specific commands I don't know, and ultimately I'd like to understand if I can access my JAR (and JARs it ...
0
votes
0answers
14 views

SSD not being recognized

I've recently had a problem with my Windows 8.1, it started loop rebooting like it was crashing everything it booted up the explorer.exe. After a few checks I found out that winload.exe was corrupted. ...
0
votes
1answer
28 views

How to pass output of command to sed

My sed command in #Update key in config file. does not get the contents of the variable $GETKEY Someone help me? # Get key from output of the website. GETKEY=`wget https://www.badips.com/get/key ...