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
2answers
22 views

Linux how can I run a process that I can come back to after 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
778 views

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

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
33 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 ...
70
votes
13answers
159k 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
5k 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? ...
1
vote
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
6 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
36 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 ...
30
votes
13answers
21k 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
40 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 ...
10
votes
5answers
6k views

how to make bash not to wrap output?

Whenever some command generates long lines as output ( for example, when ls -l a folder which contains files with long names ), the long lines are wrapped to next line, thus messing up the column ...
-2
votes
1answer
12 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 ...
2
votes
3answers
2k 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
52 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
10 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 ...
9
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
24 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 ...
2
votes
3answers
10k views

SCP from Windows using the colon-inclusive full path

I'm trying to run SCP on my Windows box through a batch file. I want to do something like: scp "C:\myfile.txt" user@host:path Of course scp thinks that "C" is my source host and "\myfile.txt" is ...
1
vote
1answer
13 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
11k 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
14 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
23 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" ...
41
votes
9answers
36k 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.
2
votes
4answers
46 views

bash extract first number from filename

I'm trying to move files like this: ... DLG023-00-01-sprite.TextGrid.json DLG023-00-01.prosody.json DLG023-01-01-sprite.ogg DLG023-00-02-sprite.TextGrid.json DLG023-00-02.prosody.json ...
11
votes
8answers
12k 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
53k 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
15 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 ...
-2
votes
0answers
27 views

Watch youtube videos in command prompt

While browsing Linux Stack exchange Came across this question which helps to watch youtube videos in Linux terminal,this brought me few questions Is it possible to watch youtube videos on command ...
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
36 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
13k 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
11 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 ...
21
votes
8answers
71k views

Get current folder name by a DOS command?

Is it possible to get the current folder name (not current directory path) by using a DOS command? If so, how? The closest I got was this but it doesn't do it: for /f "delims=\" %%a in ("%CD%") do ...
0
votes
1answer
22 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
49k 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
132 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
85k 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
22 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] ...
1
vote
1answer
3k views

Run an ftp batch file from within a batch file

I have a scheduled task which executes the commands in my file ftp.txt every day. The file can be seen below, it connects via ftp to my site and puts 3 XML files on to my web server. command: ftp ...
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 ...