Skip to main content

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).

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Changing a Backup using xcopy to one using robocopy in Win 11

In a Windows 11 Pro and Office 21 Pro environment on a Lenovo 13th Gen, Intel i7-55U, 16GB, 64 bit, Notebook, are there any pitfalls in an incremental copy of Dir/files from external drive F to ...
Dennis G Bails's user avatar
0 votes
0 answers
11 views

How do you create an ffmpeg lossless image without re-encoding?

I'm using the command below but not sure if it’s really lossless and without re-encoding? Is there specific command to create lossless image and without re-encoding? I'm new to this. ffmpeg -lavfi &...
Michael's user avatar
  • 11
-2 votes
0 answers
15 views

Can you list all your AWS resources with a single cli command? [closed]

I'm running Cloud Formation scripts on AWS to test in-development infrastructure. I'm aware that Cloud Formation can't always delete resources on stack deletion. To make sure I'm tracking all my ...
Connor's user avatar
  • 97
0 votes
0 answers
35 views

Is there anyway to resume "stuck" cmd.exe in windows 10?

For a lack of a better description, look at this screenshot: Sometimes, after an out of memory semi-crash, cmd windows remain in this state. If I click on them, nothing happens. (some of them work ...
Zibri's user avatar
  • 271
0 votes
0 answers
18 views

Terminal keywords highlighting [closed]

I saw on a tutorial that when you write keywords on the terminal it automatically highlights them: In my case it shows conda in same color (white) Already try to change the theme, but didn't worked. ...
Mateo Buenahora's user avatar
0 votes
1 answer
34 views

exit code segment causes Bash prompt to freak out

My Bash prompt (based on mike kasberg's) generally works fine. But when I get an error code, and then write over to the next line, no newline is generated, so the text goes back over my previous ...
Smiley Tiger's user avatar
1 vote
0 answers
23 views

How to Identify and Terminate Idle tmux Sessions on a Debian Server

I have a Debian server with multiple tmux sessions running. Some of these sessions are idle and not running any active processes. How can I identify and terminate all tmux sessions that are not ...
maxime de smedt's user avatar
0 votes
0 answers
33 views

Retrieve all ZIPs from specific site subdirectory

I'm trying to retrieve the *.ZIP files from this Zophar.net Music section, specifically the NES console. The files are freely downloadable per each game separately, which will be a huge time sink to ...
Jeremy Hendricks's user avatar
2 votes
0 answers
73 views

The same robocopy command is extremely slow on one computer and very fast on the other

I am facing the problem that the same robocopy command has totally different execution times on two different computers. The source is a Windows Server 2016 Standard. There is a directory with approx. ...
Grimm's user avatar
  • 121
2 votes
1 answer
106 views

What a correct playlist.m3u8 should contain, or should look like?

24/06/2024: [Presentation of the problem] I had dowloaded some videos from the Internet, few years ago. I obtained many files: a series of files in .ts a single file playlist.m3u8 In my example: A ...
dg lr's user avatar
  • 57
0 votes
1 answer
58 views

How to solve a final pb when merging a series of .ts file with concat command of FFmpeg?

I had dowloaded some videos from the Internet, feaw years ago… I obtained many files: a series of files in .ts In my example: a series of 306 files named from segment1_4_av.ts to segment306_4_av.ts A ...
dg lr's user avatar
  • 57
0 votes
0 answers
11 views

Keyboard doesn't work correctly when booting the linux kernel with single mode from CFE bootloader using UART

I've been encountering a specific and weird bug that i honestly can't seem to find any solution for, i've been toying around with this blu ray player and found a uart port, i wire it to my pi pico ...
Japanesegoblin's user avatar
0 votes
1 answer
18 views

How to increase VLC RAM buffer for offline files using CLI?

I would like to do the same thing as in the answer to this question: I want to increase the File Caching option found in the preferences (Tools -> Preferences) with all the parameters (the All ...
Jean Dubois's user avatar
0 votes
0 answers
44 views

How can I run NET USE if the password starts with a slash?

I'm trying to run the Windows net.exe program to connect to a computer (escaping double quotes on the passwords): NET USE \\computer /USER:domain\user "%password:"=""%" But I ...
Sergio Del Franco's user avatar
0 votes
0 answers
12 views

Possible to run python scripts from ConEmu without having to type python before the script?

Is it possible to run python scripts from ConEmu without having to type python before the script? If it is possible through Windows console that would be okay too.
jamana's user avatar
  • 75
0 votes
0 answers
64 views

How do you remove stubborn (album art) / (embedded images) that eyeD3 misses?

How do you remove stubborn (album art) / (embedded images) that eyeD3 misses? Running: $ eyeD3 --remove-all-images . # Works great 90% of the time but not 100% of the time. I’d prefer a command that ...
Gene Tyle's user avatar
0 votes
0 answers
26 views

Unable to Connect to Remote Desktop on Local Network - Diagnosing with CMD/PowerShell

I've recently encountered an issue with Remote Desktop Connection that stumps me. I have two Windows computers on the same Wi-Fi network. Until recently, I could connect without problems, but now I'm ...
Foad's user avatar
  • 662
0 votes
0 answers
33 views

Is there a name for the text that shows up after executing each command line in a CLI?

for example in linux terminal I have jurek@debian:~$ man help No manual entry for help I want to know how the second line is called bc I want to ask an other question "How to copy this term (I'm ...
konto's user avatar
  • 33
0 votes
0 answers
32 views

Extreme Switch Creating Mirror Port

I am deploying an IDS to an environment with extreme switches and the IDS needs to have a mirror port configured on the switch it is connected to. I currently am testing the deployment on an Extreme ...
TheNickle's user avatar
0 votes
0 answers
23 views

"For" cmd in Windows recovery console

I ask if my CMD prompt in windows recovery environment can accept this kind of script, as a paste only script. I know it works ok in the regular cmd console, but I'm not really sure about the recovery ...
Roni Ked's user avatar
1 vote
2 answers
96 views

how to pipe output from a command in its own shell?

I want to put all output as it's happening into say so it can read my LLMs response I found that tee will output the lot once you exit but I want it to say each response when they are given. I think ...
yarns's user avatar
  • 145
0 votes
0 answers
20 views

Restore all CMD commands (or windows commands) [duplicate]

I was messing with the environment variables and PATH, etc and i think i got rid of a bunch of terminal commands by accident (nodeJs commands, python, etc) even the windows ones. So i cant run ...
Alejo Lasso's user avatar
0 votes
1 answer
25 views

z80asm: Unable to resolve reference, but prints blank reference

In my infinite wisdom I wrote the assembly source code to my "QK-1" z80 computer emulator thing in Google docs. On my High school managed Google Account. Which was EOL'ed after I graduated. (...
qwerty keyboard's user avatar
0 votes
0 answers
11 views

How to change file path in BAT file based on the current user? [duplicate]

I am new to batch scripting so please offer constructive advice on how to approach the task. I have a bat file to run some Python code similar to this: @echo off set /P State= ...
Jwem93's user avatar
  • 109
0 votes
1 answer
64 views

How to change file path in BAT file based on the current user?

I have a bat file to run some Python code similar to this: @echo off set /P State= Select State: set /P Year= Select Year: "C:\Users\MYNUMBER\...
Jwem93's user avatar
  • 109
0 votes
2 answers
69 views

Batch how to compress an .zip folder without root folder while also being portable

I'm trying to compress multiple separate folders to .zip (whether it be 7zip or PowerShell or tar) as well as being portable (as in the .bat can be anywhere) yes I looked at other posts but none of ...
Jimmy King's user avatar
0 votes
2 answers
67 views

Windows "winget" says that a program is installed but it is not anywhere on the installation drive

I had downloaded and installed clink manually. It did not show up anywhere on the path. So then I used the package installer: it says that it is already installed: C:\Users\sboesch>winget install ...
WestCoastProjects's user avatar
2 votes
1 answer
56 views

Trying to capture same functionality in Windows cmd prompts as in a PowerShell list of commands using net localgroup

I work in an environment with a mix of older and newer Windows components on isolated networks. To try and make a certain task easier, I worked on a list of PowerShell commands to create a single text ...
Pokopokopoki's user avatar
-1 votes
1 answer
44 views

Hide files and folders with same name

I ran into an issue where I had to restart my computer during a large extraction process involving many zip files :(. All the zip files contain a folder that has the name of the zip file (minus .zip) ...
Brian Jester's user avatar
0 votes
0 answers
24 views

Explore Regedit.exe to the specified address from the CommandLine [duplicate]

Generally, when we want to navigate to one of the registry addresses, we open regedit.exe then copy-paste the address into address bar, then press enter. For example Computer\HKEY_CURRENT_USER\Console ...
Mr.Key7's user avatar
  • 823
0 votes
0 answers
34 views

The Hydra tool is not checking the entire wordlist

I recently used the Hydra tool and want to share my experience. I created a custom word list and placed the password in the 10th position. When I used the command hydra -l msfadmin -P list.txt <...
Subham Rai's user avatar
0 votes
0 answers
33 views

Task scheduler program script psexec where executed program need argument parameter too

So I have psexec64 to run a program as system user. The program is SyncToyCmd: Here is it sucessfully on previleged powershell: PS C:\Users\User> where psexec64 PS C:\Users\User> gcm psexec64 ...
Muhammad Ikhwan Perwira's user avatar
1 vote
1 answer
51 views

why don't work old batch ffmpeg extraestereo command in new version?

I use this batch command for years in ffmpeg, but from update to the last version don't work and don't see in documentation whats the problem. ffmpeg -i C:\Pelis\video.mkv -vcodec copy -map 0:a -map 0:...
javier vera's user avatar
1 vote
3 answers
139 views

Is there a difference between combining commands with & and running them one at a time?

Say I want to run multiple, computationally complex commands on Windows command line. Does it makes a difference, performance wise, if I combine them with &: doSomething1 & doSomething2 & ...
overdriven's user avatar
0 votes
1 answer
89 views

7-Zip Fails to Properly Unzip File via Context Menu and CMD, But Works in GUI

I'm currently encountering a problem with a .zip archive made using 7zip. Whenever I try to unzip it using the context menu (right click -> 7zip -> extract here) or using a bat script (or cmd) &...
JohnKondo's user avatar
1 vote
0 answers
35 views

How to output lines with ex command that is vi not vim?

I am using ArchLinux and I want to run some ex commands. The following outputs nothing on my system: $ ex -s -c %p -c q /etc/hosts The ex command is a part of vi package on my system: $ pacman -Ql vi ...
KamilCuk's user avatar
  • 220
0 votes
0 answers
14 views

Run a command, immediately return to the shell prompt, do not return a message when the command is finished [duplicate]

brew install gh > /dev/null 2>&1 & This returns to the shell immediately, but prints [1] + done brew install gh > /dev/null 2>&1 when the command finishes. brew install ...
Julius Hamilton's user avatar
0 votes
1 answer
49 views

How to use grep with a pipe symbol from the command line

Maybe I'm missing something very simple, but I don't seem to be able to use grep from the command line (in bash) where the search argument contains a vertical bar |. For example, grep a|b results in ...
Mr Lister's user avatar
  • 276
1 vote
1 answer
64 views

How to use ffmpeg to convert a flac file to alac and preserving all metadatas?

I use this loop to convert flac to alac : for i in *.flac; do ffmpeg -i "$i" -y -vn -c:a alac "${i%.flac}".m4a; done But some tags are not exported. I tried to use the -...
AxZxP's user avatar
  • 11
0 votes
1 answer
91 views

I want to change the track and title of mp3 files using their ID3 Tag data in all sub directories too not just the folder I am in

I want to change the track and title of mp3 files using their ID3 Tag data in all sub directories too not just the folder I am in. To change track and title in a single folder sometimes kid3-cli or ...
Gene Tyle's user avatar
0 votes
1 answer
72 views

Batch command with quotes fails to move files and delete folder with special characters

I have a custom batch program that I update and run to negate having to constantly waste half an hour just to clean up the Windows start menu every time I'm forced to reinstall Windows. It saves me a ...
John's user avatar
  • 2,147
2 votes
1 answer
92 views

A batch file with an executable file checks if it is not in the processes in order to run another batch file (or code from it)

There are two batch files. Need to add a condition to the first file if the process is running nvcplui.exe then nothing, and if it is not running, then the second file (or the code from it) will be ...
Agodless's user avatar
0 votes
2 answers
227 views

Reset Windows Update settings back to default, including respective local policy, by command-line only?

I have many Windows 10 and Windows 11 machines, which are in different states of windows update settings. Unfortunately, some machines have local policies active for windows update settings. I need to ...
I grok it's user avatar
0 votes
1 answer
69 views

What privilege is required by the caller to invoke the -ExecutionPolicy parameter of Powershell 7.x

When invoking Powershell directly by invoking PWSH.EXE, it accepts an -ExecutionPolicy parameter for essentially a "one time/this-instance-only" invocation with something other than the ...
David W's user avatar
  • 256
0 votes
0 answers
53 views

Executables' working directory is always C:\WINDOWS when executing in command prompt from network drive

Ran into a very strange issue with network shares recently on a particular Windows 10 machine. I have a network share \\server\sharename mapped to the Z: drive, and am trying to work with files there ...
Degru's user avatar
  • 101
1 vote
1 answer
37 views

Generic way to open $EDITOR at a specific line

I'm building a CLI application where you're supposed to be able to open files at particular lines. I noticed that many applications (vim, nano, kakoune) use the + argument to allow you to open a file ...
Marc's user avatar
  • 161
0 votes
0 answers
51 views

Conversion of url to pdf using chrome command line

I am using this code in powershell to convert url to pdf start chrome -ArgumentList "--headless --print-to-pdf=C:\Users\user\Desktop\file1.pdf link but it is not providing any css. Is there any ...
xmsk's user avatar
  • 1
-2 votes
2 answers
93 views

How to run an .exe file in command line without adding PATH variable in Windows? [closed]

I've recently downloaded ffmpeg and I need to run it through command line. I'm not able to do that because I don't have admin rights. How do I work around that?
Jahnavi Vempati's user avatar
0 votes
1 answer
67 views

How to change user's directory like 'Download' to other directory via command line in Windows?

I know that there is already an answer for this, but that isn't sufficient. In Windows, moving user's directory like 'Download', 'Documents' to other directories can be splitted into three steps: ...
tetratheta's user avatar
9 votes
3 answers
1k views

Why does Windows command prompt command chaining not short circuit when a batch file returns non-zero?

The first premise is that batch scripts will execute all commands in them, even if one fails. @echo off does_not_exist.exe also_does_not_exist.exe C:\Users\user>two_failures.bat 'does_not_exist....
douggard's user avatar
  • 191

1
2 3 4 5
262