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

Runas using an exe that has a further extension

I'm trying to use runas in a way that launches an exe that has to load a file for example: runas /user:domain\admin /savecred "C:\program files\program directory\program.exe file.sse" If I run ...
0
votes
1answer
12 views

Go to directory of symlink file target

How can I create a command (or alias) to go to the directory which contains the target file of a symlink. For example, if I have a symlink symFile@ -> /Users/zhermes/some/dir/someFile I'd like ...
1
vote
1answer
22 views

Batch File for Download + Unzip (.7z) + Delete + Rename

I would like to create a .bat file in order to download and make following operations on 2 files (FILE1-Date.7z & FILE2-Date.7z) whose names are updated with "Date" information everyday. The batch ...
1
vote
2answers
28 views

Renaming multiple files to start with a capital letter

i'm trying to update my website to use CodeIgniter 3 but Starting with CodeIgniter 3.0, all class filenames (libraries, drivers, controllers and models) must be named in a Ucfirst-like manner or in ...
0
votes
0answers
17 views

cp file in /dev/sdc, now drive isn't readable

So I was trying to instal Arch on my Laptop, and I wanted to copy boot.efi into my usb. cp boot.efi /dev/sdc cp boot.efi /dev/sdc1 cp boot.efi /dev/sdc2 and now its not being read. How can I fix my ...
0
votes
0answers
11 views

Odd 7z Extracting Behavior

In short, I would like to use command-line 7z to extract an archive and recreate the directory structure of the archive. I know the function letter for this is "x" yet it does not seem to work for ...
0
votes
1answer
6 views

In a single terminal window capture the command to start a.out 3 times each running as background job

On linux terminal window is there a way i can start a program like ./a.out 3 times each running as background jobs. I was told that IO redirection is helpful.
0
votes
1answer
26 views

Can Windows XP use net send command to send a message to a later version of windows?

The net send command can only be used in Windows XP or earliar versions. But can a Windows XP computer send a message to a later version of windows using the net send command?
0
votes
0answers
20 views

copying files through command line in windows xp

In my lab there are 70 windows systems is there . Each user has 1 system, in al systems C nd D are deniend .Eevry users should store their files in only Z drive. Now my question is I want to copy ...
0
votes
1answer
10 views

Replace with sed a tag value under a specific section when matching a line

I would like to change a line when another line matchs under a section of a file using the sed command (or awk). Here is an exemple of the file : Extract of MyFic.txt : <PlayList> ... ...
20
votes
2answers
1k views

Is there a one line command to make chmod interactive?

I am looking for something like: ls | ask_yes_no_for_each_file | chmod +x the_files_approved Or similar syntax. Also could work on other commands that you want individual confirmation for.
0
votes
0answers
19 views

Windows shell: title command argument too long. How can I enlarge?

I need to change the title of the shell (classic cmd) window in my Windows 7 SP1, but it seems to have a length limitation for some too long strings: C:\Users\Luis>title ...
0
votes
0answers
18 views

Extract and replace images form a PDF file

I'm interested in finding a way (from command line only, in Linux) to extract images from PDF files, apply some effects and then put the new images back inside the PDF file. While I found a way to ...
0
votes
1answer
16 views

Layouting a disk image and copying files into it

Before asking here, I tried to search on SU/SE and Google without success. This is the closest thing I got. Basically, I'm trying to do the following: - create a disk image of about 128MB; - create ...
0
votes
0answers
17 views

Massive XML Import in Excel in batch mode

I have created an XML map in Excel 2010 and I can import hundreds of XML files at once in an Excel sheet. However I would like to automate this, i.e. import new XML files that reside in a directory ...
1
vote
1answer
30 views

How to grant execute access to a specific set of command to one group, and another set to another group

Say there is a set of shell commands {ls, cat, kill} I want to enable users in group A to be able to execute the commands {ls, cat} And users in group B to be able to execute the commands {cat, kill} ...
0
votes
0answers
8 views

OSX 10.10 select perl 5.16 instead of 5.18

I find that my OSX 10.10 comes with perl 5.16 and 5.18. By default, when I run perl, I am using perl 5.18. Is there way for me to run perl 5.16 when I run perl command? admins-Mac-mini:~ ...
0
votes
1answer
47 views

Batch file to copy files&folders structure one by one, verify the result and save the report to txt

I have over 1 million (small size) files(<500kB jpg) in a structure like this: H:\main_folder\folder\sub_folder\sub_sub_folder\sub_sub_sub_folder Every sub_sub_sub_folder have 10-15 files, ...
0
votes
2answers
26 views

Command line registry edit

I seem to have a problem with a reg command that I'm trying to add by cmd. Any ideas how I can fix this syntax error, since the command dosent seem wrong... reg add ...
1
vote
1answer
25 views

Echo in file returns No such file or directory

I'm wondering why my simple script doesn't work: #!/usr/bin/env bash user_variable='$1' echo "export USER_VAR=$user_variable" > ~$user_variable/.filename When I launch the script I have this ...
0
votes
1answer
25 views

Batch to retrieve TFS version erroring in FOR /F where TFS attempts to PIPE to findstr

I have this partial batch, but it gives me an error (On 64 bit installations) SETLOCAL EnableDelayedExpansion REM Figure out what ProgramFiles Root we run the command SET ...
0
votes
3answers
35 views

using awk on only files which START with 'xyz'

I have 3 files in a directory: xyz1.txt, xyz2.txt, rst_xyz.txt and I want to work with ONLY the first two (those which start with xyz). The command ls | awk '/xyz/{print $1}' will return all three of ...
1
vote
1answer
35 views

Windows 7 CLI not recognizing commands without specifying extension

I've apparently gone and mucked up my system in a strange way. Windows 7's cmd prompt is no longer recognizing any executable or batch files unless I explicitly type their extension. ...
-1
votes
0answers
24 views

Create a batch file to delete what's not on a certain list [closed]

How do I make a batch file to delete all file not on a certain list?
0
votes
0answers
55 views

Can we use windows command prompt for programming?

I'm a great fan of Microsoft Windows.For programming i'm using Ubuntu.But i don't want to use Ubuntu for programming or for anything else.What i'm asking is can we use the Windows Command Prompt with ...
0
votes
0answers
25 views

How to execute a command stored in a variable or just execute the output of a command? [closed]

Feel free to guide me to a totally different solution, in case there's a more efficient way to do this and I'm just going about it entirely wrong. I'm using Linux based command line on iOS, trying to ...
0
votes
4answers
66 views

How do I DELETE a comma and a space from a numeric string using a bash script

Folks, I have asked this question 5 times on here and have received 5 separate bits of code from super users that have all *failed. Problem: I have stock information being brought back into a txt ...
0
votes
1answer
32 views

How to permanently change the appearance of a certain cmd window even after changing its path?

How can I change the looks of a specific program (a program running in cmd), even after I relocate it? I have tried the properties section (which will change the appearance of only the current cmd); ...
4
votes
3answers
174 views

Execute command in-between a bash pipe row …?

I want to run a series of piped commands which do a lot of audioprocessing. It looks as follows in pseudocode: command1 | command2 | command3 Of command2 and command3, both take the output of the ...
0
votes
1answer
16 views

Launching process from CLI vs from Task Manager

So, Windows Explorer has crashed on me yet again, and now my task bar is gone. But I know that all I have to do is to run Explorer again, and the task bar will reappear. If I launch Explorer via ...
1
vote
2answers
48 views

Any rule for '-h' and '--help'

Some command and programs use -h to show help, some use --help and a few recognize both. It make me crazy. Is there any rule to choose the correct one?
0
votes
1answer
35 views

Why identical font has different size in PuTTY and cmd.exe?

I use KiTTY(PuTTY) and PowerShell/cmd.exe in ConEmu and I want window to contain equal string count both with KiTTY and with cmd.exe. But I was confronted with difficulty: same font has different ...
1
vote
2answers
42 views

is it possible to reverse xxd to get original file from binary file

i have been using xxd to create a hexa representation of a file(any file like .jpg, .docx, .zip etc), like this,.. $ xxd -p original_file.zip > hexa_format.txt and to reverse $ xxd -r -p ...
0
votes
0answers
17 views

Is There Any Command Line Tools For Editing The Image-Based Subtitles? [closed]

I'm looking for a good command line editing tool, for some types of image based subtitles.. Like:- BDN-XML (XML/PNGs) VobSub (Sub/IDX) DVD-Subs (Sup/IFO) There is so many applications for ...
0
votes
1answer
16 views

Moving dpkg to foreground during confirmation screen glitch

I was doing a routine apt-get update && apt-get upgrade on my server. The dpkg program displayed a dialog box about a package that had updated its default ini file. I wanted the new file, but ...
1
vote
1answer
19 views

Batch file executing differently than command prompt

I'm trying to make a jar file association patch for a friend of mine, and when I test the batch file on my computer and try to launch a jar file, I get an error saying Unable to access jar file. But ...
0
votes
1answer
34 views

cmd error “The system cannot find the path specified.”

I am getting this error when I am doing a cd into a directory I stored in environment variables. But the thing is, when I cd into the same directory using the same ev using vim, I can successfully cd ...
0
votes
0answers
18 views

If screen's C-a A command does not work, what internal state must be wrong?

In the Linux command screen, you can type C-a A to change the name of a window. Right now I am running a screen session with six windows. The first four have custom names - great. The last two I want ...
2
votes
1answer
58 views

Could not start PSEXESVC service on [MachineName]: Access is denied

I'm trying to use PsExec to start a process on a remote machine. I posted this question on SO, but I realized it's probably better suited here. I also have spent a few hours trying to figure this out, ...
1
vote
1answer
26 views

Using cURL command-line tool on Mac, What can I do to this script to ask it to fetch stock data which will replace commas with NO SPACES

Example: Google Outstanding Shares are 670,000,000 and this value is collected in a txt file from Yahoo Finance API via the below script. The issue is; that numbers WITH commas or spaces are a bloody ...
-1
votes
1answer
25 views

windows 8.1 - simple setup that do not require admin right but prompting for User account control

I have windows 8.1 with standard user account when I run simple setup that don't require admin right but prompting for user account control which runs perfectly in widows 7 standard user. Even ...
0
votes
0answers
21 views

Commandline chat for Gmail chat in MAC OSX

Is there any tool for having gmail chat/Hangouts in my mac osx terminal? Googled a lot but couldnt find a reliable one that works for mac osx; most of them are for linux os.
1
vote
1answer
35 views

How to get the count of a string from a text file . The output is wrong

I have written a code for finding the IP address count from a text file. if similar IP dress exist in file toto.txt : My code to do this is: use strict; use warnings; my %count; my $str ; #my $file ...
0
votes
1answer
34 views

Linux bash command to list hidden files first, then other files sorted by extension

This page: How can I make "ls" show dotfiles first? lets me list hidden files first, but I also wish to sort non-hidden files by "extension" e.g. all filenames ending with ".png" come after ...
0
votes
1answer
34 views

What is the difference between running @powershell and powershell (any command with @ at the front)?

Just installed Chocolatey and in their installation instructions they have @powershell -NoProfile -ExecutionPolicy unrestricted...... I tried to run @cls in my console and it worked too. It's ...
2
votes
2answers
42 views

Set not setting in CMD batch script

I'm trying to write a script that will find all directory junctions on a disk and then recreate them in another location. First of all, I have to find all the junctions and edit the output to be more ...
0
votes
2answers
40 views

Execute command on linux virtual machine (or server) from windows commandline

I usually use software on a windows machine, but now need to call one commandline executable that I only have a Linux version of. I installed a linux virtual machine, but I would like to be able to ...
0
votes
1answer
19 views

Uncompress bz2 file from command line on Windows

Is there any tool in the Windows command line that allows me to do this? Otherwise, is there any light and portable application that will allow me to? Related question, can I rename .bz2 extension to ...
0
votes
1answer
47 views

How to stop a running .bat file which runs after every 10 minutes

I have written a .bat file which runs every 10 minute. The problem is now when i want to stop it it never stops. (This .bat file further calls a perl file in the code). What can be done to kill it ? ...
0
votes
0answers
34 views

How to find which of my ports are blocked using CMD?

Is there any way to find which of my ports are blocked using commands in command prompt? I tried online port checkers but they are not accurate because all of them show that my port 25 is blocked and ...