Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [command-line]

An interface for interacting with a computer using typed commands in a text-oriented environment, as opposed to a graphical user interface (GUI).

0
votes
0answers
24 views

How to configure terminal like this?

I found a terminal theme in this video @ ~7min. I love it but I don't know how to configure terminal like this. Would you please help me? It seems this Ubuntu is running in Windows Linux Subsystem ...
1
vote
1answer
33 views

Is it possible to Block An Application from Accessing the Internet with cmd?

Normally, I would use FireWall to Block An Application from Accessing the Internet. But I don't want to setup my FireWall system for just an application. What I want is: create an bat file to start ...
0
votes
1answer
11 views

How to batch reverse resolve ip address with host command under linux?

I pick up ip addresses from the access log, I want to find out where those IP addresses come from. To do this I use this script: cat /var/log/nginx/access.log |awk '{ print $1}'|sort| uniq -c |sort -...
2
votes
1answer
203 views

What Linux command line tool can I use to determine the version and name of a remote DNS?

Bind offers you the ability to change the version, name, and hostname as follow: options { server-id none; hostname none; version "Domain Name Server"; }; What I'm wondering ...
0
votes
0answers
19 views

How to collect programs in PATH for Windows [on hold]

I'm curious about some minor problem I have and would love some help on it. I pretty much only run my programs through the run window (⊞+R) or through CMD/PowerShell. Because of that I already made ...
0
votes
0answers
24 views

Delete all files, hidden files, and folders and icons, but not the folders by right clicking: [on hold]

I've been looking for a way to delete all files, hidden files, and folders and icons, but not the icons using regedit. I have no idea about commands. I found a page that shows how to create a registry ...
0
votes
0answers
11 views

shell request failed on channel 2

I have a ssh server which I used to connect to it via bitvise SSH client on windows. now I want to connect via my ubuntu command line to this server with this command : sudo ssh -oHostKeyAlgorithms=+...
0
votes
0answers
15 views

Cannot open new tab from command line anymore with Firefox 61

Recently switched to Firefox 61, any attempt to open a new tab from the command line with firefox http://pretty.much/anything hangs.. then fails with the "Firefox is already running but is not ...
0
votes
0answers
17 views

Prevent Laravel from changing command prompt font [on hold]

When I open a command prompt in Windows 10, the font is a comfortable size for me. However, as soon as I run any Laravel command, the display font changes. How can I stop Laravel from doing this? The ...
2
votes
2answers
48 views

Windows Command line: Is there any way to check syntax of bat file without actually running it?

Windows Command line: Is there any way to check syntax of bat file without actually running it?
0
votes
1answer
14 views

Why isn't this FFmpeg command for creating a video out of frames working?

I have a series of files starting at frame001.png and ending at frame580.png. I tried to use the following command to compile them into an mp4: ffmpeg -framerate 60 -i frame%03d.png ..\output.mp4 ...
0
votes
1answer
36 views

Windows powershell ISE run a bat file in new tab

I am using Powershell ISE to leverage multiple tabbed interface to avoid having too many command prompt windows. Now some of my batch scripts open up anew command line prompt. Is there a way to open ...
-1
votes
0answers
33 views

How to Autochange Windows 10 Backgrounds [on hold]

I'm not good at all with code and I haven't found any specific program that works the way I want it to. Basically, I'm looking for a program or code that would change my background on a specific day, ...
0
votes
1answer
22 views

Reliable way to open a group of URLs using Google Chrome on Windows 10 from the command line (batch or powershell)

My code snippet (Windows 10 cmd shell) set s1="https://www.bbc.co.uk/radio4/programmes/schedules#on-now" set s2="https://www.bbc.co.uk/radio4extra/programmes/schedules#on-now" set s3="https://www....
-1
votes
0answers
30 views

In Windows 10, why does a batch file with a common command (explorer.exe) return an error? [on hold]

This is one that I haven't seen before. I want to run explorer.exe in a batch file with arguments, but the system returns a "not recognized as an internal or external command" error. The odd part is ...
0
votes
0answers
31 views

7Zip command line: Add without directory attribute D

I would like to add all files within a folder including all files in all subdirs with their paths to a zip archive. So this seems to be just a normal recursive add, but I need directories to be added ...
1
vote
1answer
16 views

7zip 7za.exe extracts all files to the folder it is running in

I have a zipped folder with subfolders and files within those, which I need to extract with 7za.exe. However, when doing this instead of extracting it correctly, it extracts all the files to the ...
0
votes
0answers
27 views

How can I change values of the `.ini` files via command line? (linux or windows)

How can I change values of the .ini files via command line? (linux or windows) For example I have a php.ini file: display_errors = On error_reporting = E_ALL & ~E_NOTICE Now, I need be like ...
0
votes
1answer
8 views

ffmpeg merge resized images and fade with video file

I am trying to modify code from one of my previous quesitons so that the images are resized to 1280x720 and there is a fade transition. This is my code currently -- ffmpeg -threads 1 -y \ '.$...
1
vote
1answer
32 views

Batch append to end of a file name before the extension with ren command

I would like to rename all files in a folder, which have different extensions, to have their file name end with "_1" while preserving the existing extensions. I tried ren * *_1*, which just replaced ...
0
votes
1answer
27 views

Can't show manual pages for `ls` in Vagrant

That's my first question in here and I'm still a beginner so please bear with me. I'm having a Linux Command Line Basics course on Udacity. I got to the point where I'm asked to open a manual page for ...
0
votes
0answers
29 views

Get Filename and numbers from specific length string in bash script [closed]

I currently have the following in a Batch script: echo Looking for odt file with -00Ramkkar dir /b C:\users\%username%\OneDrive\Ramkkar\-00Ramkkar*.odt >Test.ITTemp setlocal EnableDelayedExpansion ...
0
votes
1answer
49 views

Recursively create file shortcuts(.lnk files) along with the folder structure using command line/script?

I am trying to copy the folder structure of SOURCE Folder to TARGET Folder including sub-folders (empty and non-empty), without copying the Files themselves, instead I want to create file shortcuts of ...
0
votes
0answers
11 views

Editing a network location via teminal

I am trying to create a small utility with which I can create a new network location using the command line in MacOS. So far, I've found the command Usage: networksetup -createlocation <location ...
-1
votes
0answers
10 views

ICMP echo replay limit with limited packet size

I am going to filter Ping request to my server, and only accepts 20 ping request with length 500 and max echo replay from my server 20. after 20 echo replay ping will be off. how can i do this by ...
0
votes
1answer
28 views

Get Files matching a date criteria

I have done a small *.bat file which the following command exists: forfiles /p %sourcedir% /m *.* /c "cmd /c echo @path && if /l @fdate == %date% (echo true) else (echo false)" The above ...
1
vote
1answer
32 views

Bash/Cygwin - aliases not behaving like command

I'm trying to get Cygwin setup the tools I use in Windows and am having some troubles. From this post, I found I could specify Notepad++ as my editor using alias notepad="/cygdrive/c/Program\ Files\ \...
0
votes
1answer
101 views

Elelevated local admin Runas (or Start-Process -verb Runas) within profile of other user domain user. Is it possible?

I log in as domain user and i want in powershell (or in simple console, no matter) to run a program. the program clean user appdata unnecessary files so it has to operate within user profile. I can do ...
0
votes
0answers
13 views

Add URL base to PDF file from command line

I have Word files with many links that are relative, such as "index.html". I need to convert them to PDF with absolute links, such as "http://www.example.com/index.html". In Word, I can set URL base, ...
2
votes
0answers
37 views

Can I find out when Windows was last restarted?

systeminfo shows when the system came up after a restart, but does not show when it comes up after a shutdown and then a power on. For instance when I run this command: systeminfo | find "Sys" the ...
0
votes
1answer
36 views

ffmpeg merge audio with video and lower volume

I am trying to merge an audio mp3 file with a video mp4 file. I want the audio file's volume to be turned down a little bit so that it is background music for the video clip. This is how my code ...
0
votes
0answers
25 views

Why does getting the filename is slow when a batch script is executed from a UNC path but printing the full file path is quite fast?

Here is the batch script present on remote machine: test.cmd @echo off echo %TIME% echo batch file path = %0 echo %TIME% echo file name without extension = %~n0 echo %TIME% echo ...
0
votes
1answer
31 views

Regular expression to match opening double quote missing a ending double quote

I have a large (25 million rows) data file that is pipe (|) delimited. The data vendor provides files and I run automated jobs to load the files to a Redshift database and then process the data. The ...
0
votes
0answers
25 views

How can I add additional fonts to the Windows console?

I found a guide online stating that you need to edit the registry in order to add new fonts to the list of available fonts in Command Prompt: specifically, you have to edit the HKEY_LOCAL_MACHINE\...
0
votes
1answer
97 views

ffmpeg - merge images with video

I have a video with audio that I am trying to merge with 2 images - one image before the video starts and one image after the video ends - but right now I am getting this error - Stream specifier ':...
0
votes
0answers
9 views

Remove character from multiple files in command prompt

So I have two files in a folder, abcd1.txt and abcd2.txt. With command prompt opened in that folder, what do I need to enter to change them to abc1.txt and abcd2.txt (removing the fourth character)? ...
0
votes
0answers
22 views

How can I ON the check box “If the task fails restart every” checkbox under setting tab in windows task scheduler with schtasks from command line

I need to click the checkbox "If the task fails restart every" checkbox under setting tab in windows task scheduler with schtasks in windows. Below is working fine for creating and starting the task ...
0
votes
0answers
27 views

Adding a variable into a registry key

I need to create a registry key based on a users UPN name. I have set the environment variable, but the reg add command below does not work. SET UPN=whoami /upn reg add HKCU\SOFTWARE\Microsoft\...
0
votes
1answer
56 views

Why is FFmpeg video splitting of 595-600 seconds slow compared to 0-5 seconds? [duplicate]

I have to split a 4K 10 minutes video into 120 small video files, each containing 5 seconds of duration. I'm using ffmpeg for splitting the video. The splitting take a very very long time and the ...
1
vote
1answer
42 views

Running headless server on Windows via SSH

I'm currently working on a software project that allows remote installation via SSH. I transfer a small installer, and then a zipped archive of the main application. The installer will unzip the ...
0
votes
1answer
61 views

How can I get the extension(s) of a file based on its content?

I'm planning on downloading a bunch of images from a website that don't come with an extension, so I want to add one based on the file's content or mime-type. file <filename> does a great job ...
0
votes
0answers
20 views

Handbrake batch convert script assistance to set output extension specified by the official presets

With the help of numerous discussions on SE network and other places I finally managed to a working script that works well except the Matroska presets. I understand the problem is the script itself, ...
1
vote
1answer
20 views

Shell script: run screen, open several screens and run a command in each

Pretty much what the title says: My shell script should Run command A, wait until done run "screen" run command B1 in initial screen open new window (usually via Cmd-a-c) run command B2 in new ...
0
votes
1answer
19 views

Color specific filenames (not extensions) in `ls` output like Makefile or CMakeLists.txt

I am currently working on a C++ project. I am using CMake as a build system and I would love to have all the CMake related files (like CMakeLists.txt) colored differently in the ls command output. ...
0
votes
1answer
32 views

Transferring a file from one server to another server, initiated from a third computer

I'm trying to make a site to site transfer with the following configuration. I have an old server (server-A), the new server (server-B), and my workstation (wks), on which I'd like to launch the ...
0
votes
1answer
18 views

Start new cmd.exe from current command line in administrator mode

When I'm currently in a command line window and I change an environmental variable I have to reopen a cmd.exe instance. When I want to install a python package using pip from the command line I have ...
0
votes
0answers
18 views

Copy directory but not recurse

I want to copy a directory without recursing, preserving "everything", sort of like cp -a except that -a will do the unwanted recursing. The reason is I am making a script to copy/backup from an ...
0
votes
1answer
26 views

grep regex pattern matches on each line where only all matches appear and print on same line

trying to extract some patterns per line, from a log file. I am trying to extract the first time stamp, and two or three other matches but I want to be able to only print the matches from the lines ...
1
vote
2answers
46 views

Unknown parameter in ren command in batch file

I am new to batch file programming and I am analyzing an existing batch file, which was implemented by a former developer in our company. So I am trying to figure out what he intended to do. I have ...
0
votes
1answer
31 views

Commandline probe for video bitrate per GOP

Is there a way to use ffprobe or similar commandline tools to probe for the video bitrate per GOP? ffprobe only seems to output the overall bitrate for the whole video but not packets. ffprobe -i ...