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
0answers
25 views

Store result of a command that requires input in Windows batch? [closed]

I know a similar question has been answered HERE. However this isn't working for me. FOR /F "tokens=*" %%a in ('mwinit -o') do SET OUTPUT=%%a The mwinit command requires the user to input ...
0
votes
0answers
8 views

Getting detailed information about the USB-C charger under macOS Catalina

On macOS Catalina, can retrieve system information about the AC charger unit (if there is one) via the System Profiler app, or with the system_profiler CLT – the latter of which can be invoked like so:...
0
votes
0answers
12 views

Add annotations for specific PDF pages using the command line [closed]

I have a PDF with 5 pages, and would like to add the annotations note 3 and note 4 at pages 3 and 4; where or how the annotations are styled doesn't matter. It should be an FOSS based solution.
0
votes
0answers
5 views

{message:Unauthorized} response to cURL command when issued from Java code on WAS server but is successful from Linux command prompt

I have a cURL POST command that works fine with appropriate response when issued from the Linux Command prompt or from postman, but when the same command is issued programmatically from the Java code ...
0
votes
0answers
7 views

Analyze the programs/commands frequency since boot up (command vs. PID histogram)

I would like to see which program got a PID most frequently and second frequently in my system since the last reboot. If I run top now, I can see the PID column and the COMMAND column but only for ...
0
votes
0answers
17 views

moving multiple files to different directory on FTP webserver

So i have this webserver with a folder of approx. 7000+ files/images/documents. I want to move around 2000 specific images to a different folder. I think i can use SQL to get the image names from ...
2
votes
1answer
41 views

Adding a line to the beginning of a BAT text file

There is a code that adds the line "WORD, 1234, A, B, C" to the beginning of a text file. After executing the code, an extra character "" is added at the end of the text file. ...
0
votes
1answer
48 views

How to use “find” to print the path instead of “grep” in case of matching file contents

For example, I need to print the paths of all the user's files that contain the word hello. Must use find Use the find command to search, and grep to print the path: find ~ -type f -exec grep -lis &...
0
votes
1answer
200 views

How do I download only the file names of webpages using wget on Windows?

I am currently using this command: wget -m https://example.org --limit-rate=25m --convert-links --timestamps --wait=0.5 --execute="robots = off" And it works wonderfully. However, I would ...
3
votes
1answer
56 views

Working cmd command not executing correctly when called via cmd.exe /C

I am trying to execute a one line command including a for loop by calling it via cmd /C. The command itself executes a forloop to check if a service is running (in this case JBoss) and exits with an ...
1
vote
1answer
40 views

Transfer a directory over ssh with sudo

I am trying to transfer a directory from a remote server(CentOS) to my local machine(Ubuntu) over ssh. There are two users : A and B. User A can ssh into remote server and has sudo access. User B owns ...
0
votes
2answers
24 views

How to determine the number of free bytes on a disk in Windows 10 on the terminal without elevation?

If I run this command: fsutil volume diskfree e: I get: Error: Access is denied. Only by manually opening an "elevated" cmd.exe does it output the actual output of the command. I need a ...
0
votes
0answers
35 views

How can I update the date of a renamed folder in batch?

The problem is when I start the script it will copy the folder and rename it and add the current date and time to the name. But while the script is running and changes in the folder were made it would ...
3
votes
2answers
39 views

How to get PowerShell to read line by line and pass it into another command?

A lot of the questions around the internet for this specific topic are oriented into BASH for linux, I was wondering if the same thing can be achieved using just PowerShell. On Bash, one can use: for ...
-1
votes
0answers
13 views

How to maximize an already minimized program using the command prompt [closed]

I have started a program "Matlab" which is initially minimized. After some time I would like to maximize it once again. Is this possible to do without the use of nircmd and other additional ...
1
vote
1answer
28 views

How to create a unextractable executable for a batch file?

I have tried a lot of Batch-to-EXE applications but none of them is secure. We can simply extract the source files using WinRAR and read the batch sccript. So is there any way to securely convert the ...
1
vote
1answer
18 views

WinRAR how to know immediately if a compressed file is broken or incompletely downloaded by command line

I have WinRAR and using Windows 7 OS. It shows errors immediately like "Cannot open < FileName >" for the files which downloaded incompletely or broken when we open. But when I search ...
-2
votes
0answers
27 views

How to skip iOS setup screens via command line on PC [closed]

I am making an application that needs to skip the iOS setup that appears when you reset the phone and boot it up for the first time. There are applications like iMazing and u3 tools that can do this, ...
1
vote
0answers
15 views

on the password prompt, the shell automatically adds a return after entering a character and displays authentication failed

logging in to an ubuntu 16.04 server via ssh. This has never happened before. The other user I asked seems unaffected by this. What could have happened? Also, when I try to enter my git credentials ...
0
votes
0answers
17 views

Windows: kill/pause a process/programm as soon as another programm is startet

Im automaticly syncing my changed files via onedrive. This is great to automaticly backup files but oftentimes it uses more than 20% of my CPU. Now im working in another very CPU intensive programm ...
0
votes
1answer
37 views

Are Wifi-Network data/credentials stored even when we forget it?

Does Windows store Wifi-credentials even when we forget it? I'm concerned about my Wifi-Network which I shared with a friend who is a real computer geek. Can he access the wifi password even when I ...
2
votes
1answer
301 views

How do I recover System files?

I used the attrib command to hide a file as system, something like this- attrib +s +h example.txt Is they any way to recover this file without knowing the file name and/or the directory? I mean is ...
0
votes
0answers
18 views

Ifconfig command doesn't show wifi adapter

I have a little problem. I have 2 wifi adapters at home (1 TP-link T2U AC600 plus and a TP-link T4U AC1300), I installed the driver and have acces to the internet. So I think the configuration went ...
0
votes
1answer
30 views

How rename files copied via Robocopy if it exist but with different modify date

I'm using Robocopy to copy files from a folder to another, i think my code will overwrite the file if it was existing on the destination folder and the timestamp was different, what im trying to do is ...
0
votes
0answers
15 views

Windows 7 VM error VERR_PATH_NOT_FOUND cmd

i have a windows 10 host and windows 7 guest, but every time i enter this command with or without the -partitions argument i get errors for context, i'm using an elevated PowerShell and an elevated ...
1
vote
2answers
28 views

How to make VLC actually remember what I tell it?

I keep being forced to select "Always on top" in the "View" menu in VLC. It forgets this setting the moment I close VLC. And then I have to repeat it again and again and again... I ...
0
votes
0answers
10 views

What is the equivalent of ufw in Windows?

Trying to connect to Digital Ocean from a Windows 10 computer and getting Connection timed out on port 22. I learned it is because the port is blocked and needs to be opened. This command sudo ufw ...
1
vote
2answers
66 views

How to make cmd read input with spaces as different terms/variables?

When I want my batch to get input, I use: set /p myvar=Type here: By running the code and inputting something like this with spaces: This is the input. Can I get the four words seperately assigned ...
0
votes
0answers
15 views

Editing Terminal promt with dynamic text derived from pwd [duplicate]

Question ported from StackOverFlow since it's more suited here. Short version Use this prompt to get this green color: With this line: export PS1="\w: \[$(tput setaf 2)\][GREEN]\[$(tput sgr 0)\] ...
0
votes
1answer
27 views

How to move mouse by xdotool in all 4 diagonal directions?

How to move mouse by xdotool to quadrant II or IV of the display? (What I mean by "quadrants".) Moving mouse by xdotool to quadrant I is working fine this way: mousemouve_x=100 mousemouve_y=...
0
votes
1answer
30 views

Shell history of *expanded* commands

Is there some way to get the actual expanded contents of a command-line that I ran recently? By this I mean the literal "argv", not the text before parameter expansion and similar steps. In ...
0
votes
1answer
26 views

Linux command to convert powerpoint (pptx) to pdf

I have a pptx file that I would like to convert to pdf. Is there a way to do it from the command line using linux?
0
votes
1answer
33 views

How do I edit this texconv “IMGtoBC3.bat” file so it “READS FROM & PRESERVES the directory structure when writing the ”resulting" dds files

How do I edit this texconv "IMGtoBC3.bat" file so it "READS FROM & PRESERVES the directory structure when writing the "resulting" dds files? Personally, I have a large ...
0
votes
2answers
43 views

Batch File That Keeps Other Batch Files Running

I run 3 .bat files on my computer at all times 24/7 for a business that I have. Every now and then they will close because of my internet drops due to the area I live in and they need internet to run. ...
1
vote
1answer
30 views

How to use vim to open files that begin with a plus sign (for example +foo.out)?

In my file system, I have some files which start with a plus sign. When I try to open these with vim an error is thrown. For example, when typing... vim +foo.out I get the following error... Error ...
0
votes
1answer
23 views

Start detached screen over SSH with bash command

I am attempting to start a screen session in detached mode over SSH that executes a bash command inside screen... #!/bin/bash set -e ssh jlroberts@10.0.0.202 "screen -wipe" sleep 1 ssh ...
0
votes
1answer
31 views

How can I export the Processes tab from Task Manager on Windows 10?

I have looked at the answers to similar posts, and though the question looks the same, the answers do not fulfill my needs. What I'm trying to do is capture the list of open Windows Explorer paths ...
2
votes
2answers
28 views

Running input from stdin through pipeline

I have a pipeline of (two) commands that I need to process input from terminal. With one command, this would be easy: grep "b" reads from stdin, which is terminal and prints lines ...
0
votes
0answers
19 views

How to Access MS Team Files from Command Line

Context: I would like to create folders and files for an existing MS Team from the command line as opposed to the GUI. I only have a beginner level understanding of the MS architecture. Question: From ...
1
vote
1answer
69 views

Get up-arrow key to only show unique commands? GHC Haskell

Haskell uses the GHC (Glasgow Haskell Compiler) which is basically a command line interface to compile and run Haskell. Like many popular CLI's, GHC allows you to use the up and down arrow keys to ...
0
votes
0answers
35 views

Why couldn't command prompt recognize ~dp0?

I'm having similar problems since months when I start batch files, but I was able to modify them to work by explicitly giving paths. Now Steam gave me this message, when trying to run a game for the ...
2
votes
0answers
34 views

how to run a command on background on command line and how to rerun it automatically [closed]

I have an windows server and I run a command on cmd with ffmpeg . I restream an hls with it . everything is good but sometimes because of source stream this command get stop . I want to know if there ...
0
votes
1answer
104 views

macOS|Unix combine multi-line .txt file into single line with no spaces? (no line breaks)

I've been looking around & I cannot seem to find a command or regex that will do a simple command of combing all linebreaks & spaces in a text file into one line. most of them either add some ...
2
votes
2answers
2k views

Why won't CMD on Windows 10 allow me to finger anyone?

Reading This Article: Digital Trends CMD Commands. I Found A command Called Finger. Trying it out on My System, Windows 10 Why won't it let me Finger anyone.. Says Connect: Connection Refused? Not ...
0
votes
0answers
26 views

How to automatically kill a process by name as soon as it is started?

Is there a way to automatically kill a certain (sub)process the very moment it is launched? I know that processes can be filtered by name and killed doing this: sudo killall -I -s SIGKILL <process ...
-2
votes
1answer
113 views

How do I use the command line to search for multiple characters at the same time?

Write a DOS command to display all files on drive C: whose filenames are 7 characters long and begins with the letters CHAR.
0
votes
0answers
18 views

tar & split remote files saving output locally remove “tar: Removing leading `/' from member names” message from output

This is a 2 part question. Ive made a bash script that logs into a remote server makes a list.txt and saves that locally. #!/bin/bash sshpass -p "xxxx" ssh user@pass ls /path/to/files/ | ...
0
votes
1answer
45 views

Batch script to read from text file and create incrementing number for filenames

I'm making a batch script where I download videos using ffmpeg. First it needs to read download codes from a text file (codes.txt) Then it checks the current directory if the same file exists, if it ...
0
votes
1answer
20 views

How do I stop a .cmd file from running and delete it from my oc [duplicate]

I downloaded a software yesterday and then installed it and during the installation I was meant to run a .cmd file as admin but anytime I connect my PC to the internet, it starts hanging, lagging and ...
1
vote
2answers
72 views

Powershell - How can I locate where Aliases and Functions are defined?

Background At some point in time, I know I created a file that defines some functions and assigns aliases to them. These are available in all powershell instances. The problem is, I can't for my life ...

1
2 3 4 5
227