Questions tagged [command-line]
A command line is a string given to a command interpreter that tells it actions to take, such as running programs or copying files. The interpreter processes command lines with escapes and substitutions.
23,469
questions
0
votes
0
answers
6
views
Copy and unzip a tar.gz file using a windows command line
I am using this command line but it is not working.
C:\Users\my_dir\Downloads> copy my_file.tar.gz && tar -xf ..\Desktop\my_folder.
I would like also to have a command which create a folder ...
-1
votes
0
answers
10
views
convert softsub to hardsub using ffmpeg
I want to change this command to work on a folder not a single file.
ffmpeg -hide_banner -i 1.mkv -vf "subtitles=1.mkv'" -c:v libx264 1.mp4
if anyone have idea to make the process faster ...
0
votes
0
answers
20
views
mariadb-dump with database name containing unicode characters?
Trying to author a mariadb-dump.exe command line to back up our MariaDB 10.11 databases on Windows (Swedish locale, win-1252 system codepage). Unfortunately we expect full unicode support and named a ...
0
votes
1
answer
31
views
Trying to delete a bunch of files listed in a specific file using a git bash loop
how are you doing? Let me explain what is happening to me:
I've created a UE5 project and there are some huge files, I'm trying to remove them from the git directory
using the command git rm --cached. ...
-1
votes
0
answers
20
views
Flutter Channel [closed]
which is the Default channel in flutter?
Which is best for App Development in Flutter or Flutter sdk?
getting error like this:-
flutter upgrade
Unknown flutter tag. Abandoning upgrade to avoid ...
-2
votes
0
answers
28
views
How can I run PHP from the command line WITH PHP tags?
For teaching purposes I have written an Electron application which sends the contents of a text box through php -r. The relevant part is:
let php = spawn(interpreter,['-r', form.elements['code'].value]...
-3
votes
1
answer
27
views
How Can I check linux distribution of my server in terminal? [closed]
I am trying to check which linux distribution is my server is running on. I tried some commands like lsb_release -d but no luck
lsb_release -d in terminal but saying command not found
/etc/*-release ...
0
votes
0
answers
19
views
Error: on branch master - nothing to commit, working tree clean
Every time I type the git commit -m "inserted name" command, I get the error: "on branch master - nothing to commit, working tree clean". Even though I initialize the Git git init ...
0
votes
0
answers
14
views
Maven multi-module project and workspace dependency resolution through the command line
If I have a multi-module project like:
<project >
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</...
0
votes
1
answer
14
views
How to define multiple run commands for different mainClasses in Gradle's build file
I have an Java project with the following file structure:
├── bin
├── build.gradle
├── lib
│ ├── library1.jar
│ ├── library2.jar
│ ├── ...
│ └── library15.jar
├── settings.gradle
└── src
└─...
0
votes
1
answer
24
views
How to run all the test files in a directory with Rake, from the command line?
I have some test folder:
app/
test/
folder1/
test1.rb
test2.rb
folder2/
test2_1.rb
test2_2.rb
test2_3.rb
I want to run only the tests from the 'folder2' ...
0
votes
1
answer
44
views
Checking Svelte version from a command line
I am new to svelte and I want to know how to display the version number of the installed svelte version in the command line. Note that I installed svelte by using degit.
I tried 'npx svelte --version' ...
0
votes
0
answers
20
views
FINDSTR Command line (CMD) Output TXT file Turkish character problems
Using the command below, I take the section that says "Name and Surname" and print it to the TXT file, but words containing Turkish letters appear corrupted in the TXT file.
It looks fine on ...
0
votes
0
answers
17
views
"No such file or directory" when scp copying Miniconda environment
I am trying to copy my Miniconda environment from one server to another server by using the command scp -r yala-app1:/scratch/houk/miniconda3. However it returns many similar errors of not being able ...
0
votes
0
answers
32
views
Multiple file C++ assignment Error: reference to 'data' is ambiguous [closed]
I have been given a fully complete "Support.h" header. Then I have been given a started main file which I have continued and a completely blank "Support.cpp" file which I have ...
0
votes
0
answers
7
views
Trouble syncing folders in Terminal due to permissions
I've set up a virtual server and am trying to sync files from my local machine to it. I keep getting permissions errors, and am not really sure where to start.
When I attempt this: rsync -avz htdocs [...
0
votes
1
answer
39
views
How do I get some lines from TXT file with CMD (Only Windows Command Line)
I want to check the status of the USB scan device connected to the remote computer using the Windows command line, cmd.exe. (I only use Canon and Fijutsu brand scanners)
The command I use: pnputil /...
-1
votes
1
answer
42
views
Open List or Array of HTTP Link Urls Slowly And Close Tabs or Windows 5 Seconds Later
I can open the links with bash, but I can't find a way to open them one by over every 2 seconds and close them at the same interval. I want to be able to watch a screen and look are hundreds of urls ...
1
vote
0
answers
86
views
Extract/parse resources from Portable Executable (PE) file
I want to install Edge in Windows programmatically using the official
MSI Edge installer (151 MB) but avoid the use of administrator permissions, and place the extracted files in a custom folder (not ...
-1
votes
1
answer
37
views
Shell script - Filter data from log file which having actual process count value [closed]
I have one following log file (input-data-file.log) and i want to do some filter on input file using shell script (.sh) which give me output which having actual count >0 value (Exclude 0 (zero) ...
0
votes
1
answer
26
views
How to calculate Kafka Consumer Lag Given a Single Topic and a Single Partition
Is there an easy way to compute the consumer lag of a consumer for a specified Kafka Topic and partition number? I only want the integer, nothing else.
I know that bin/kafka-consumer-groups.sh --...
0
votes
0
answers
3
views
howTo set set default tab in copyQ in commandline?
i using in ubuntu
copyq as clipboard manager
https://copyq.readthedocs.io/en/latest/faq.html
and use little scripts for the tab management like.
it should add clipboard contents to the the new tab.
or ...
-1
votes
0
answers
17
views
how can i put my own custom colors to ls command output [closed]
I want to change the color output of ls command to a custom color scheme, specifically change the blue directory color to a less blue one and dim it, and change /dev color to orange ( the color code ...
2
votes
6
answers
120
views
How to create a list of all words in a bunch of files?
I'm dealing with a colleague who has made an enormous amount of copied/pasted spelling errors throughout an entire C# solution.
Instead of using a spelling checker on every individual file, I would ...
0
votes
2
answers
56
views
Increase a global environmental variable in batch file
I used setx to set a global counter variable in my list of batch files, which are running in parallel.
I set first counter like this:
setx counter 1
But how to increase this variable in another batch ...
0
votes
1
answer
34
views
Print actual binary representation of a file [closed]
I want to print the actual binary representation of a file. For example, give some text file a.txt:
This is some text
I can print its binary representation with:
$ python -c "import sys;print(''....
1
vote
2
answers
58
views
Shell script program - Filter rows from log file which having disk-space utilization size more than 80%
I have one following log file (input-log-file.log) and i want to do filter on log file using shell script (.sh) which give me rows which having disk space utilization more than 80% (>= 80) along ...
0
votes
1
answer
22
views
How to make prompt current directory name in bold using powerlevel10k?
I'm using oh-my-zsh, powerlevel10k, colorls and fig to customize my mac terminal. Now i have just one issue that i want the current directory name in bold.
see pics to better understand
Initially by ...
0
votes
0
answers
32
views
How to check hidden files in IntelliJ
In Normal Command prompt, for "ls -a", we will get all the files and Hidden files as well. But in IntelliJ Command prompt, how to do this?
-1
votes
1
answer
31
views
Migrating Clap CLI Argument Definitions from Version 2.33.3 to 4.4.2
I recently upgraded Clap from version 2.33.3 to 4.4.2 in my Rust project. In the previous version, I used
matches.occurrences_of("verbosity")
to count the number of times a verbosity flag ...
1
vote
2
answers
34
views
In bash, how to sort while ignoring a prefix?
I know the sort command can be made to use only some of the information on each input line as the sort key, e.g. using sort -k 2 to skip the initial sequence of characters up to a whitespace; and I ...
1
vote
0
answers
29
views
Run adb shell command programmatically
I'm trying to build a simple support app to execute some of adb shell commands like "adb shell wm overscan -35,0,-55,0" to hide Black Bottom Bar. I will run this app as system on rooted ...
0
votes
0
answers
17
views
Why is venv launcher not working properly to create a virtual environment?
I am trying to make a virtual environment with VENV but I keep getting the below error:
C:\Windows\System32>python3 -m venv MyPythonEnv/
Unable to copy 'c:\\users\\k1921013\\appdata\\local\\...
-3
votes
1
answer
24
views
ssh nohup & still running in foreground [closed]
I wanted to run a long running command in a remote server, even after the connection terminates. So I thought of using ssh host "nohup cmd &". But for some reason, neither cmd is going ...
0
votes
1
answer
43
views
Why batch file skip command in FORFILES?
Wanna ask, below is my code...
time /t > c:\logs.txt
date /t >> c:\logs.txt
pushd \\172.31.100.101\dir1\dir2
set sour2ndP=%CD%\Recon1
set dest2ndP=%CD%\Recon2
set sour2ndC=%CD%\Recon3
set ...
0
votes
1
answer
32
views
In a Windows batch file, how can I cd to a single subdirectory with a variable name in a directory?
I have a folder with a constant name and inside it is a single subfolder with a variable name.
How can I change directory with a cd command into the variable named subfolder in a Windows single batch ...
0
votes
2
answers
30
views
Running executable on command line is fine, but running through another program causes non-responsiveness
Running an executable on a Windows command prompt along with the arguments is just fine:
cgx_STATIC.exe -b C:\Users\m3\AppData\Local\Temp\shot-277325955.fbd
But when running the same executable ...
-1
votes
1
answer
27
views
Will `ls . | grep test &` run both commands in the background, or only the last one?
If I run ls . | grep test & in a shell which consists of two commands, the output of one being piped into the other, will both commands run in the background or only the last one (grep)?
I've ...
1
vote
2
answers
48
views
Modern way for macOS commandline code to fetch data in Swift, with progress notification
Old programmer but new to Apple ecosystem. I want to use the most modern APIs and Swift techniques to fetch some data over https and get progress reports.
Most tutorials and examples I can find use ...
0
votes
0
answers
22
views
Passing in a user-defined variable value for maven from the command lne
I'm working on a build script to compile a WAR using maven. I want to be able to pass in certain values like the version number from the command line when I run the maven command. After some research ...
1
vote
1
answer
22
views
How to 'start and forget' Visual Studio Code from cmd?
I would like to start VSC from a Windows command line (I use cmder) without feedback info from VSC which polluted my cmd window.
I open VSC from a Windows command with
code .
VSC is opened correctly ...
2
votes
2
answers
94
views
deleting quarantine files: xattr error in mac terminal
I'm trying the following command to delete quarantined files:
sudo xattr -r -d com.apple.quarantine mydirectory
I get the error:
attr: [Errno 1] Operation not permitted:
I have full permission to ...
-1
votes
0
answers
32
views
Minimize command line to notification tray c#
I have a pair of programs - One is a launcher (C#, with forms) that launches a command line .net core app. Works fine, I can launch without showing the command line app at all using:
ProcessStartInfo ...
0
votes
2
answers
45
views
Create a new file and add new values in unix
I want to read a file and I want to generate a new file that includes all unique variables in column X of the original file in alphabetical order.
Dataframe1 Example:
|ID|Var1|Var2|Var3|
|:--|:----:|:-...
0
votes
0
answers
21
views
While running my program the chromium driver doesn't start
Running my program the terminal throws the following error
DevTools listening on ws://127.0.0.1:63762/devtools/browser/0e266bb1-5a0e-4403-be15-e114d23b155a
[0907/105719.182:ERROR:...
-3
votes
1
answer
35
views
error: failed to push some refs to (URL) because a file exceeds file size limit Event if the file it No longer exists [duplicate]
Today I'm having some problems while pushing my project into GitHub, I had a 7z file That measures more than 100mb, I deleted it and still failed to push because of it, It doesn't even exist in the ...
0
votes
0
answers
17
views
PS COMMAND ERROR "error: improper list" Linux [duplicate]
I have the following issue. Im trying to use the PS command within a bash script to determine what users are doing what on my server, using the following:
#!/bin/bash ...
1
vote
0
answers
16
views
Make interactive CLI interfaces in node.js
How would you make a interactive CLI interface in node? I'm hoping something like create-svelte-app is possible to recreate.
(GIF for anyone who isn't familiar with svelte's)
0
votes
0
answers
34
views
How to stop service in a batch file and not show the cmd window
I have a batch file where I need to stop a service before launching an application, but the cmd window popping up I think is interfering with the application starting. Is there a way to stop the ...
-2
votes
1
answer
40
views
Python script is not running in Task Scheduler
So I'm trying to run a Python script that automatically collects Microsoft rewards points, that's specifically in the main.py from this GitHub repo in Task Scheduler.
In Task Scheduler I have it set ...