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,076
questions
1
vote
2
answers
264
views
How to check If Windows game mode is currently active? [closed]
Is there a method to detect if Windows Game Mode is currently active (i.e. the user is playing a game — not is game mode enabled)?
I've searched the web a fair bit but only managed to find a few ...
0
votes
1
answer
70
views
Why does a Windows program not work for a certain user, but it works for other users?
I installed ExifTool on my parents' computer running Windows 10. I extracted the zip file, renamed exiftool(-k).exe to exiftool.exe, then moved exiftool.exe to C:\Program Files (x86)\ExifTool. Then I ...
0
votes
0
answers
176
views
Windows command prompt cannot start
When I run cmd in Win+R, Windows terminal starts, and instantly closes again. I do not have an AutoRun (checked registry and tried cmd /d). When I start an application that spawns a console, the ...
0
votes
0
answers
123
views
MSI with Windows 11 installed unable to log in error 0xd000a002
I'm having a problem with my MSI Summit E13FlipEvo A12MT-019IT laptop with Windows 11 installed. For a few days I haven't been able to log in by entering my pin and password even though I know that ...
0
votes
0
answers
111
views
Command line disabling of Incognito on a Chromebook
I'm trying to permanently disable incognito mode on a chromebook at the command line level. I'm utilizing a remedy I found here: https://robots.net/tech/how-to-disable-incognito-mode-on-chromebook/
...
0
votes
1
answer
173
views
numpad enter remapped in new macOS updates for alacritty
I have been having annoying problems with my terminal Alacritty. In macOS after recent updates my numpad enter is not giving me what I would expect when I press it.
Normal Keyboard enter.
❯ whoami
...
0
votes
1
answer
212
views
Windows tar command: exclude folder in current folder but not subfolders
I am trying to archive some folders with the tar command in Windows, and I would like to exclude a directory in the current folder, but not in subfolders.
The example below is using the technique ...
0
votes
1
answer
77
views
remove duplicate character from string in pure bash - works in CLI but does not work in script
I want to remove all duplicate minuses from a string using pure bash (no sed/awk/etc). This works great in CLI:
s="com---strig-3-1080p-----mp4"
echo "${s//+(-)/-}"
com-strig-3-...
0
votes
1
answer
72
views
How to run `nvm` for Windows through SSH?
I'm on macOS and try to run nvm on a Windows host via OpenSSH. I installed nvm via scoop install nvm on my Windows remote. The environment variables are set and where nvm resolves properly, but trying ...
0
votes
0
answers
106
views
Win 10/11 Mapped drive set with net command doesn't show in Windows Explorer
I'm trying to simplify my network mapping experience in Windows.
I'm used to fstab in Linux and having to set NAS shares via a file (which I much rather prefer than gui and clicks). So instead of ...
0
votes
1
answer
356
views
How to invert an SVG image?
I’m searching for a solution (in Linux console) which “inverts” an SVG. It shall take an input .svg and generate output .svg with multiple shapes, each one filling a single transparent area. And vice ...
1
vote
1
answer
264
views
How to get last modification date timestamp in "DIR /S /B" result?
In the early days of Windows (3.1, Windows 95) there was a wonderful feature, called "Find", which could be used for finding files on your computer.
Some *** has decided to remove this ...
0
votes
3
answers
71
views
display path to files with same names
with this command in Terminal:
ls -R |sort | uniq -d | sort -r
I can display a list of files with the same names located in the running directory and subdirectories.
But I would like to display also ...
1
vote
0
answers
57
views
How to command pv (Pipe Viewer) to work with diff?
using:
OS: Kubuntu 22.04.3 LTS x86_64
diff (GNU diffutils) 3.8 Copyright (C) 2021 Free Software Foundation, Inc.
pv 1.8.0 Copyright 2023 Andrew Wood, pv = Pipe Viewer
commands to display above:
...
0
votes
1
answer
198
views
How to Batch Apply Multiple Commands? FFmpeg
I have three commands that I've got to work individually for a set of videos, but cannot get them to apply together. I need to apply all three of these things to every video.
1) add audio, 2) speed up ...
5
votes
1
answer
89
views
Less --hilite-unread prints carriage return ^M on blank lines
When printing files with Windows line endings (CRLF), less shows carriage return ^M in blank lines when option --hilite-unread is used. Lines with any text display correctly, skipping the carriage ...
0
votes
1
answer
88
views
Errors while reading policies from this GPO, not all policies are displayed
I am working on implementing an automatic Quality of Service (QoS) policy creator using the "New-NetQosPolicy" PowerShell command. I have a C++ script that executes this command to limit the ...
0
votes
0
answers
26
views
Robocopy /MOVE, directory\tree not recreated, Win-11\Home
The line below previously worked with Win-10\Home; dir\tree remained intact.
robocopy D:\ A:\Bak_Up /E /ZB /dcopy:dat /LOG:A:\Bak_Up.log /TEE
By comparison, using Win-11\Home from the below .bat, ...
0
votes
0
answers
27
views
switching window keyboard shortcut with screen window management on MacOS
all
I used to be a linux user, now I am accessing a server from MacOS, Ventura. I have remapped my Mac Keyboard by switching the ctrol and command keys. However, I came across some problems with the ...
1
vote
1
answer
542
views
Writing a batch script to copy files based on date
I have a folder on a local PC that updates files through Dropbox. I have created a batch script that runs through a scheduler each day.
So far it checks to see if a folder is empty (C:\TheGlenFTP\...
0
votes
0
answers
89
views
Wireless LAN adapter Local Area Connection *13 and *14 not connected, how do i connect it back?
This is what I see:
I am trying to change my IP address using ipconfg/renew, but it is not allowing me to because my Wireless LAN adapter Local Area Connection *13 and *14 are not connected, can ...
1
vote
2
answers
198
views
Copy single file in to sub folders of destination root folder
I need to copy a single text file inside a (source) folder in to all (480) sub folders of another parent folder.
To keep it simple (I will amend the correct paths later) as I try to work out how to do ...
3
votes
2
answers
3k
views
Merge multiple files into 1 file with a newline character between the contents of each file in command line
I've got for example 2 files with the contents
test.txt
1
test2.txt
2
I want to merge these 2 files into one file.
I saw on related questions that it was recommended to use
type *.txt > merged....
0
votes
2
answers
334
views
Xcopy: Copy last modified file from folder
I need to copy the last modified file of a particular extension from a folder. For example a folder contains:
File1.cas
File1.txt
File2.cas
File2.txt
File3.cas
File3.pptx
...
File100.cas
File100.pptx
...
0
votes
0
answers
139
views
MySQL is not connecting with server
I am currently using MySQL 8.0.36 on Windows 10. Today, when I started my computer to work on SQL, I encountered an issue where it displayed 'No connection established.' Subsequently, I attempted to ...
-1
votes
1
answer
57
views
What is causing the xcopy file from having an error in it?
I am new to xcopy. I am trying to move a file that is in excel format to a new destination and as a csv file. I have to do this so that the DMExpress ETL job can move the file and then read it. This ...
1
vote
1
answer
188
views
Searching for a string in a specified file extension with conditions
I'm currently grepping a directory looking for a specific string that is only present in .txt files. However, I'd like to expand my grep to only return values where the directory contains specific ...
0
votes
2
answers
421
views
Find and delete files with linux command line
I want to delete all files containing "chrome".
I have this command on linux :
find . -type f -name '' -print -delete
after name I don't know what to put.
I tried *chrome* or *chrome*.*...
1
vote
1
answer
617
views
Batch file getting "The system cannot find the path specified"
I have been working on helping to resolve a batch file error per the title. It is attempting to run an .exe and output a file to a UNC, but keeps failing to find path specified.
"C:\program files\...
0
votes
1
answer
478
views
How to find cpu spike for the past 2 days?
I was trying to find the linux command to show the cpu spike for the past 2 days.
I was able to get the CPU% with sar command sar -f /var/log/sa/sa$(date +%d -d "2 days ago") but it is not ...
0
votes
1
answer
39
views
pipefail over ssh in linux
set -o pipefail is not getting evaluated correctly on the remote host if the set command is used in ssh command.
Example
ssh hostname "set -o pipefail; false | true; echo $?" - gives 0 (Not ...
1
vote
0
answers
216
views
How to tell VLC to use a different set of configuration files? [closed]
I have a 3 monitor setup. I want to run VLC 3 instances to 3 different monitors.
I setup my preference and copied the vlcrc and vlc-qt-interface.ini file to a folder say vlc2 and I tried running a ....
0
votes
1
answer
578
views
Delay in Command Prompt startup After Windows 11 Update
I'm encountering an issue with Windows 11 where there's a noticeable delay (about 2 seconds) in the text appearance when I launch the terminal. The terminal window itself pops up right away, but the ...
2
votes
1
answer
623
views
How to extract the timestamp (PTS) from the specific frame?
My input is a ts file. And I'm trying to use FFmpeg to extract the timestamp (PTS) from the specific frame index. I have tried the following command ( I have replaced the [FRAME_INDEX] with 5), but it ...
-1
votes
1
answer
52
views
How to rebase-file in Inkscape
I am trying to get Inkscape to rebase (reload) an SVG file when my script generates a new version of the SVG. According to the 1.3 Release Notes there is a "New action 'rebase-file', which can ...
0
votes
1
answer
667
views
Open multiple pdf files in separate staggered windows in a single app on a Mac
How can I open from the command line on a Mac more than 15 pdf files, 1 file per window, in separate staggered windows in a single app?
I am using Preview as the default pdf viewer. I have not ...
2
votes
0
answers
38
views
Is this a good way for knowing if the code has changed after submission to a customer?
I'm looking for a way to see if any files have changed once I submit code to a customer. Usually, I'd check the hash on a git commit or gpg sign a .zip file. I'm looking for a way to do this "in ...
0
votes
0
answers
86
views
Can I get the real CRC of RAR-compressed files?
In RAR5 archives, the CRCs of files seem to be hashed again with the modification time of the corresponding files (so the answer to this question doesn't work).
I EITHER need the real CRCs from the ...
1
vote
2
answers
359
views
Exclude files with no extension - XCOPY or ROBOCOPY
I am trying to build a script that can copy folders, subfolders and contents from one drive to a backup drive. There are several files in each folder, subfolder. The condition I need to meet is that I ...
0
votes
0
answers
61
views
Zipping a folder and sub-directories not working without sudo?
I wrote a python script using Amazon's AWS Boto3 SDK to download files from an S3 bucket and puts them in a folder (in a directory within my home dir). For reference, the function I used was the s3 ...
0
votes
1
answer
67
views
Rename File with dashes Windows Command Line
So this works:
File1-suffix.txt
ren "*-suffix.txt" "*-newsuffix.txt"
File1-newsuffix.txt
But this fails:
File1-suffixA-suffixB.txt
ren "*-suffixA-suffixB.txt" "*-...
0
votes
0
answers
40
views
How to run a single command via ssh to WSL2 [duplicate]
I'm trying to run a command from a non-Windows device that looks something like this:
ssh me@host 'cat file' > file
host is a Windows 11 box that is configured to SSH directly into a WSL2 shell. ...
2
votes
1
answer
932
views
Command Line decryption of aes-256-gcm no-longer working after OpenSSL updated
Late last year (2022) I encrypted a file using OpenSSL using terminal on my Mac with a very simple openssl enc command and was able to decrypt using this command:
openssl enc -d -aes-256-gcm -in ...
0
votes
1
answer
556
views
Is it normal for Ubuntu (WSL) to take up 40GB of space?
I've tried running this to cleaning out docker images, etc… with this command:
compact vdisk
The filesystem allocation is 1007GB and only 4% is used.
How do I fix this?
All the forums and questions ...
2
votes
2
answers
676
views
What is the command line shortcut to uncomment a previously commented line?
Alt+Shift+3 can only comment out, on subsequent invocations simply adding multiple comment characters (hashes) instead of toggling on / off the comment. How to uncomment a previously commented line or ...
0
votes
1
answer
99
views
Output of atool -l for large archives
The command atool -l my_archive prints the directory structure and files of my_archive to the command line. This is very handy if the archive contains only a few files. However, if there are many ...
0
votes
0
answers
62
views
How to export a text file from SQLite3 with CLI Kubuntu
Unsure if it is even possible to get a human friendly text file from this SQLite3 file with CLI (Command Line Interface) Terminal with Kubuntu.
using:
neofetch --stdout |grep 'OS:'
OS: Kubuntu 22.04....
0
votes
0
answers
402
views
Powershell prompt freezes
On several boxes with Windows 10 or 11, the PowerShell command prompt regularly freezes For several seconds during a session, at times 30 seconds or more.
The keyword buffer works ok, but after ...
2
votes
1
answer
522
views
create symlink to a batch file
I create a symlink to my .bat file (test.bat)
mklink /D mycode test.bat
The problem : the symlink won't be recognized as program that I can run :
'mycode' is not recognized as an internal or external ...
0
votes
0
answers
48
views
Remap Super+w to up key
I am using Linux mint 21.2 . My laptop up arrow is not working. Please guide to set(remap) Super+w as up key. I want to use it system wide specially with bash.
I have tried the following script by ...