Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
7 views

Using xcopy to append multiple files together

I have a folder with many subfolders containing .xmls and files of other file types. I want to take all the .xmls from the input folder and its subfolders and append them together into a single output ...
0
votes
0answers
16 views

Windows batch (.bat) file terminated automatically

I've tested the following code based on discussion here Unfortunately both codes (in .bat) has been terminated automatically and command prompt has been closed right after I executed it. What caused ...
0
votes
0answers
6 views

PostgreSQL: Entire text is displayed as broken text in CLI

Error screenshot 1 (Code page 65001) Error screenshot 2 (Code page 949) I've installed PostgreSQL on Windows 10, and almost every text is broken if I login to DB with psql -U postgres. At first, the ...
0
votes
0answers
6 views

capture packet using TcpDump and save it to file: PCAP [on hold]

i need to write one line command using TCPDUMP sthat: 1. Generates 5 min packet capture. 2. Save it in a folder with unique file name that constitutes of timestamps. 3. Filter Src/Dst IP and ports, ...
0
votes
0answers
12 views

How to incrementally and decrementally replace a word in a text file using any windows based language/software? E.g Python

For example: in a text file I have text text text text text . . . I want to replace "text" with text1 text2 text3 . . . text100 text1 text2 text3 . . . text100 . . .
20
votes
2answers
3k views

/bin/ls sorts differently than just ls

$ ls |sort xyz-0.0.1-1554490900.rpm xyz-0.0.1-1554745305.rpm xyz-0.0.1-1554751021.rpm xyz-0.0.1-1555513460.rpm xyz-0.0.1-1555951745.rpm xyz-0.0.1-1554323568.rpm $ /bin/ls |sort xyz-0.0.1-1554323568....
0
votes
1answer
16 views

Using powershell to identify process ID, Name, and arguments used to start

My Issue: I need to identify the process ID of a specific process that is running. My problem is, I run a lot of processes through cscript.exe, so identifying the ID for a ton of "cscript.exe" ...
0
votes
1answer
21 views

How to use the move command on Windows, to move all files inside a folder when using quotation symbol?

I currently have these two folders: oldFolder news info.json newFolder news info.json I want to use the move command, to move all files in the oldFolder to the new Folder. I have tried this: ...
0
votes
1answer
19 views

findstr DOS Command's multiple string “A B” or “B A” argument

I am using findstr /c:"A B" *.txt "A" and "B" are single words (names of two team members) in a text file, like "Miller Smith" etc. But now we encountered that sometimes we have the sequence "B A" ...
0
votes
1answer
43 views

Move files into a folder based on only part of their name

I have a bunch of files that I am trying to organize into folders based on the first 11 characters (Ex. X-01234-567) and some of the files have description after these numbers that help to identify ...
0
votes
1answer
51 views

Python code executes correctly in Anaconda prompt but crashes in PowerShell

so i have this weird problem: i'm making myself familiar with the Rest-API from https://haveibeenpwned.com/API/v2. I wrote a small Python script to check for hashes. When I run it in the Anaconda ...
0
votes
0answers
17 views

Ncomputing PC fails to to get login screen [duplicate]

EDIT STARTS: I'm unable to get login screen it does not appear now. PC is restarting again and again and it says "repair ....." but when i choose repair option it fails to repair it. Any keys like F8, ...
0
votes
0answers
13 views

Xiaomi WiFi Repeater 2 change SSID by Command Promp

I install "mi home app" to my Samsung Grand Prime which its Android is 5.0.2 and I can't change Wi-Fi repeaters SSID by the "mi home app" that I installed, how can I do that through my Windows 10? Is ...
0
votes
1answer
29 views

python.exe is 0kb and cmd gives “This app can't run on your PC. To find a version check with the software publisher.”

I'm using windows 10 64-bit. I had python 2.7 (python-2.7.15.amd64.msi) running normally on my PC from October 2018. Suddenly, when I execute python in cmd, I get the message: "This app can't run on ...
0
votes
0answers
10 views

Open Application with different icon from command-line

I have different configurations for my emacs set up and use a different alias from the command line to open each. Something like this: alias dm="open -n -a /Applications/Emacs.app --args --with-...

15 30 50 per page