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)

3
votes
1answer
44 views

In Mac OS 10.10 Whenever I open new Terminal window some command automatically gets executed

In Mac OS 10.10 Whenever I open new Terminal window some command automatically gets executed. I don't know how it came to my Mac. Probably after installing some command line utility not sure which. ...
0
votes
2answers
53 views

Windows 8.1 Command Prompt can't show fonts listed in registry editor

I have a Windows 8.1 and I want to change the fonts of command prompt. I open the properties window, shown below Raster Fonts However, I can't find what I want. I open the registry editor to ...
0
votes
1answer
41 views

SSH - Ignoring $PS1 in .bashrc

Relevant file contents: http://pastebin.com/6VtWcaWG Everything else including the aliases and the PATH variable are fine, but when I log in as root on my remote machine, the correct $PS1 (set in the ...
0
votes
1answer
85 views

Write specific text a .txt file with Batch script

I have a script that install several programs. I would like to write a series of batch scripts to log these installs. I was hoping to find a command that would allow me to select this text file ...
0
votes
1answer
77 views

Run batch as ADMIN & use robocopy

I need to copy from %USERPROFILE%\Desktop to B:\Desktop where B is a mapped network drive. The code inside BAT file is: powercfg -change -standby-timeout-ac 0 robocopy "C:\USER\DESKTOP\" "B:\DESKTOP" ...
0
votes
2answers
39 views

DOS batch variable expansion to give Last Access Time

I'm trying to use a FOR /R loop to iterate over some particularly long-named folders (greater than 260 characters in length, hence the need to use \?\ ) I need out of the loop, the fully qualified ...
0
votes
1answer
26 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 ...
1
vote
1answer
25 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
150 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
50 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
23 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
19 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
13 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
43 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
24 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
25 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> ... ...
23
votes
2answers
2k 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
28 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
37 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
45 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
38 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 ...
2
votes
1answer
37 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} ...
1
vote
1answer
31 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
109 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
61 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 ...
2
votes
1answer
80 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
44 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
47 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
66 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. ...
0
votes
4answers
92 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
41 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
250 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
24 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
49 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
69 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
88 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
1answer
17 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
31 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
97 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
24 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
581 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
54 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
30 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
1answer
58 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
44 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
73 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
71 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
69 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
65 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
24 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 ...