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
28 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
35 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
52 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 ...
2
votes
1answer
46 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
46 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
15 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
1answer
33 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
64 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
41 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
98 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 ...
4
votes
1answer
54 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
27 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 ...
1
vote
1answer
23 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
19 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
15 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
46 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
73 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
17 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
29 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
35 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
24 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
19 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
57 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
49 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
25 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
15 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
16 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
22 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
17 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
44 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
42 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
46 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: ...
1
vote
2answers
145 views

How to get the URL of Dropbox file from command line?

I would like to know if I can get the URL of a file to share in my Dropbox folder from command line. I would avoid to open the web browser every time.
1
vote
5answers
83 views

How can I rename/move a file by simply “editing” its path in a shell?

Consider the problem that you want to rename a file called some/path/File With A Long Name.txt into some/path/File with a very long name.txt. To me, this was always one of the few situations, where ...
2
votes
1answer
45 views

In bash 4.3.27 “su” ignores user variables when combining “-” with “-c command”?

Since forever we used to launch user scripts from a different user crontab like this: 00 12 * * 1 su - user2 -c "/home/user2/myscript.sh" By doing this, the script is launched after the interactive ...
2
votes
2answers
31 views

How to shrink the prompt of a long path using environment variables in OS X (extend '~')

I've seen this working with the gemset environment, I would like to reproduce it now that I need to work on a very indented directory path. Basically I had a $GEM_HOME environment variable pointing ...
1
vote
2answers
240 views

Convert YouTube DASH audio (youtube-dl) to m4a (AAC DL)

I am unable to listen to m4a DASH audio I download from YouTube via youtube-dl on Winamp. Is there an option in youtube-dl to remove the DASH audio part of m4a file and download/save it as an m4a (AAC ...
0
votes
0answers
58 views

Powershell Start-Process fails to start when -Credential argument is added

If I run this in powershell, Start-Process "c:\Python27\python.exe" -WorkingDirectory "c:\wd" -ArgumentList "-m SimpleHTTPServer" It can start the python process as expected However when I add ...
2
votes
1answer
25 views

How to show a caret-C in canceled command line in zsh, like bash does?

When I'm in the middle of entering a line to my shell of choice, and change my mind, I can quickly throw C-c and start afresh. Under bash it looks like this: user@machine:~$ rm everything^C ...
0
votes
1answer
65 views

Find highest possible screen resolution from command line

With Powershell, I can request the current screen resolution. this is not what I'm trying to do. I'm trying to find the maximum resolution I can set the screen to (slider all up). Is this even ...
0
votes
1answer
29 views

How to resume execution after pressing pause/break key in windows command line

Whilst compiling a rather huge python extension in cmd with the command pip install. I wanted to pause and look at some of the output, so I pressed the Pause / Break key on my keyboard. Pressing ...
0
votes
0answers
8 views

Tab complete setsid

I regularly use setsid to open a program as a separate process, however it doesn't use tab completion so I end up writing the full program name. Is it possible to add tab completion to setsid? Has to ...
0
votes
0answers
45 views

Running application using cmd.exe while inside the console in Windows

I have an .exe application. When I run it from the console in Windows 8.1 by executing a command C:/Path/To/My/App/MyApp.exe it starts and works just fine. But I need to run it through the cmd.exe ...
0
votes
0answers
40 views

OpenWRT swconfig; how issue command from loaded module?

I have insmod swconfig.ko and in this link: swconfig It is explained how to use >the< swconfig command as, for example: swconfig list VLAN 1: info: VLAN 1: Ports: '12345t', members=003e, ...
0
votes
1answer
40 views

Can grep show context, but not a full line?

I have a file with several very long lines. I want to grep for a string which may occur several times in the file, including possibly more than once on the one line. $ cat 2014-11-03.json | grep 218 ...
-1
votes
2answers
45 views

How to lookup a public IP address and write only the IP address to a text file?

I have looked and found the following line of code which works fine but when run in a batch file nothing happens. for /f "skip=4 usebackq tokens=2" %a in (`nslookup microsoft.com 8.8.8.8`) do echo %a ...
2
votes
1answer
70 views

Reverse bytes of a file

Is there a program or CMD command with which I can simply reverse or flip all the bytes of a file? For example if I have a text file (as a simple example) that says "Hello, world!", the ...
0
votes
0answers
14 views

No commands work in Command Prompt (Windows 7) [duplicate]

Any command I type into command prompt say (blank) is not recognized as an internal or external command: ex- 'help' is not recognized as an internal or external command, operable program, or batch ...
0
votes
1answer
38 views

Spell check in the Bash CLI

Is there any way to do a spell check on the Bash CLI? I tried doing Ctrl-X Ctrl-E to edit the command in VIM but for some reason I could not set set sp in that VIM session. I'm using Kubuntu 14.04.