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).
13,084
questions
-2
votes
0
answers
8
views
How to properly uninstall Windows 11 software without the control panel? [duplicate]
As devs in our company we do not have a local admin account per se.
But we do have a tool that allows us to start Explorer++, cmd and powershell with elevated rights.
This way we can install software ...
1
vote
1
answer
24
views
Batch script does not output file when limited user runs it from an administrator task manually
The Problem:
I want to let a limited user restart a Service. This requires admin privileges, and thus the limited user is unable to restart individual services. I also want to create a timestamp file ...
0
votes
1
answer
29
views
How to delete files with specific extension older than 3 days with ForFiles?
I need to delete files with 001 extension older than 3 days, forfiles gives me error and I have tried for hours to fix that, but I don't know whats wrong. I really need some help.
My command is ...
0
votes
0
answers
35
views
Looking for a way (shell/powershell) to healthcheck socks5 proxies and forward requests to the healthiest one
I have 3 socks5 proxies on 3 different servers, the addresses are as follows:
socks5://192.168.100.139:10051
socks5://192.168.9.160:10051
socks5://127.0.0.1:9150
Due to their nature they are ...
0
votes
0
answers
18
views
How to run a command using command line arguments for Windows Terminal using wt command?
I'm trying to setup my environment. The below code is working, I just need to execute "Code ." in the new tab opened. Tried doing -Command 'code .' , -c 'code .' , but no luck.
Here's my ...
0
votes
0
answers
31
views
How do I determine which line has too many arguments within the script itself?
When I run the script I get the following errors:
./A_High_Stakes_investigations.sh: line 11: [: too many arguments
./A_High_Stakes_investigations.sh: line 11: [: too many arguments
./...
0
votes
0
answers
52
views
Change clock settings using terminal
what would be terminal command to change(enable in my case)this setting?
1
vote
1
answer
26
views
How to run sendmail as another other user?
I am witnessing behaviour I cannot explain.
If I run sendmail as another user by executing the following commands seperately - that is, typing each command and pressing enter before entering the next:
...
0
votes
0
answers
21
views
Wrapper to monitor CPU and memory usage for a command line without knowing its duration in advance [duplicate]
This great (in my opinion) answer on Super User provides a solution to track CPU and memory usage of a command line. It is great, however, you need to know in advance the duration of your command line....
4
votes
1
answer
414
views
How to calculate mean CPU and memory usage of a command line?
The following command in UNIX:
time sh -c julia src/script_etudedtsi.jl 80 20 100 366 5 10 0 1 0 0 1 1
returned the elapsed time for my Julia script.
I tried:
pidstat -u -p $(pgrep -f julia src/...
0
votes
0
answers
39
views
No terminal commands being recognized in macOS Terminal using Zsh. How can I get them back?
None of my commands are working inside my macOS terminal. Usual commands like sudo, nano, vim, ls, cd, all are not working or being recognized.
They were working before however after adding flutter $...
0
votes
1
answer
68
views
Realizing auto-inputting command after logging in session in PuTTy
Is there an option in Putty that can auto-insert commands when I start a session?
The general scheme will look like this:
Start session -> Auto logging with a certificate -> Insert the command &...
-2
votes
1
answer
63
views
FFmpeg MP4 command not working as expected [closed]
I’ve tried to use FFmpeg to prepare a video for YouTube, based on the YouTube recommended upload encoding settings but can’t make it work.
Does anyone know the exact encoding FFmpeg command based on ...
1
vote
1
answer
34
views
how do I format the wildcard inside the BOOLEAN expression so that it tests for all extensions?
I'm trying to sync two directories, Masters and Proxies, via a bash script:
# Loop through files in Proxy Files folder
for file in "$ProxyFilesDir"/*; do
# Extract filename without ...
1
vote
1
answer
69
views
FFmpeg: ffv1 -context parameter
What forces ffv1 to encode in intra-frame mode -context 0 or -g 1 or both?
It says here (in Compression details) that to force intra-frame encoding I should use -context 0 (as far as I understand).
...