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
vote
1answer
6 views

Start zsh with a prompt specified on the command line

Is it possible to start an interactive zsh session with a specific prompt without modifying a configuration file? I tried things like that: zsh -c 'autoload -U prompt; prompt adam1; zsh -i' But ...
2
votes
0answers
18 views

Does pbpaste empty the clipboard under some circumstances?

The manual for pbcopy and pbpaste reads as follows: pbpaste removes the data from the pasteboard and writes it to the standard output. The wording read odd as remove for me carries the ...
0
votes
1answer
9 views

When I delete a file/folder on Windows in a Samba share - what unix commands are being issued?

Let's say I have a Samba share and a Windows client deletes a folder in it. Is it the same internally as rm -rf foldername? Is there any cleanup needed? Also is there a difference for the Samba share ...
0
votes
0answers
10 views

How to watch text file changes over time?

I am looking for a tool that allows me to watch text file changes in the spirit of tail -f or the less [F] feature but not only for data appended to the file but for overall changes. My dream tool ...
0
votes
1answer
24 views

How to start a program and close it right after it's launched with BAT/CMD file?

There are two program A and B. What I want to do is: 1,Launch program A; 2,Close program A; 3,Launch program B; 4,Close program B; How can I write the bat file? My previous work; A.exe TSKILL A ...
0
votes
1answer
13 views

Echo/Pipe command output to Serial line

I have a serial device running on 115200 baud at /dev/ttyUSB0. I need to Pipe the output of a command to it. I Need somthing like: command-that-gives-stdout | command-that-puts-stdin-to-serial --baud ...
0
votes
0answers
12 views

reg export excluding specific by name

i must export a set of registry keys only if the keyname not include a specific word ex: reg export "HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports" if the name of ...
0
votes
1answer
19 views

GIT Bash commands produce no output in ConEmu

I've tried this with ConEmuPack.141123 and ConEmuPack.140602: As you can see, error messages print fine (like dir: command not found), but output from bash commands don't show up. Does anyone know ...
0
votes
2answers
31 views

Identify user profile loaded into HKCU from remote command prompt

I need to modify a setting in the currently logged-on user's HKCU branch of the Registry on a remote Windows 7 Pro PC. I cannot connect using the Remote Registry functionality in regedit.exe but I do ...
0
votes
1answer
36 views

Copying files in Windows 7 command line - The System cannot find the file specified

I know this is a stupid question I've made batch files for years and haven't had this much trouble... I'm trying to make a batch file to copy files into a folder and for the life of me I can't get it ...
0
votes
0answers
11 views

LZA Compressor Directory

I am trying to use LZA to compress my directories (No sub folders) Whenever I use it however it automatically creates the archive within an additional folder! Example: I am using a folder called ...
0
votes
1answer
35 views

Ubuntu nested bash shell

Thanks for any help. I'm helping configure a machine to log keystrokes using /usr/bin/script function. For each session, a log file is created that includes the POSIX time. $PS1 is changed to reflect ...
0
votes
0answers
30 views

Windows 7 folder opens automatically in command prompt

My girlfriend has a problem with her PC and I wasn't able to solve it. She's got a Laptop running Windows 7. If you open a folder it doesn't open in the Explorer (as it should), but it opens the ...
1
vote
1answer
30 views

Windows 8.1 command like Unix/Linux WHICH command

Below is an example of the results of the WHERE command used in Win 8.1 CMD (DJANGO) C:\Python34>where python C:\Python34\python.exe C:\Python34\DJANGO\Scripts\python.EXE What I am looking for is ...
1
vote
1answer
89 views

How can I run a windows batch internal command remotely?

I have two Windows computers A and B, and I want to remotely run a command on computer B. I use the tool psexec, so on computer A I can run: psexec.exe \\10.0.0.2 -u user -p pasword ...
0
votes
0answers
25 views

When are quotes added to a file or folder path when dragged into a cli?

Like a CLI noob does, I often change directories by using the dragging the target folder into a command prompt to get its path. What's annoying, however, is that the path isn't wrapped in quotes, ...
0
votes
0answers
16 views

VLC command to output stream to /dev/video1

Looking to latch onto an http stream (specifically, a GoPro wireless stream, which I can view fine in VLC) and instantiate a fake video device, e.g. /dev/video1/ Is this possible with VLC alone? I've ...
0
votes
1answer
13 views

Report All Files Hierarchically on a Zip-of-Zip Files from the Command-Line Interface

I have a WinZip parent file that contains hundreds of WinZip child files on a Windows 7 64-bit computer. Each child WinZip file has many "grandchild" files within it. I need to create a text file ...
0
votes
1answer
16 views

In zshell how do I make the command line prompt visible

My zshell command line prompt has become almost invisible, I don't know how or why, but now it's white on a very pale grey background. Can someone please give me a command, preferably a short one, ...
0
votes
1answer
35 views

In Windows SUA(System for Unix Applications), I cannot get KSH to run commands. Even ls fails

I have managed to install Windows SUA(Subsystem for Unix Applications), in Windows 7 Ultimate. I can run the commands in c:\windows\sua\common straight from cmd.exe but I want to try running commands ...
0
votes
2answers
33 views

How to expand the %TMP% to the Full Path Name

I need to replace %TMP% with the Full Path (without the ~ shorthand). How do I do this ? If I ECHO %TMP%, I get C:\DOCUME~1\{username}\LOCALS~1\Temp. I'd like the full path properly expanded.
-1
votes
4answers
71 views

ls syntax to show filename and directory

I wish to use the ls command so the result looks like this: folder1/file1.doc folder1/file2.doc folder1/file44.doc folder3/file1.doc folder66/file4.doc folder999/file.doc In other words I want to ...
0
votes
0answers
9 views

Attempting to add an existing group to a group remotely using psexec [duplicate]

Basically want to remotely configure the Administrator groups for one of our devices remotely through the command prompt. I figured psexec would be the tool for the job, however the only thing I can ...
3
votes
1answer
51 views

Where are the EXEs for Subsystem For Unix Applications so I can use it?

I am on Windows 7 Ultimate. I have done done start..ctrl panel..programs..turn windows features on and off...and ticked Subsystem For Unix Applications When I click the start menu, I see it isn't ...
1
vote
1answer
28 views

Want to create custom command and be able to pass arguments to it

So I have following command which I using pretty often on server ps aux | grep someword | awk '{print $2}' | xargs kill -9 What I want is make alias to this command and be able to pass arguments to ...
13
votes
5answers
2k views

PuTTY or OTHER - Keep executing command even after exiting PuTTY

I have a couple of commands that I need to run. These commands needs to continually run even after I exit my interface. When I have access to the Linux GUI, I execute something like: cd ...
0
votes
1answer
23 views

Batch Move using wildcard in filename is getting files that do not match parameters:

I have a number of files with a 3 digit prefix. I'm attempting to move files based on the prefix using a wildcard. I expect that move 100*.sql subdir would only move files with the .sql extension ...
1
vote
0answers
28 views

7zip on command line: can I use both include and exclude switches?

Here's my directory structure (in Windows 8.1): parentdir\ child1\ child2\ grandchild1\ grandchild2\ grandchild3\ ... child3\ child4\ ... Using ...
1
vote
0answers
30 views

Batch File to upload via FTP - 550 Permission Denied

I am trying to create a batch file that will upload a single file by FTP every time it is ran. Everything looks good in windows cmd. I get past the authentication of user name and password and after ...
-1
votes
0answers
14 views

Project specific command line command management [on hold]

Are there any command line tools that help streamline commonly repeated project specific commands? I have always built a .bashrc with aliases such as cdmyproject cdthatproject. I'm suddenly curious ...
2
votes
1answer
34 views

How to know which keyboard layout is currently active using cmd in Windows 7 32bit?

Suppose I can switch between 3 keyboard layouts, English, German, and Spanish from the language bar of Windows 7 32bit. What command can be run from cmd to return the value of the current layout in ...
0
votes
0answers
45 views

Can't run newly created Python file

I have followed a lecture on installing Python and so far I have been unable to resolve this recurring issue. When I mirror the instructional video I get one of two errors. The first error This ...
0
votes
2answers
14 views

tar command does not list content of tar package with -t option

I am trying to list the content of the tar archive with the following command tar -t "filename".tar But the shell works on this one forever without any output message. I did a research on this ...
0
votes
0answers
26 views

Launch emacs with ediff-files (of ediff-directories) from command line

I would like to launch emacs to ediff either files or directories. For example, I'd like something like: emacs -f ediff-files file1 file2 But when I do this, it doesn't take file1 and file2 as the ...
2
votes
2answers
61 views

Set the “open command window here” title as the directory it was invoked from

I know how to set the title as current directory in a regular batch. I want to do this for the cmd window that opens when you do a "open command window here" from a windows folder (automatically). I ...
0
votes
0answers
36 views

Convert Excel To Text Using Office and Command line

Is there any command line option to pass to Office's Excel so it can convert .xlsx files into .txt files without showing Excel's GUI?
1
vote
0answers
70 views

Vim silent launch of ConEmu (into Git Bash) - Windows 7 Command Prompt seizes

From a Windows 7 Command Prompt: ConEmu.exe /cmd "C:\Program Files\Git\bin\sh.exe" --login -i && exit opens ConEmu (or a new tab therein) logged into Git Bash for the current directory, and ...
3
votes
1answer
45 views

linux tree command limit number of files displayed in each directory

I want to use tree (or similar) to see the directory structure of a given directory as well as whether each subdirectory has files in it. So, how could I use tree but limit the maximum number of ...
2
votes
1answer
23 views

Unintentional vi mode in iTerm on Mac?

I occasionally find that while working in iTerm the default Readline key bindings are replaced with the vi keybindings. For example, I will try to go to the beginning of the line with ctrl-a, and ...
0
votes
1answer
42 views

Is it possible to make a relative symbolic link that is relative to the link itself(Windows)

Is it possible to make a relative symbolic link that is relative to the link itself. Only the Path to the link itself is known. Anything else can change D:\Photos\Subject\realfile_XX.jpg ...
1
vote
1answer
19 views

Search for string and read the next line

I need to write a shell program that installs some packages. The program will run on Linux (obviously some commands will not work, for example, on Arch-based distros). So, I've got this file called ...
0
votes
0answers
15 views

Can I use ProxyCommand to run arbitrary commands on a target server via a jumpbox/middle server?

At work, we have a number of servers that we can only SSH into from our jumpbox server. Every now and then I need to execute a command on these servers. For example, if I want to execute df -H on ...
0
votes
0answers
14 views

Send an email whena service is stoppped/Started [duplicate]

I have a requirement where I need to stop a service on a schedule. So I created a simple bat file which starts and stops the service using Net STOP /Start command, which I schedule using the windows ...
0
votes
3answers
42 views

Cannot change directory with cd in DOS using Win7

I would like to change my Present Working Directory in DOS (I am running Win7 professionnal). When I perform a cd D:\, nothing happens: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 ...
1
vote
1answer
41 views

How can I create symbolic links in Windows 8.1 without an admin command prompt?

I am hoping that someone can correct me where I'm going wrong when trying to create a symbolic link in Windows 8.1 without having to run cmd.exe as administrator. Whenever I try to create a symlink ...
0
votes
0answers
15 views

RAR - add folder according to wildcards?

I'm using commands line's RAR 5.1 (exe) : I have this c:\r\ folder which has : C:\r\ │ MsgProtos.java │ k.txt │ ├───kjhasd │ CSharpOptions.cs │ DescriptorProtoFile.cs │ ...
0
votes
2answers
24 views

How to reset a HDD to one partition

I have a HDD which seems to have its partitions messed up. At this point, I want to just make the entire HDD one partition clean and ready to go. Is there a way I can do this with the Windows CD CMD? ...
0
votes
2answers
29 views

Bash - Fixing messy output

I'm not sure how/why this is happening. Basically I have a command that is supposed to find and clean out all files in the desktop that contain a certain pattern. I am doing the first part using: ...
0
votes
0answers
10 views

Adobe Acrobat - merge PDFs via command line [duplicate]

Is it possible to combine PDFs files into one via command-line in Adobe Acrobat? Is so, how? I have tried PDFtk and it works great but at work I am supposed to use Adobe Acrobat only. Thank you! ...
0
votes
0answers
19 views

Windows Script Host

My batch file runs on my PC, but when I run it on the server, it calls the Windows Script Host (WSH) which seems to hang the process. There are no settings for the WSH. when I kill the WSH my batch ...