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)

43
votes
7answers
14k views

Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux

When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors: tar: Ignoring unknown extended header keyword `SCHILY.ino' tar: Ignoring unknown extended ...
0
votes
2answers
36 views

In Linux, how can I run a process that I can come back to later to give a command after detaching

I'm currently developing a server hosting app (mainly for myself / learning purposes) and everything works great and what not, I don't know how many of you are familiar with Counter-Strike in general, ...
4
votes
2answers
821 views

How to create a network bridge using command line in Windows? [closed]

I want create a network bridge using command line, I have tried "netsh bridge install" but the output says unsupported. After a google, I found this post at here, and also here. They all mentioned the ...
0
votes
3answers
46 views

How to access folder path from first input parameter and how to call IF Loop in batch file?

@Echo OFF SET FilePath=%1 SET HeaderFilePath=%2 SET RetrunCode="0" Call :sub %FilePath% exit /b :sub SET FileName=%~n1 SET FilePath=%1 SET "FileType=.zip" CALL SET ...
1
vote
1answer
7k views

Use ffmpeg copy codec to combine *.ts files into a single mp4

I've got a bunch of ts segments described by a single index.m3u8 file: index.m3u8 segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts segment4_0_av.ts segment5_0_av.ts I know they ...
5
votes
4answers
4k views

SQL like group by and sum for text files in command line?

I have huge text files with two fields, the first is a string the second is an integer. The files are sorted by the first field. What I'd like to get in the output is one line per unique string and ...
71
votes
13answers
164k views

Is it possible to download using the Windows command line?

Without using any non-standard (Windows included) utilities, is it possible to download using the Windows command line? The preferred version is Windows XP, but it's also interesting to know for ...
11
votes
7answers
6k views

“SSH server” in Windows?

I have some command-line commands to execute on a Windows machine. The programs I need to run are only available on Windows. Is there a way to easily to do something like I would do with SSH? ...
2
votes
2answers
8k views

How to open Internet Explorer for the desktop from command line in Windows 8?

There are two different Internet Explorer versions in Windows 8. I would like to open Internet Explorer for the desktop from command line. We can run it via Win+R → iexplore, but I would like to run ...
0
votes
0answers
22 views

Nohup doesn't work when executing script from Jenkins

I have bash script which executes following nohup ws --port 8080 & when executing that script directly on remote server and closing connection - process still exists. But when i am using ...
0
votes
2answers
3k views

What command lists the files created in a specific month and is readable for the owner?

I am supposed to find the command that lists all the files created in September and are readable for the owner. Also explain how the command works. I know I'm supposed to use ls -l and I will ...
0
votes
1answer
2k views

tracert command is not working but able to access the same site through browsers

tracert [site name] is not working in cmd prompt. But the same site has been working in all of my browsers . Please find below output of command. I need to use this command in my batch file but there ...
0
votes
2answers
43 views

Batch: How to forward data to new CMD instance as arguments

I'm looking to call another CMD instance and pass data to it from the parent instance. I'm aware of the general route of using variables, but it would not be feasible in this case as endlocal and ...
31
votes
13answers
23k views

Is there a way to display a countdown or stopwatch timer in a terminal?

How can I display a real-time countdown timer on the Linux terminal? Is there an existing app or, even better, a one liner to do this?
1
vote
1answer
4k views

Unable to delete registry key in HKLM\Microsoft\Windows\CurrentVersion\Run via commandline

So the problem is im trying to delete some reqistry keys (startup items) via commandline and while i can delete from HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run just fine i cannot delete ...
1
vote
1answer
52 views

Windows: Command-line method to know the name of my audio recording device(s)?

I don't know if this could be a rather programming question, so I have opened a corresponding (and a bit different) question at StackOverflow. I will post the answer here if I obtain it, by the ...
-2
votes
1answer
23 views

Command line switches for Netop Remote Control version 9.0 (NGstw32.exe)

Would anyone by any chance have the command line switches for Netop Remote Control version 9.0 (NGstw32.exe)? I've contacted Netop support but they no longer support this version, and I can't update ...
3
votes
3answers
2k views

Remotely check who is logged in by NETBIOS name

I manage a network and I am trying to figure out who is using a machine with a specific NETBIOS name because it appears to be mislabeled physically on the exterior of the box. I am wondering what, if ...
3
votes
3answers
3k views

Windows 7 and cd to symbolic links

So I have created a bunch of symbolic links to top of source code tree, data directories, etc How do I, from command line, cd to these links?
0
votes
1answer
61 views

Mac OSX restart from command line and close all windows

I want to use command line to restart my mac OSX, I'm using: sudo shutdown -r now But i want to restart without the reopen windows option, I've looked at the documentation here but with no luck, ...
3
votes
2answers
5k views

How do I enable my network connection using command prompt?

How do I enable my network connection using command prompt? I've tried: netsh interface set interface "Local Area Connection" ENABLE But received this error: An interface with this name is not ...
0
votes
1answer
23 views

adding the cwd / pwd / (.) to the path in powershell

So I have a program I'd like to run in Windows PowerShell. In cmd I just type in script.cmd and it'll run the script. In PowerShell I apparently have to do ./script.cmd. BASH behaves similarly by ...
10
votes
3answers
6k views

urxvt settings - reload without restarting terminal?

I have two urxvt color themes that I use, one for light background and one for dark, depending on how sunny the environment is. It's easy enough to switch them by modifying ~/.Xresources and running ...
2
votes
1answer
29 views

How to use START and pipe together?

Originally I had a command like this (on linux) daemon flag & app flag However on windows bc daemon never ends app never starts. So I wrote this instead start /B daemon flag & app flag ...
1
vote
1answer
23 views

Can I display specific part of Output from Command Prompt in Windows?

If I run netsh wlan show hostednetwork it will display, Hosted network settings, Hosted network status these two parts. But, if I want to display just the "Hosted network status" ...
2
votes
3answers
2k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
3
votes
4answers
12k views

Move all files of type to a new folder in windows 7

Can anyone help on this. I have mp3 files all over the shop and therefore a lot of duplicates. What i need is a command line function that will move all files of type mp3 to a new folder. I'm not ...
1
vote
1answer
24 views

CommandLineTools folder displayed in Finder but not in CLI OS 10.9.4

The finder browser shows CommandLineTools, xcode-select --print-path also shows the path, /Library/Developer/CommandLineTools/ but I cannot get to it using cd and ls doesn't show it inside of the ...
-1
votes
3answers
4k views

Cannot end processes with taskkill, get “the system cannot find the file specified” error

Whenever I run the following in a command prompt: taskkill /f /im chrome.exe I get an error saying "the system cannot find the file specified". I've tried that command without the /f option, and ...
1
vote
1answer
25 views

Open only directory in given directory

I am trying to write a simple batch file, that when run, will move and rename some files within a certain directory. I know I can navigate to a directory in command prompt with cd "path_to_directory" ...
43
votes
9answers
37k views

Multi-tab command prompt in Windows?

What are the best (i.e. bug free) Multi-tab command prompts in Windows? They have them for Linux but Windows never seems to come out with one.
11
votes
8answers
13k views

How to write a script that accepts input from a file or from stdin?

How can one write a script that accept input from either a filename argument or from stdin? for instance, you could use less this way. one can execute less filename and equivalently cat filename | ...
16
votes
8answers
57k views

Get list of installed applications from Windows command line

I once saw a guy run a command and got a list of all installed applications on his computer. How do I do this? I would like a list of my currently installed applications. I believe he used WSH ...
-1
votes
0answers
17 views

Windows Command Prompt command that changes volume [duplicate]

Running Windows 7 on an Acer Aspire Timeline X laptop. Is there a way to change the volume using the Command Prompt?
0
votes
1answer
3k views

Starting VLC via command line to play a video as desktop wallpaper

I'm trying to create a batch script to start a video as a live wallpaper on startup. Right-clicking a playing video and selecting the "Set as wallpaper" option works fine, but attempting to run VLC ...
8
votes
6answers
7k views

How to reset the looks of the Command Prompt window, in Windows?

I have made several customizations to how the Command Prompt window looks in Windows and now I want to reset it to its original state. How can I do that? I just want it to look that way it does after ...
1
vote
2answers
55 views

Stop/start a Windows service with a specific path?

I would like to create some scripts (Windows Batch or PowerShell, whichever will work) that can stop and start services that have their binPath in a specific folder. It will speed things up when ...
7
votes
3answers
15k views

How to drop all MySQL tables from the command-line?

Usually I open Terminal.app and connect to a remote MySQL database. Then I use this command to drop a table: mysql> drop table [table name]; But what I need is the command line to drop all ...
0
votes
0answers
13 views

Disk Usage Equivalent of Bandwidth Stats

Looking for in effect the equivalent of vnstat -w but for disk usage: rx | tx | total | avg. rate ...
0
votes
1answer
44 views

How do I run Asterisk as user other than root?

I compiled Asterisk 11 from source as user root on CentOS. Now I want Asterisk to run as user asterisk group asterisk. I have uncommented AST_USER="asterisk" AST_GROUP="asterisk" in ...
31
votes
1answer
51k views

Linux unzip command: Option to force overwrite?

I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace ...
1
vote
1answer
192 views

Dropbox CLI syncing issues

I have (only) SSH access to a remote server, on which I installed Dropbox and the CLI as per these instructions: ...
6
votes
5answers
89k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
0
votes
1answer
28 views

Password cmd switch for Telnet

I'm trying to created a batch file to automatically ping routers with telnet. My connection prompts me for password and I'm not being able to set it : start "C:\Windows\System32" telnet.exe [server] ...
3
votes
1answer
6k views

Disable MsMpSvc from command line

Quite simply I'm looking for a way to disable Microsoft's security essentials service from the command line, you used to be able to run the command (as admin) net stop MsMpSvc but that was somehow ...
1
vote
2answers
4k views

Stream multiple displays using one VLC instance

Trying to figure out a way to start an instance of VLC from the command line to stream 3 displays on a Win7 box. We can start an instance of each one individually, and connect to each (though not at ...
2
votes
1answer
27 views

Continue typing in command line after executing an option

Noob question: (I don't know if this is the same for everything as it is for SASS), but after typing sass --watch sass:css it says Sass is watching for changes. Press Ctrl-C to stop., as expected, ...
0
votes
2answers
37 views

Windows 7 - How to locate a list of files by filename and copy them into a folder

I have a list of 200 filenames. I need to find these files, which are located in different subfolders, by their filename and copy them into one separate folder. I'm using Windows 7. How do I do that? ...
4
votes
1answer
138 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
2answers
39 views

cmd has wildcard bug?

Files in folder: a.j ab.jp abc.jpg abcd.jpeg dir command results: Command Result (Files shown) ---------- -------------------- dir ?.* a.j dir ??.* a.j, ab.jp dir ???.* ...