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
2answers
8k views

Setting environment variables and appending to system-wide %PATH% with a Windows batch file

I'm trying to set three environment variables and append them to the machine path. Right now my code is like this: setx CATALINA_HOME "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7" /m ...
0
votes
0answers
18 views

'.' is not recognized as an internal or external command

def evaluate(str, par): return (os.system("./LKH %s" %par) - swap_2opt_solve_str(str)[1])**2 I have an executable lkh file in the directory. However when my program runs this function, it gives the ...
0
votes
0answers
4 views

How to make Chrome when launched by other programs use my command lines i defined?

For security concerns, i've set chrome to launch with this: --cipher-suite-blacklist=0x0005,0x0004,0xc011,0xc007 --ssl-version-min=tls1.2 I use Windows 7, and when i click it from my TaskBar it ...
15
votes
6answers
49k views
+50

How to access the Administrator Command Prompt in Windows 8?

When I access the Run dialog in Windows 8 and type cmd, it opens a command prompt but it doesn't have administrative privileges. Looking for cmd at the default start screen does show a command prompt ...
1
vote
2answers
147 views

Terminfo or termcap in command-line

Is it possible to see a all the capabilities (terminfo or termcap) of the current terminal on command line?
0
votes
1answer
2 views

How to access Kitematic host computer's command line

I installed Kitematic to my Mac. Kitematic installs a Linux server to VirtualBox to work as a Docker host and has a simple GUI for the basic Docker tasks etc. Now I'm wondering, how to have command ...
5
votes
5answers
80k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
2
votes
2answers
17 views

Using notepad++ command line commands

I am trying to use the -l parameter in a notepad++ command line to open a file and have the highlighting be set to highlight for C++. I typed in the command: notepad++ -lC++ file.cpp For some ...
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
vote
1answer
25 views

What is the best policy for running GUI programs from CLI to silence non-error messages?

When, on Linux, running graphical programs (such as Sublime Text for example) from the Terminal, the program runs fine but logs on the console messages that are not exactly failures, nor useful log ...
12
votes
6answers
9k views

Why won't my Windows 8 Command line update its path

I needed to add a new entry to my PATH variable. This is a common activity for me in my job, but I've recently started using Windows 8. I assumed the process would be similar to Windows 7, Vista, ...
0
votes
1answer
25 views

Registry or command line - Set fixed position of pinned task bar item

I am installing Google Chrome in addition to Internet Explorer 11 on several Windows-7 machines. After the installation, I would like to have Google Chrome set to the same position (#2) in the task ...
1
vote
1answer
25 views

How can I edit local Group Policy settings using command line?

I'm attempting to throw together a script for work that allows BitLocker without a compatible TPM. The setting is "Configuration \ Administrative Templates \ Windows Components \ Bit Locker Drive ...
2
votes
3answers
29 views

Parse string using batch script

How can I parse string using batch script? Goal is to save in a array everything under Import: and strip out #head for example --> //MPackages/Project/config/abc.txt and ...
0
votes
1answer
3k views

cmd > attrib - Unable to change attribute

I'm following this tutorial because I'm having problems with the Task Scheduler service: http://technicallyeasy.net/2010/10/how-to-fix-keyset-does-not-exist-for-scheduled-tasks-in-windows/ Basically ...
0
votes
4answers
2k views

Moving files unattended with cmd prompt

I'm trying to move over 500GB+ and it will take about a day. Is there a way under Windows 7 to move all these files using a command line that will answer yes to any pop-up dialogs? For example, ...
3
votes
2answers
1k views

How to get network ip address via windows command prompt?

How to get network ip address via windows command prompt? I know tat ipconfig /all shows ip configuration, but what about having just ipv4 adress?
1
vote
2answers
622 views

split command on Ubuntu command-line

I want to split a file into multiple files with at most 25 lines each. I'm using this: split -l 25 /etc/adduser.conf > /home/ubuntu/PL/trab3/rc_ But I do not get the files I expect. How can I ...
2
votes
2answers
1k views

How to split a file on a floppy disk without installing any software in DOS?

I want to split a 2.6 MB file on a floppy disk. Is there a way that I can use a DOS command to help me in a pure dos environment. (no applications are allowed to install)
90
votes
5answers
162k views
0
votes
1answer
20 views

How to disable (and re-enable) notifications on GNOME Shell version 3.8.4 from the command line?

I am running Centos 7 with GNOME-Shell 3.8.4. I can happily disable all notifications from the top-right menu, as pictured: I need to do that from the command line, though, because I need to ...
-1
votes
1answer
21 views

Should I use Git from Windows's command prompt?

I am new to Git and learning it these days .I was installing git and it asked me to choose any of three option that whether I wish to use it through gitbash or through cmd and so on .I was confused to ...
0
votes
2answers
3k views

What command lists the files created in a specific month and is readable for the owner?

I am supposed to find the command that lists all the files created in September and are readable for the owner. Also explain how the command works. I know I'm supposed to use ls -l and I will ...
0
votes
2answers
2k views

How do I make netdiag work?

I'm trying to run the netdiag command to troubleshoot the internet connection but when I run it in cmd I get the following message: 'netdiag' is not recognized as an internal or external command, ...
0
votes
1answer
27 views

How to run Windows SDK Command Prompt from command line?

I have instruction to run Select Start --> All Programs --> Microsoft Windows SDK v7.1 and open Windows SDK 7.1 Command Prompt. which is obsolete for Windows 8.1 I have installed something ...
1
vote
3answers
2k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
0
votes
1answer
22 views

Python logging class not working when sending stdout to /dev/null

I have a Python 3 script that has logging enabled (for debugging purposes). Whenever I run/execute this script it is working fine and the logfiles are created. I've also created a setup.sh-bash ...
1
vote
1answer
495 views

Windows 7 batch command-line to save as .pdf file for word 2013 .docx file

I need a fastest way to save my report .docx file to .pdf when never I have a new updated versin to send to others. I'm tired of using the mouse clicking File - Save as - Browse for location Is ...
1
vote
3answers
2k views

How do I change colors on-the-fly in mintty?

How do I change the colors in a Cygwin mintty session which is already open? Is it possible? Use case: Under environment-imposed time constraints, multiple terminal windows have been opened without ...
2
votes
3answers
810 views

Delete last word (Ctrl-W): Make bash shell behave like vim command line

Among the many useful keyboard shortcuts available in the bash shell, there is Ctrl-W to delete the word to the left of the cursor. Let's suppose my command line looks like the following: cp ...
3
votes
2answers
31 views

Command Line Sort Files or Directories by part of their name

How do I sort files or directories by part of their name, specifically the element contained in the parenthesis or separated by delimiter? I am after two separate solutions one for directories with ...
0
votes
1answer
30 views

Windows: How can I use the command line to set registry permissions

OS: Windows 7 Desirable Method: Command Line Other acceptable methods: VBScript How can I use the command line to set registry permissions? I found the REGINI utility, but I'm not having any luck ...
-1
votes
1answer
231 views

How to rename 7-Zip split files as name_00N.zip instead of name.zip.00N

On Windows, when I create .zip split files with volumes less than 20MB with a command like: 7z a name.zip files\* -v20M I get one or more files named name.zip.001, name.zip.002, etc. I need to ...
3
votes
2answers
74 views

How can I make my computer do a repeated series of tasks by a script file on Windows?

When I want to update a web project of mine, I have to do the following tasks all the time: Open cmd.exe. cd into working directory of project. Run localhost command in cmd.exe (~ jekyll s). Launch ...
3
votes
2answers
144 views

Enable Remote Desktop in Windows Firewall from command line

note: #command-line tag do not imply batch-file-only, I will accept a PowerShell script or any freely available utility. tl;dr how to unattendedly transform firewall rules exactly to state GUI ...
2
votes
1answer
56 views

Automatically open a file when gnuplot starts on Windows

I would like to assign gnuplot to .gnuplot files (gnuplot scripts) on Windows 8.1, in such a way that the gnuplot environment starts with the script file loaded. For this I would need to pass the ...
2
votes
0answers
517 views

Is there a automatic way to extract highlighted text from pdf?

Is there a command-line solution to extract highlighted text from pdf? I have a bunch of pdf documents where I personally annotated, and was wondering if there is a convenient way to automatically ...
0
votes
1answer
302 views

Remove grep's line number output in Redhat 5.9

I havent used RH 5.9 until now. I started with 6 but we have some 5.9 servers. The syntax with 5.9 is a bit different with some things. grep for example will output a number line before the actual ...
4
votes
9answers
135k views

How to launch Internet Explorer from the command prompt?

I have to launch Internet Explorer from the DOS command prompt. I have done it with Firefox, like: cd \program files\mozilla firefox\ firefox How to do the same with Internet Explorer?
1
vote
2answers
5k views

How to set/use an empty string value in a variable in Windows XP CMD.EXE command-line?

Using SET to set an empty value to a variable works nicely in a Windows XP .CMD script. However, the same SET command behaves differently in the same CMD interpreter when used directly from ...
10
votes
7answers
39k views

How can I delete all files/subfolders in a given folder via the command prompt?

I would like to delete all files and subfolders in a batch file in Windows 7 and keep the top folder. Basically emptying the folder. What's the command line instruction for that?
2
votes
1answer
27 views

Print line for word found in file in directory

Hello i am using this line find ./ -iname *txt | xargs grep "ququ" -sl>holis.txt To find "ququ" text in a txt file and then write the file name that does contain such word in the txt file, ...
3
votes
1answer
5k views

Disable MsMpSvc from command line

Quite simply I'm looking for a way to disable Microsoft's security essentials service from the command line, you used to be able to run the command (as admin) net stop MsMpSvc but that was somehow ...
0
votes
0answers
7 views

How to have an executable file run without cmd? [migrated]

Right, so I'm in a little bit of a pickle here. I've been coding for years (non-professionally, only algorithms for competitions, I'm still in high school) and I tried to create my very first actual ...
0
votes
1answer
16 views

How can I append text in the middle of a pipeline?

With cat its possible to append a file to the data passing through a pipeline: foo | cat - somefile.txt | bar Is there a command that lets me append text without using an intermediate file? foo | ...
2
votes
2answers
238 views

How do I detect if uTorrent is downloading?

I need to write a script that determines whether or not uTorrent is currently downloading something. I'd rather it just be downloading, but if I cannot differentiate between downloading and uploading ...
1
vote
2answers
28 views

Given key-value content, how do I group values by key and sort by value?

I've the following sample input format (file or stdin): key1: 1 key2: 2 key3: 3 key1: 4 key2: 5 key3: 6 Is there any few-liner which can group values based on the key and then sort? Expected ...
0
votes
1answer
3k views

Starting VLC via command line to play a video as desktop wallpaper

I'm trying to create a batch script to start a video as a live wallpaper on startup. Right-clicking a playing video and selecting the "Set as wallpaper" option works fine, but attempting to run VLC ...
2
votes
4answers
8k views

How to play a folders worth of music/video in VLC media player

In VLC media player, I can use vlc -LZ <file 1> <file 2> <file 3> for example to play various files on repeat and shuffled. Is it possible to specify a whole directory and play all ...
5
votes
5answers
4k 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 ...