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 ...
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 &...
0 votes
2 answers
409 views

Robocopy with Task scheduler in invisible mode for KIOSK mode or alternative

Computer Setup: Computer in KIOSK mode through Shelllauncher on Windows 10 LTSC. Problem trying to solve: I am looking to move local files on network drive. Solution I found which have some gaps: ...
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 ...
-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 ...
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. ...
1 vote
0 answers
2k views

Is there a command for configuring Default apps in Windows 10?

I've written an installer, which associates an extension with my installed program. This is done modifying the registry and this was working fine for previous Windows versions. For Windows 10 however,...
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 ...
54 votes
4 answers
115k views

Using wildcards with the rmdir or rd command

Let's say there are some folder in the D: drive: D:\Air D:\Abonden D:\All D:\Whatever I want to delete all folders starting with "A" (including all subfolders and files). I tried this command: ...
5 votes
2 answers
40k views

How to pass commands to a telnet window with a batch script?

I'm trying to control a wifi device with a batch script using the telnet command in Windows 7, but I don't know how to pass the commands to the telnet window. This will be a part of a longer script ...
0 votes
2 answers
5k views

How to launch a command prompt window in a specific folder

From Windows Explorer I want to launch a command-prompt window with the working directory the current folder in Explorer. So far I: copy the path from the explorer navigation bar Windows+R: cmd to ...
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 ...
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 ...
1 vote
3 answers
7k views

Changing default terminal of Code::Blocks 13.12 in Windows

I seem to be at a dead end here. I cannot change the terminal for Code::Blocks on Windows, although it is a cakewalk in Linux. The option is greyed out. Running as admin doesn't work also. The box ...
1 vote
1 answer
215 views

Win CMD: How to simply copy a folder without typing name twice?

I have a folder with a few files: - folder1 file1 file2 And want to copy it folder some folder2. Expecting following structure: - folder2 - folder1 file1 file2 I could ...
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 ...
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. ...
19 votes
2 answers
17k views

Get the most common appearing lines from file in Linux

I have a text file that has various words per line. How can I find the 12 most frequent appearing lines in the file and display them? I am not very good with scripting commands. If I could get the ...
0 votes
1 answer
3k views

Specify passphrase when invoking ssh?

I'm trying to run a remote command using SSH in a script. Host1 is connecting to Host2 to run a command. I've setup the public keys between the two hosts so I don't need to use a password to make the ...
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 ...
6 votes
1 answer
4k views

Ignore certain changes in git diff

Is it possible to get a report from git diff or related commands that excludes a certain category of change? I've been asked to review a change where a huge number of files have undergone the ...
0 votes
1 answer
4k views

Starting a command in a new screen session doesn't work

I want to execute a command in a new screen session (and detach from it) but I don't get it to work. I tried to start a process in a new screen session and detach from it with this: screen -d -m ...
2 votes
2 answers
8k views

How to extract part of a string between 2 delimiters, in Windows batch file?

I have a variable length string starting with START and ending with END as delimiters. I want to extract the string between START and END. I tried doing SET _result=%String:~6,-4% ECHO %_result% ...
0 votes
1 answer
2k views

Trying to rename files based on file size

I am trying to rename some MP4 files based on file size of mp4 files in another directory. I want to name all files with identical sizes to same name. Meaning if the file size of the source file ...
0 votes
2 answers
5k views

MobaXTerm: opening a new SSH session from Win CMD with logging

first topic here, so apologies in advance, if I am doing something wrong! Searching with various terms did not yield in useful results, so I would like to ask for your help. Is it possible to start a ...
4 votes
3 answers
29k views

How do I change date/time format via command prompt/powershell?

I'm trying to automate my PC setup as much as possible and I'm wondering if it's possible to change the date/time format via the command line. If yes, I would like to know the command.
75 votes
11 answers
47k views

Determine if command is recognized in a batch file

I'm writing a bat script in which I invoke a program (such as javac). For simplicity, I want to check if the command exists before I run it. i.e. If the command exists in PATH. For example, if (...
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 ...
1 vote
1 answer
3k views

CD not working in batch file

Creating a batch file to replace a file but I cannot get the command working. The command: cd "C:\Program Files\example_folder\" This command works from the command line but not when I run ...
0 votes
1 answer
8k views

Where can I find the xmodemsend command in TeraTerm

I have installed TeraTerm's latest version on my Windows PC. I was reading the help menu of the TeraTerm and they reference the 'xmodemsend' command to transfer a file over Xmodem protocol via command ...
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 ...
29 votes
5 answers
12k views

Why is my command-line hash different from online MD5 hash results?

On a Mac OS X v10.5 (Leopard) PowerPC, if I do: echo "hello" | md5 on the command line, the result is: b1946ac92492d2347c6235b4d2611184 But if I enter hello into one of the online ...
1 vote
1 answer
847 views

Time Machine backup, get last backup time using command line, without having to plug any backup disc and with no Full Disk Access?

I just want to get backup last time using command-line. With this two conditions (that the GUI, the graphical interface upper-right widget we all use normally, normally between the wifi icon and the ...
1 vote
2 answers
5k views

Typing in Command line (cmd.exe) is very slow

Text input from my keyboard in command line is very slow. The blink rate is also very slow as well. Using Win xp Sp3. Any help please?
4 votes
3 answers
8k views

Which SATA port is my disk connected to?

We have a computer with multiple boot drives, all of which contain the same software. The selection of the boot disk is via multi-position switch on the front panel. If disk 1 is selected, the disk ...
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 ...
23 votes
5 answers
135k views

How to specify password in ssh command

From the terminal I type: ssh user@ip and then it prompts for a password. Is there a way to specify the password in the ssh command itself?
1 vote
1 answer
6k views

Find the com port of a specific device on command prompt

I know we can find it out from the device Manager under ports. But I want to be able to get this info on command line so I can incorporate it in my python script. I looked at tools like WMI, Devcon. ...
1 vote
1 answer
4k views

Windows command line to run as the currently logged in user after starting command/batch script as another user within the same script?

I have a Windows batch script which is auto run at login as a particular admin user (not the same user that is logged in) for all standard users. Within the same script, I need to run a check on ...
6 votes
2 answers
742 views

Are there commands in PowerShell 7 to split the current window into four and request to run Python files in each of them?

Currently, I click + 3x while holding Alt to create four divided terminals within the same tab: In each of these, I need to run a different Python commnd: cd "C:\Users\Computador\Desktop\Test ...
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.
-1 votes
3 answers
255k views

How do I get C:/ on my command line [closed]

I am on Windows 10. What I am trying to do is load Adobe Dreamweaver extensions via the command line on Windows. I want to navigate to C:\Program Files\Adobe\Adobe Extension Manager CSx\ I am ...
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 ...
218 votes
9 answers
312k views

How can I find only the executable files under a certain directory in Linux?

How can I find only the executable files under a certain directory in Linux?
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 ...
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 ...
2 votes
1 answer
3k views

What is "2>" for in Windows console? (cmd.exe)

I've seen the following line in a .cmd file: ren fileA fileB 2> nul I know what ">nul" is for (to prevent any output from appearing), but what is "2> nul" for?
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 ...
13 votes
4 answers
13k views

Is there a tool to measure file difference percentage?

I am looking to compare two text files. Normally, I can just use diff to compare the two files to see the differences. This is great, except that I am more concerned with the percentage difference of ...
17 votes
3 answers
22k views

How to force ls terminal command to show results in Bytes while I have set the default to ls -h in bash profile?

I am following the snippet here to improve my terminal command in Mac OSX. It sets the default value of ls results to human-readable by exporting alias ls='ls -GFh' to bash profile file. This is very ...

1
2 3 4 5
262