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
26 views

PsExec returning “the system cannot find the file specified”

I am trying to open a program remotely from another pc. I am using this command for psexec: psexec.exe -accepteula -s -d -i 2 -w C:\Tools \\192.168.1.1 -u Login -p Pass C:\Tools\program.exe If I ...
2
votes
1answer
28 views

How to give count to a Vim command line command (like :insert, :normal, etc)

In Vim as probably all of you know it is possible to give a count to commands in "normal mode" by preceding them with a number. Like for example 4dd that will delete 4 lines. I am wondering if there ...
0
votes
1answer
19 views

script a list of websites to determine ciphers

Have a list of websites I would like to check the ciphers. We will be using SSL decryption and want to see if I can in advance check the sites that will not support our decipher. We have some ...
1
vote
1answer
14 views

How to prevent zsh from expanding history when space bar is pressed?

I would like to use the expansion mv 'foo bar' !#:1:s^\ ^-^ to produce the command mv 'foo bar' 'foo-bar'. However when I press the space bar, zsh assumes I've finished typing the expansion, leaving ...
1
vote
1answer
28 views

How do I use a for loop and output to a different directory

usage: pdftotext [options] <PDF-file> [<text-file>] I'm using pdftotext (xpft, usage above) to covert all pdfs in a directory (and subdirectories) to textfiles. It doesn't matter if ...
1
vote
2answers
38 views

Completion when pasting Bash command beginning with tabs

I'm writing a Dockerfile which I'm formatting using tabs (which I usually use everywhere). But I've copied a multi-line command where the second line begins with two tab characters, i.e.: apt-get -y ...
-1
votes
1answer
35 views

Command to save and restore partitioning under Linux

I know we can use sfdisk to save and restore partition tables. Save: sfdisk -d /dev/sda > part_table Restore: sfdisk /dev/sda < part_table But is there other command line tools to save ...
1
vote
3answers
116 views

ffmpeg command not found but its installed on server

I was trying to update ffmpeg, after searching a lot on this topic i decided to uninstall the old one and install new version of ffmpeg i-e; ffmpeg 2.6.3 i installed new version using this link but i ...
1
vote
4answers
51 views

what is the unix equivalent to windows command route add

I need to run the command route add -p 123.45.67.8 mask 255.255.255.0 208.00.000.000 on a linux server. what is the unix equivalent?
0
votes
1answer
35 views

Prompt command starting in the wrong folder [duplicate]

I am currently facing an issue I do not know how to track. I put the start-in option of a prompt command to : C:\Users\XXX\Downloads Then apply and finally when I open the prompt command, it ...
0
votes
0answers
31 views

Most efficient command to search the first line of many files (windows)

I am new to the windows ecosystem. I have been tasked with writing a program that will search several 10's (maybe even 100's) of thousands of files for a particular string. The string that must be ...
1
vote
1answer
35 views

add hash to a file using command line

I am writing a Windows batch file to copy a file from my computer to a network location, but before doing this, I need to add a hash for it using the command line. Assuming that my file is named ...
2
votes
1answer
29 views

Shortcut to bring an app to front if the window title is not constant?

For example, applications like Files or Document Viewer in Ubuntu: If I want to focus a window like Sublime Text, then wmctrl -a "Sublime" is straightforward, but for Files, the title can be ...
0
votes
1answer
31 views

How to execute a very long command line when launching a java program?

I need to start a java application with lot of additional libraries (libraries can be linked in runtime using -cp argument). When I paste this command line in command prompt, it says the command line ...
0
votes
0answers
21 views

How do I add a Google account (add person) using the command line?

For an automatization process inside a virtual machine, I need to add/login into a Google account on Chrome or Chromium using the command line only.
2
votes
1answer
55 views

Send Multiple Remote Desktop Sessions A Command

I use Microsoft's Remote Desktop Connection Manager to administer users on my network. I am looking for a way, or another program, that will allow me to send a command to all of my logged in remote ...
0
votes
1answer
29 views

How to netcat all the files in my directory?

I have a directory of files I'd like to netcat to another machine. For one, I use nc <ip> <port> < sample.fls But if I have a directory of sample1.fls sample2.fls sample3.fls ...
0
votes
2answers
50 views

Open ssh session with defined title from command line

I have a little problem with executing putty(from command line) with -m argument. Please help me with this, or suggest a better way if you know one :) The command(from "Run"): putty -ssh ...
3
votes
3answers
305 views

Script to get images in folder with dimensions printed to a .txt file

As title goes, is there a script for Win 7 to get printed on a .txt file all the images (JPG, PNG, GIF ecc) inside a folder along with "filename" and "pixels dimension"? I've tried with dir on ...
8
votes
3answers
144 views

How to have a better view when typing out directories in terminal?

I am currently using a Mac and learning to use the terminal, but the question applies to Linux systems as well. I would like to ask, when typing out paths in the terminal/command line, is there a way ...
0
votes
1answer
33 views

SSH then running command in the same line is different to running on different lines? Bash Script

In a bash script, I'm trying to use ssh and osascript to display a notification on another mac. I can only manage to do this on the command line by first ssh-ing into the other mac then running ...
1
vote
1answer
34 views

Is there a tool similar to IEpxress or 7Zip that can pass command line arguments to a dependency [closed]

I recently discovered IExpress and would like to use it to package arbitrary scripts in any language with their respective interpreters/libraries/dependencies. IExpress and 7zip can offer all of that ...
0
votes
1answer
41 views

batch file opens new command prompt - how to redirect new command prompt to a file?

tia, but I'm wondering if there's a way to redirect a tomcat startup.bat call into a text file. Here's my situation: I open cmd, navigate to the needed directory, and call 'startup.bat' This opens up ...
0
votes
1answer
28 views

How to handle Permission denied on source command?

I am trying to persist my java environment variables to the system and I'm having trouble with the following: :$> source java.sh -ksh: source: cannot create [Permission denied] What is the ...
2
votes
1answer
36 views

How do I phrase what I'm looking for here?

There is a feature I'm looking for on Windows in the command prompt - and I don't think it exists - but rather than looking to see whether it exists in any way - I'm looking to see how to properly ...
0
votes
1answer
20 views

How to put a multi-lines text in a database from the command line?

I have emails exports in full text (one file per email). I want to put them in a database from a shell script (bash or python). Let's say I have created a database with a emails table, and from, to, ...
0
votes
1answer
39 views

Windows, not admin: Proxy working in Firefox but not in cmd, why?

I've manually configured the proxy in Firefox, and it works. I tried to use it also in the command line, but it fails: >set http_proxy=http://USERNAME:PASSWORD@HOST:PORT >set ...
0
votes
1answer
39 views

Command-line host info

What is the equivalent of host hostname from Linux in Windows? For the people pointing me to how to change hostname in Windows, it is not about changing the computer's hostname, what I meant was: $ ...
0
votes
1answer
29 views

Windows batch file “was unexpected this time”.

@echo off pause set /a x=1 set /a n=0 set /p x_end=x (End)= :loop cls set /a n=n+1 set /a x=x+n+1 set /a students=n+2 echo x=%x%, n=%n%, x (End)=%x_end% if (%x%=%x_end% goto end) goto loop :end echo ...
1
vote
1answer
45 views

7zip Batch Compression for a specific file extension in different folders

I've already learn how to batch compress my files as-is with 7zip but I have something more complex need on this issue. Maybe I can explain my needs with this scenario; I have a backup folder of my ...
2
votes
1answer
25 views

Delete scheduled taskname containing space

I want to delete scheduled tasks that start with "Adobe Acrobat" eg "Adobe Acrobat 123","Adobe Acrobat 456","Adobe Acrobat 789" schtasks /Delete /TN Adobe* /F This command fails to find any tasks ...
0
votes
1answer
23 views

Change to a “parallel” directory in a single instruction

I would like to move directly from the "Classwork" directory into the "Assembly" directory with a single command line instruction. If possible, I would like to use relative paths to do this: I ...
0
votes
2answers
31 views

Return a list of files/filenames in order to find where a pattern of filenames breaks

I have a folder containing hundreds of files with filenames such as month-day-time.txt They follow a pattern of 1 file for every 10th minute of the hour, as in the example (here the minutes ...
0
votes
2answers
36 views

In Linux, how can I run a process that I can come back to later to give a command after detaching

I'm currently developing a server hosting app (mainly for myself / learning purposes) and everything works great and what not, I don't know how many of you are familiar with Counter-Strike in general, ...
0
votes
0answers
25 views

Nohup doesn't work when executing script from Jenkins

I have bash script which executes following nohup ws --port 8080 & when executing that script directly on remote server and closing connection - process still exists. But when i am using ...
0
votes
3answers
46 views

How to access folder path from first input parameter and how to call IF Loop in batch file?

@Echo OFF SET FilePath=%1 SET HeaderFilePath=%2 SET RetrunCode="0" Call :sub %FilePath% exit /b :sub SET FileName=%~n1 SET FilePath=%1 SET "FileType=.zip" CALL SET ...
-2
votes
1answer
26 views

Command line switches for Netop Remote Control version 9.0 (NGstw32.exe)

Would anyone by any chance have the command line switches for Netop Remote Control version 9.0 (NGstw32.exe)? I've contacted Netop support but they no longer support this version, and I can't update ...
1
vote
1answer
56 views

Windows: Command-line method to know the name of my audio recording device(s)?

I don't know if this could be a rather programming question, so I have opened a corresponding (and a bit different) question at StackOverflow. I will post the answer here if I obtain it, by the ...
0
votes
1answer
62 views

Mac OSX restart from command line and close all windows

I want to use command line to restart my mac OSX, I'm using: sudo shutdown -r now But i want to restart without the reopen windows option, I've looked at the documentation here but with no luck, ...
0
votes
2answers
43 views

Batch: How to forward data to new CMD instance as arguments

I'm looking to call another CMD instance and pass data to it from the parent instance. I'm aware of the general route of using variables, but it would not be feasible in this case as endlocal and ...
2
votes
1answer
29 views

How to use START and pipe together?

Originally I had a command like this (on linux) daemon flag & app flag However on windows bc daemon never ends app never starts. So I wrote this instead start /B daemon flag & app flag ...
1
vote
1answer
24 views

Can I display specific part of Output from Command Prompt in Windows?

If I run netsh wlan show hostednetwork it will display, Hosted network settings, Hosted network status these two parts. But, if I want to display just the "Hosted network status" ...
1
vote
1answer
24 views

CommandLineTools folder displayed in Finder but not in CLI OS 10.9.4

The finder browser shows CommandLineTools, xcode-select --print-path also shows the path, /Library/Developer/CommandLineTools/ but I cannot get to it using cd and ls doesn't show it inside of the ...
0
votes
1answer
24 views

adding the cwd / pwd / (.) to the path in powershell

So I have a program I'd like to run in Windows PowerShell. In cmd I just type in script.cmd and it'll run the script. In PowerShell I apparently have to do ./script.cmd. BASH behaves similarly by ...
1
vote
1answer
25 views

Open only directory in given directory

I am trying to write a simple batch file, that when run, will move and rename some files within a certain directory. I know I can navigate to a directory in command prompt with cd "path_to_directory" ...
2
votes
4answers
66 views

bash extract first number from filename

I'm trying to move files like this: ... DLG023-00-01-sprite.TextGrid.json DLG023-00-01.prosody.json DLG023-01-01-sprite.ogg DLG023-00-02-sprite.TextGrid.json DLG023-00-02.prosody.json ...
0
votes
0answers
13 views

Disk Usage Equivalent of Bandwidth Stats

Looking for in effect the equivalent of vnstat -w but for disk usage: rx | tx | total | avg. rate ...
0
votes
1answer
28 views

Password cmd switch for Telnet

I'm trying to created a batch file to automatically ping routers with telnet. My connection prompts me for password and I'm not being able to set it : start "C:\Windows\System32" telnet.exe [server] ...
2
votes
1answer
28 views

Continue typing in command line after executing an option

Noob question: (I don't know if this is the same for everything as it is for SASS), but after typing sass --watch sass:css it says Sass is watching for changes. Press Ctrl-C to stop., as expected, ...
0
votes
1answer
46 views

How do I run Asterisk as user other than root?

I compiled Asterisk 11 from source as user root on CentOS. Now I want Asterisk to run as user asterisk group asterisk. I have uncommented AST_USER="asterisk" AST_GROUP="asterisk" in ...