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
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
95 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
72 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
18 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
48 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
14 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
16 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
143 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
82 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
30 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
223 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
28 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
36 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
37 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.
0
votes
2answers
49 views

How to view serial com ports but not through device manager

How would i go about viewing a list of COM ports in use without the use of device manager? I don't want to install any software either. Is there a possible way to do this through the command line?
0
votes
1answer
12 views

pv: Change Prefix on the Fly

To me pv is really handy some times. However, I was wondering if it was possible to change the prefix on the fly. I mean usually I have something like in.sh | pv -btrcN "Watch that work!!1!" | ...
0
votes
2answers
35 views

How to mass prepend text from filename into multiple existing files

I have files with the following name GB_20141001 JPN_20141001 GB_20141002 TH_20141003 I want the date at the end of file name to prepended to its content. The content of each file may look like ...
0
votes
0answers
52 views

Encoded mp4 video won't play in Firefox v33

When this video is encoded with the following ffmpeg command, it cannot be played in Firefox v33 (a blank screen appears). But when I play it in the native VLC player, it works. So here the long ...
0
votes
1answer
44 views

Delete an ordinary shortcut on my desktop using command prompt

I am just learning command prompt. I want to delete a shortcut on my desktop using command prompt but it says the file could not be found. The path and other things are OK. The shortcut is orbit ...
0
votes
0answers
29 views

powercfg gives invalid parameter error

I am trying to run powercfg according to these site: http://ss64.com/nt/powercfg.html To be exact I want to run this command via .batch file Set _Custom_Power=B1234567-SS64-SS64-SS64-F00000111AAA ...
0
votes
0answers
33 views

Windows path and semicolon

In Windows 8.1 I have an environment variable LATEX equal to C:\Program Files\MiKTeX 2.9\miktex\bin\x64 and the path variable set to %JAVA_HOME%\bin;%ANT_HOME%\bin;%LATEX% The problem is ...