Tagged Questions

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
11 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
0answers
17 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
72 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
22 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
11 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
12 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
15 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
31 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
28 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
57 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
45 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
27 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
20 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
votes
0answers
17 views

View Application Error Logs on Windows 7 [on hold]

I am using a program that calls a python library and errors out. However the python library seems to be working fine by itself. Is there any way to see more detailed logs in a powershell log or some ...
1
vote
0answers
24 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
24 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
13 views

Project specific command line command management

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
30 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
43 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
13 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
20 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
59 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
32 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
56 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
42 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
20 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
40 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
17 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
14 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
40 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
34 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
23 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
26 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
18 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 ...
1
vote
0answers
13 views

Sort lines to form a unique words dictionary listing

Many a times we build dictionaries in online forums for typical words used in a forum, the user responds in following format in a phpbb forum term: defination hence the job is to collect all these ...
0
votes
1answer
51 views

How to properly use this code?

I'm trying to get this code to work. I want this batch file to disable the shutdown button for the current user. How would this work? Like what would I substitute in the SID:D section? Here is the ...
0
votes
1answer
34 views

How can you access a remote disk/volume from the terminal in OSX?

In Dos, you can access a network path easily by doing \\<server\path very similar to c:\path. Is there a similar way to do this in OSX Mavericks and above?
0
votes
0answers
16 views

adobe acrobat pro xi save as PDFs optimized using command line?

I have a directory with about 4,570 files that I would like to reduce the size of I have adobe acrobat pro and the save as pdf optimized seems like its doing a good job but obviously I can't do them ...
0
votes
0answers
13 views

Windows - use processID from pipe output as find parameter along with piped input from netstat ?

I can get the process ID with this command: ..\system32> tasklist | find "MyProcess.ex" | cut -d " " -f6 ..\system32> 9672 I can run find on netstat -nao if I know the processId to find ports ...
0
votes
1answer
15 views

Recover data from corrupted dmg

I had a simular problem as in the asked question (see link) Tools/tips to recover data from a corrupt DMG disk image? Really want to try nworkers solution to this problem but before I do something ...
0
votes
0answers
18 views

use wget for the most updated file on http server

I need to download the most updated files with the name suite. I am using windows server to run the command lines. I wrote the following command but not sure of how to get the most updated one wget ...
0
votes
0answers
10 views

How to switch user rights within Batch file (de-elevation after elevation and back)?

I have a batch file that I need to run as Administrator, but within this batch file I need to run some commands as non-administrator, followed again by admin-commands. admin commands user commands ...
0
votes
1answer
36 views

How to configure Conemu to highlight icon in taskbar during long time operation that is not providing time to finish?

I'm developer and using console for builds. build operation in console is taking much time so I'm minimizing console and doing some other tasks. But time to time i have to look into console to see if ...
1
vote
1answer
30 views

How to make notify-send work on /etc/init.d/a_script

when i write notify-send 'test' in /etc/init.d/a_script, i can't see any notify. see following code: #!/bin/bash ### BEGIN INIT INFO # Provides: someone # Required-Start: $remote_fs $syslog # ...
-1
votes
1answer
36 views

How to accept user input command in batch file?

I would like to write a batch file in which the user input would be run as a command, essentially functioning like command prompt. Example: batch file is run: user input: echo hello program output: ...