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
1
vote
1answer
17 views

How to hide or show all desktop icons from the command line

Without a reboot. There's a way to do this from the UI, but I'd like to be able to do this automatically. Essentially - how do I toggle this checkbox from the command line: I would like to change ...
-1
votes
0answers
8 views

Is there a tool for resolving folder merges intelligently? [closed]

I want to be able to pass a couple directories to a command line tool and get back a list of options for merging the two folders, based on their contents. I need it to resolve situations where a ...
0
votes
1answer
26 views

Minimalist way of sending plain text to another computer

I'm new to powershell and windows, I want to know a simple and elegant way of sending small size plain text to another computer. I know you could do this very easily in Linux/OSX shell using: ls | ...
0
votes
1answer
12 views

Remove new line from batch prompt

I have the following prompt: PS1="\[\033[s\033[0;0H\033[0;41m\033[K\033[1;33mCWD:\w | \d | \t | CM: \# | \V\s\033[0m\033[u\] <\[\033[0;32m\]\u@\h\[\033[0m\]>\$" Everytime I type a ...
0
votes
0answers
9 views

Folder lock .bat script doesn't work with a non-empty folder

I am using the following script to lock/unlock folders on Windows 10: cls @ECHO OFF title Folder Locker if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT ...
0
votes
0answers
15 views

FFMPEG is too slow in youtube-dl

I am creating a GUI for youtube-dl(at first I created for myself because none of others free video downloader programs was satisfactory for me but now I want to deploy it and share it with people). So ...
-1
votes
0answers
16 views

How to run multiple services from bat file

I would like to run selenium server from bat file. It means start hub and two nodes under the hub. On Ubuntu I have this script to do that: java -jar $jarFilePath -role hub & java -jar $...
0
votes
1answer
22 views

Cannot clear history of cmder / conemu

On Windows 10, I want to clear the entire history of the cmder /conemu command and bash window commands. However, I cannot delete even if I use the following approaches: Open .history file in %...
0
votes
0answers
6 views

linux remap space key to shift if pressed alone without xmode

os Linux, console without running x (windows gui etc.): I am looking for a method to use the space key as shift if pressed together with another key [a-z,0-9] xmode, xcape, Autokey ... all imploy x, ...
0
votes
0answers
17 views

How to run a Python program in Windows 10's taskbar notification area? [closed]

I wrote a backend Python program (it provides an API to a frontend of mine) and I would like to run it in a user-friendly way (the user is myself, so it does not have to be foolproof) through an icon ...
0
votes
0answers
17 views

How to check number of parked cores in command line (win, lin) via ssh

I'm wondering how to check number of parked cores via CMD on Windows remotely, via ssh. I'm also using cygwin there, so bash scrips would also help. I tried to look for answers but it usualy directs ...
-1
votes
0answers
30 views

elegant way to mount multiple disk images

I have a folder with over 100 dvd .iso disk image files. I would like to mount them all I can mount them 15 at a time natively to separate drive letters in windows 10 pro, but this is a lot of drive ...
2
votes
0answers
28 views

Access Denied for file; can't view/edit/delete file even after taking ownership

I have a set of Android Studio files that I cannot figure out how to "take" ownership of. I initially tried via the windows GUI prompt (right click -> security tab -> advanced button -&...
0
votes
0answers
26 views

Create virtual serial port (COM <-> TCP) via terminal on Windows 10

Context I am working with a module built around a headless Raspberry Pi CM3+, the only form of interface with which is an ESP8266 chip (bear with me, the question isn't about either of these) which is ...
0
votes
0answers
37 views

Deleting a file on the command promt does not work

I want to programmatically delete all the files in some folders periodically. I tried to delete them with the "del" command and even with the /f option but the file just stays in place. cmd....
0
votes
1answer
47 views

WSL translate W10 CLI switches into Linux?

I'm trying to install Veracrypt and run it (mount volumes, etc.) from a script run in WSL (Python but can call a BASH script obviously). As documented here, I've encountered a problem trying to use ...
-2
votes
0answers
38 views

Is there any way to mirror an entire Online Dictionary website?

I want to mirror https://dictionary.cambridge.org/us/ to my local directory to read the definitions offline. Is there any way to do it with the wget command?
2
votes
1answer
39 views

How I can rename txt files according to first line of text file? [closed]

I have multiple .txt files and I want to rename them as first line text they contains. First line in every text file is some number and text Example ParagraphL23 I want my text file to be renamed as ...
0
votes
2answers
44 views

Download multiple pdf files by using cmd (Windows Command Prompt)

I'm looking for a way to download multiple pdf by using a "single" command in cmd (e.g. from here). So far I learned how to download a single file by using: curl URL -o name.pdf EDIT: I'd ...
0
votes
1answer
41 views

How to use patch command in WinSCP?

I need to apply this patch to my WordPress website. It seems that to do that, I need to SSH to my hosting and use Unix command patch < path_to_patch. However, since I'm using a shared hosting, not ...
0
votes
1answer
20 views

Accessing Windows “current directory” per drive using Linux path syntax

I’m on a Windows system, using the cmd shell and running the excellent Linux-style command-line tools such as grep and diff that come with Git for Windows. These tools expect file and directory ...
0
votes
1answer
24 views

Command Line utility to see CPU Usage of a program/command (Windows)

I'm using a Win 10 system and am unfamiliar with the command line arguments. I tried this solution but the output for each process looked like this "\\JESSICAC-WS\Process(procname#1)\% Processor ...
1
vote
0answers
38 views

Linux equivalent of dism/sfc?

What is a bash command that does something very similar to what dism and sfc do? I want to know what Linux command I can use to check system file integrity, and automatically repair the system files ...
0
votes
0answers
35 views

use echo to write to file and include single quotes

I have the command here doctl compute ssh testdroplet --ssh-command 'echo -e "import http.server\nimport socketserver\nfrom http import HTTPStatus\n\nclass Handler(http.server....
0
votes
2answers
29 views

direct link to windows 10 defender exception list

Might look like a stupid question, but in the good old Windows7 there where direct cpl "commands" you could paste in the "Run..." window to jump directly to a specific applet in ...
0
votes
1answer
41 views

Make batch execute command on each line in my multiple files?

I have the following bat: echo >> "log.txt" setlocal for /f %%i in (NAMES.txt) do ( for /f %%j in (HOST.txt) do ( ...entire batch processing ) >> "log.txt" ) &...
1
vote
1answer
35 views

Using CURL to send multipart/alternative email WITH encoder=quoted-printable. How?

Below is an example of how I currently send a multipart/alternative with CURL. I write this email in a text editor, save it to a file and use CURL to send the whole thing. To: "John Connor" &...
0
votes
1answer
23 views

Programatically start cmd with elevated rights

I have a bunch of JavaScript applications which all require a different version of Node.js. I have installed nvm for Windows and now would like to automate the process of starting them all with one ...
0
votes
0answers
39 views

Remove duplicate lines from lots of files recursively

I have a directory tree of a few thousand folders consisting of an ungodly amount of total lines - about 2 or 3 times my system's memory. I could have run uniq or sort -u inside of a for loop but I ...
0
votes
1answer
37 views

How to check Windows Defender status via the command line?

How can I check and make sure that all Windows Defender shields and protection are on/active and that everything has a green tick: via the Windows 10's command prompt? Edit #1: Per @JG7's and @...
3
votes
0answers
49 views

Windows 10's SSH Client can't paste tilde and backtick

I'd like to use Windows 10's SSH Client so I don't have to install other programs to ssh but it is impossible for me to paste the tilde character (~) and the backtick (`), they are just ignored. By ...
0
votes
1answer
45 views

Powershell Download text file in real format

Hi i am trying to download a text file using Powershell Invoke-WebRequest method Invoke-WebRequest http://www.example.org/script.txt -Outfile DL_script.txt content of script.txt: cls @echo off ECHO ...
0
votes
1answer
21 views

Setting up different console entry point for different environments

I frequently work in lots of different multi-tool environments depending on what task I'm doing. C++ native windows dev requiring LC, NMake etc. Node.js env with python3 C++ Mingw dev requiring GCC, ...
0
votes
0answers
23 views

Twitter account hacked- advice [closed]

It’s been a few days and I have been unable to access my Twitter account. It’s seems like my account might have been hacked. The email which is Linked to my Twitter account has been changed and number ...
0
votes
0answers
11 views

Access CodeBase from GitHub

Not sure if this is the right site - please let me know if not. I am trying to utilize open-source code from github -- https://github.com/LibVNC/libvncserver. Requirements: GCC CMake My Attempts: I ...
0
votes
2answers
32 views

Command Prompt extract jpg files with full path

I need a batch command to list all files (with extension .Jpg, .Txt) here is one command dir /r /s /b output of command: C:\Users\vb3\Desktop\docs\news.mp4 C:\Users\vb3\Desktop\docs\speech.mp3 C:\...
0
votes
0answers
21 views

Using ICACLS to only allowing Administrator to access a folder. All other users to be denied access

I need only Administrators to be able to access a particular folder. None other than Administrator should be allowed to access that folder. This has to be achieved using icacls command. I have used ...
2
votes
1answer
20 views

Create a shortcut using batch with quotes in the Target

Based on: How to create a shortcut using a batch script? I can't figure out how to write this batch so all the quotes are in the right place and create the shortcut file. I used the above info as ...
0
votes
0answers
18 views

Git bash is not serving page properly

I am in a coding boot camp. We are serving through the Git Bash terminal. We will create directories through the git. We then “code .” enter to bring up VSCode. However, we are told to “serve” through ...
0
votes
0answers
29 views

Start a Python app in a virtual environment, without any extraneous windows

OS: W10 (version "20H2"). I have a PyQt5 project which runs in a Python virtual environment. At the moment I run it with a .bat file like this: call pyve D: cd "\My Documents\software ...
0
votes
3answers
52 views

Is there an elegant way to move all sub-directories in the current directory to a new sub-directory?

I often run into the following situation. I am in a directory with several sub-directories like so $ls a b c d I would like to archive directories a-d by moving them into a new directory at the same ...
0
votes
1answer
20 views

Chromium and Chrome conflict within start command

I have both Ungoogled Chromium and Chrome installed on my Windows system. I have some batch script launching certain profiles in Google Chrome using the start chrome command, with flags. Since I ...
0
votes
0answers
7 views

Reverting the time after using the DATE command to change it in windows?

I am using the DATE command to change the system date, what is the easiest solution to revert back the time without writing a batch script? i can run multiple commands but i don't want it to be batch ...
2
votes
1answer
77 views

How to batch delete the redis keys from local machine and through a jump machine inside kubernetes cluster?

I need to delete some keys in my redis cluster which can only be accessed from a jump machine deployed in the kubernetes cluster. So if I know the key I can delete it by the following command without ...
0
votes
0answers
11 views

Bash Command to Download Latest Anaconda Install Script & Install Silently For All Users

Quite often, I have had to manually look at Anaconda website to get the link for the latest install script, then manually download the script, execute it and accept the agreement to complete the ...
0
votes
1answer
15 views

How to resume a command pipeline in Ubuntu after accidentally shutting the program down?

I am still a beginner in all of this, which is why I'll describe as well as possible. I have been running a pipeline in Ubuntu for more than a day and just accidentally closed the Ubuntu window. The ...
0
votes
0answers
10 views

Starting a child process without inheriting high DPI compatibility settings

My situation is: I'm on Windows 10, system scaling set to 250%, display size 3840x2160. I have a program (Qt Creator) that can be configured to launch other external tools. External tools are ...
0
votes
3answers
40 views

Windows command dir lists files with absolute path, relative path required

I would like to list all filesnames of all files with a specific extension in a directory structure and write this to a file. What I have reached: dir /B /S *.ext > list.filenames This gives me a ...
0
votes
0answers
24 views

Close specific file in Acrobat Reader via the command line

I am working on something questionably useful (because better executions exist) which is a Sublime Text 3 PDFLaTeX build system with preview. I want to open files in Acrobat Reader, and so far all is ...
0
votes
0answers
51 views

Youtube Command Prompt

I tried to download a youtube video with the following command: C:\Users\[me\OneDrive\Desktop\Test>youtube-dl -fURL I've also tried: C:\Users\[me\OneDrive\Desktop\Test>youtube-dl -f[URL] but I ...

1
2 3 4 5
232