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
votes
1answer
28 views

How can i compressed(winrar) a file using command prompt and the file name of the .rar is the same with the file

i have a autoback.bat file that will automatically backup my database and compress in using winrar application. the problem is i cannot create a rar file that is the same filename of my database. for ...
0
votes
0answers
9 views

Hoping to open a SQLite Manger in-memory database from the OS X command line

I like Firefox's SQLite Manager plugin because it's easy to show people how to use it. But ideally, I would like to be able to seamlessly move seamlessly between SQLite Manager and the sqlite ...
1
vote
2answers
1k views

In Windows 10, is there a command similar to wuapp.exe that will launch the Windows Update GUI?

In previous versions of windows running the command wuapp.exe would launch the Windows Update GUI. I want to be able to launch the Windows Update GUI from within a script/program thus would like to ...
0
votes
1answer
20 views

“Parameter Format Not Correct” when typing file paths

I've been trying to use the command prompt in Windows 7 to delete a stubborn folder (_MEI50722) from my temp folder. It's a highly-suspect folder in my hunt for some malware I'm thinking is hijacking ...
0
votes
1answer
100 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
0answers
19 views

Linux cp command: Auto-rename files, windows-like, FAT32, file name restrictions, ignore symbolic links

Linux cp command: How can I auto-rename all files to conform to windows or FAT32 formatted device file name restrictions, and ignore all symbolic links? I am trying to copy the contents of my dropbox ...
1
vote
1answer
39 views

Customize command prompt globally

I am customizing the Windows 10 Command Prompt using the following method: Windows key => Type cmd => Open cmd => Right click window => Properties The problem is that this customization will not ...
2
votes
0answers
19 views

Is there a way to open non-runnable files directly from CLI

Let's say I have file without execution permission. Now a quick way to open such a file over the CLI is to use xdg-open which uses the system default to open a specific file. Is it now possible to ...
0
votes
2answers
1k views

Can I trust this Windows 10 WiFi fix?

I've just installed Windows 10, and I my laptop can't find any wireless networks, even though I know for certain that there are ones available. I did do a little research, and found that (supposedly) ...
-1
votes
1answer
42 views

Need help finishing a batch script to rename files

i am writing a script to rename files based on date. Files are generated every day from a server outputing them like this: fil150807102600000001.txt fil150807102600000002.txt ...
1
vote
1answer
25 views

How can I print particular set of pages like 1,3,5,6,9… using lp command

I am trying to print particular set of pages using lp command, but page-ranges option is not getting me the exact pages. lpr -o page-ranges=1,3,5,6,9 filename
3
votes
1answer
22 views

Unix tool to print directory (recursively, with ASCII art)?

Is there a command-line utility that can be run in a directory and output something like this, a pretty-printed directory structure? myproject └─ src ├─ master.scss ├─ my-module.scss └─ ...
1
vote
2answers
43 views

Search for files by creation or modified date using command line

From the command prompt, the script: C:\>dir *.* /s > a.txt will list all files in the TXT file (a.txt) which can then be opened in Notepad or another text editor. You can then search through ...
1
vote
4answers
62 views

Shutdown from a bat file *without* close process confirmation in windows 95

Every single guide on the net says to use RUNDLL USER.EXE,ExitWindows which works... from the run command However, when run from a bat file, this command, although it works, requests confirmation to ...
1
vote
0answers
18 views

7zip cli kills itself. Why?

I have 1 TB huge directory on debian/ext3. I need to 7zip it and then transfer it to another computer windows/ntfs. I use the following command, but in the end it says Killed. Any idea whats wrong? ...
0
votes
0answers
22 views

Windows 2012 Server, ONLY command prompt access to administrator

Is there anyway I can create a Administrator in Windows server and give access ONLY to command prompt. Due to some reasons, We want to give access to ONLY to command prompt for admin users in Windows ...
0
votes
0answers
22 views

How to open a password protected ODS file via command line / external script?

I created a password protected libreoffice's "calc" file (ods). Now I'd like to open it, or convert it to plaintext format, either via command line, or with an external script, e.g. python. What I ...
0
votes
0answers
7 views

Determine the status of external displays in OS X from a script (at the command-line)

I'd like to configure my Vim, tmux, and some other things differently depending on whether I've got external display(s) attached to my laptop. (For instance, my external displays are usually further ...
2
votes
1answer
39 views

Faster du/stat alternative for directories

I have several very big directories and i want to know their estimated size. I use for this purpose mostly du, but it takes for each folder about 3 minutes, so i'm asking if there is an alternative to ...
0
votes
0answers
12 views

Can't unhide folders on secondary drive1?

I remember I used the attrib command on cmd to hide it, and I always use to the address bar to access it in explorer. But now I can't unhide it. Since I used cmd to hide it, it's no surprise that ...
0
votes
1answer
23 views

List VPN connections and properties in command prompt

Is there a command, in cmd or PowerShell for Windows VPN like there is for wifi, to list and edit profiles? Like this is for wifi. (just an example) netsh wlan show profiles
0
votes
0answers
29 views

How can I reset Safari 8 cookies from the command line?

How can I reset Safari 8 cookies from the command line? I've read the question Reset Safari from command line which seems to work fine for Safari 7, but this method no longer seems to work with ...
5
votes
1answer
156 views

Hide what I type into Command Prompt

Some commands require putting in the password as one of the arguments (like net use, for example). Is it possible to run a command or change a setting in Command Prompt so that whatever I am typing ...
-1
votes
0answers
13 views

chm issue. Error when clicking item within ntcmds.chm “The value of the property resizegloss is null or undefined”

I copied ntcmds.chm from an XP machine (I know it's probably a bit old, it being XP, but Win7 doesn't have any locally available chm like that) And when I click the "command line reference" item, I ...
1
vote
2answers
24 views

Conditional variables in Makefile

I am trying to compile source code in various ways. For example, suppose I want to compile a fortran program with source code main.f90, file1.f90, and file2.f90 as inputs. To generate hello.exe, I ...
0
votes
0answers
17 views

Scheduled tasks inconsistently running

I'm trying to run a PowerShell command for a persistent session in Metasploit. It downloads and executes shellcode on system startup. I've gotten it to work when I'm on the computer with the GUI, ...
1
vote
1answer
16 views

Directory with same name subdirectory move

I got myself stuck and can't seem to find a quick way to fix this. I have an external HDD with a folder structure like this: \folder1 \folder2 \folder3 some of these have a subdirectory named the ...
1
vote
1answer
14 views

? wildcard produces unexpected result in LS directory search

I'm trying to get the hang of the CLI (command line interface). At the overall root directory, I did the following: root@droplet:/# ls ?tc I expected to get just the etc directory in the result ...
1
vote
3answers
133 views

Get data usage since last reboot by command line

For an automated batch-tool that monitors network usage, I would like to get the following, red underlined values using the Windows command line: That is, I want to get the number of bytes ...
0
votes
0answers
10 views

OSX HID control from PHP

Here's a real challenge: I have created a command that types from the CLI in OS X 10.11. osxtype "hello" will send the actually keyboard keypresses for h, e, l, l and o. it will type into what ever ...
0
votes
2answers
35 views

Why doesn't my IF ELSE work?

It's a simple script I wrote, nothing fancy at all @echo off echo 1 = stream1 source echo 2 = stream1 high echo 3 = stream1 medium echo 4 = stream1 low echo 5 = stream2 source echo 6 = stream2 high ...
2
votes
1answer
33 views

If a motherboard has onboard graphics, can I use a monitor for BIOS

I am building a home server that will run FreeNAS with a Plex media server plugin, and will only ever plug it into a monitor to do the initial command line setup. If I get a mother board like this ...
0
votes
0answers
29 views

Windows 7 safely remove USB multiple disk enclosure from command line

I want to eject a USB multi-disk enclosure from the command line or with a tool that offers command line support. I can find information about ejecting a USB drive but nothing that seems to support ...
0
votes
2answers
16 views

How do I find out how long a command has been running for using time command?

I have a long mysqldump thats been running for over 2 days now (many 100s of GBs of data being archived). I started the command with time so that I could see how long it took when it finished. Is ...
1
vote
1answer
43 views

Count number of lines in file using batch

I am using TrailerCount.bat file to count the number of lines in text file using below mentioned code @Echo off ::set newline=^& echo. SET FilePath=%1 Set /a _Lines=0 For /f %%j in ('Type ...
1
vote
3answers
527 views

What does hyphen mean in Windows batch file?

In particular, I have problems understanding the hyphens in the following lines, which are from wikibooks if not -%1-==-- echo Argument one provided if -%1-==-- echo Argument one not provided & ...
0
votes
1answer
47 views

Windows batch file deletes and recopies files WAY too fast - should take 15+ seconds, takes < 1 second. Why?

I wrote a script that checks to see if a folder exists, and if so, empties it. it then waits 5 seconds, then proceeds to recopy new (or maybe the same) files back into the folder. When the folders ...
0
votes
0answers
41 views

Cannot access server via SSH in terminal

When I try logging in via ssh root@server.org I am asked for my password, however when I enter it, it doesn't work. I can access the server by a different user then run su root and the password works ...
0
votes
0answers
12 views

Git asks for password in cmd [duplicate]

I have tried to set up my ssh-keys on both the command prompt and git bash. What happens, is that everything works fine till I do a git <something>, and it asks for my password. Enter ...
1
vote
4answers
58 views

Capitalize “FILE name.TXT” to “File Name.txt” in Linux Bash

I need a oneliner to rename all files in a directory from SomeThing.TXT NOT A FILE.ogg sensitive lalala.doc to Something.txt Not A File.ogg Sensitive Lalala.doc Most existing questions seem to ...
0
votes
0answers
18 views

How to get number of pages from pdf

I wanted to get the number of pages in a pdf file how can I do it I am using the below mentioned command for the same pdfcount "AAE 8.0 - Release Notes.pdf" | grep ^pages Awaiting for your ...
1
vote
2answers
137 views

Escaping the < sign with ^ does not work in .bat file

I'm trying to write a batch file that can generate some XML config files, but escaping the < and > signs does not seem to work. At the start of my script i wrote a test: SET ...
0
votes
0answers
18 views

Is it possible to initiate SCCM 2007 updates from the command line or powershell on client's computer?

Current Process: 1. RDP to client's machine 2. Install updates that are advertised in User Interface 3. Reboot Issues: 1. We have to remote into one machine at a time, which is a nightmare. 2. We ...
-1
votes
0answers
47 views

Internet connection not working

This problem is not really related to programming, but to my computer. As of this moment I'm writing from my mobile phone. Not because I want to, but because I'm forced to. Maily because I have no ...
1
vote
1answer
135 views

How do I use VLC Command Line In Windows Batch Line Without Showing GUI?

I want to use the following to convert some M4A files to MP3. It works fine, but it displays the VLC GUI for each file and shows 'quit' as a second file to be converted. Is there a 'silent' mode, ...
0
votes
1answer
22 views

How do I view the tab completion function for a command in bash?

I ultimately want to alias screen -r. I mostly want to do this because that command has an awesome tab completion feature that shows me the current GNU screen sessions. I want that power with the ...
0
votes
1answer
19 views

Command for sharing same folder with multiple names

I’m currently working on an improvement of our deployment process and I’d really like to automate one of the new steps. Through Windows UI I can share the same folder on the network under multiple ...
1
vote
0answers
31 views

Applying a command-line flag to Chrome at auto-launch

(Windows 8.1) Chrome auto-launches for me when I log in, and I like that. The problem is that the Disable New Avatar Menu flag recently stopped having any effect, so the only way to actually disable ...
0
votes
1answer
26 views

I want to read and write files on server how can I do it using command prompt

I want to read a particular file from server and after comparing them I want to write the difference in a txt file at the same server how can I do the same using command prompt. findstr ...
0
votes
1answer
24 views

Specifying multiple cd commands in a .command file

I have a very small .command file set up on a mac server that's basically just meant to launch a Python process. It's more intuitive for other people to use than opening terminal, typing out 'python' ...