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)

-2
votes
1answer
51 views

Console vs Command Prompt [on hold]

In Windows, on the Start menu under the Accessories folder, there is a shortcut named "command prompt". This starts up a window on the screen where I can type commands at a prompt, in 16 colours in a ...
1
vote
0answers
19 views

Win7 x64 rogue program pinpointing?

I've got a laptop that has what appears to be a command prompt pop up and vanish, whenever it connects to the net. I can repeat it, by turning off/on wifi, it flashes up and vanishes too fast to see, ...
0
votes
1answer
39 views

Launch program from commandline without .exe

I have added, in this case, the wireshark directory to my env var path and can type "wireshark.exe" from anywhere on my system to launch the program. I would liek to be able to type "wireshark" or ...
1
vote
1answer
50 views

Run commands on an Ubuntu guest in VirtualBox VM from Windows host

I am working on some coding, and I have an idea that should work but I have no clue how to make it work. I am using Wolfram Mathematica on my Windows host machine to run some code, but I have to ...
4
votes
2answers
115 views

windows command line dir command: to display only the file name, in 8.3 format?

I know that "dir /w" or "dir /b" shows only the file name. While "dir /x" or "dir /X" shows the 8.3 format, but together shows all other information like long format file names, dates and size. is it ...
1
vote
1answer
13 views

Speex to FLAC in windows command line

I've got a speex audio file (snd.spx), and I've found foobar2000 is the only software I can easily convert it to the more-widely-usable format FLAC (snd.flac) so I can edit it before encoding again to ...
0
votes
0answers
8 views

Access remote applications with console

I am accessing my remote desktop (OSX) by ssh (my local computer is also OSX). Everything is working fine but suppose now I want to access my remote current gmail sessionsfrom the console. Is there a ...
0
votes
1answer
17 views

How do I check for command line parameters in sqlplus?

I am trying to write a sql file which will run under sqlplus. My goal is to create a mechanism by which sqlplus will prompt for password if no parameters are passed, and if &1 is present, continue ...
3
votes
1answer
23 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
24 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
20 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
24 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
30 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
28 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
22 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
14 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
53 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
33 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
19 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
14 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
8 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
32 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
21 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> ... ...
23
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
21 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
19 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
22 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
31 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
11 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
56 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
35 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
30 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
32 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
38 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
41 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
0answers
56 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
4answers
71 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
36 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
180 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
17 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
37 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
46 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
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
21 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
38 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
20 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
77 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, ...