Stack Exchange Network

Stack Exchange network consists of 174 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).

6
votes
1answer
77 views

If Powershell command separator is ; (semicolon), why does “date; dir” make dir output extra details?

I understand that semicolon is a command separator in Powershell. echo "hello"; dir gives this output. PS C:\> echo "hello"; dir hello Directory: C:\ Mode LastWriteTime Length Name -...
0
votes
1answer
34 views

Matching multiple path-components with `find`

Let's say I want to find all the node_modules folders in my Code directory: find ~/Code -name 'node_modules' -type d But what if I want to find all the setup folders, that themselves are inside test ...
0
votes
0answers
28 views

run as administrator doesn't elevate process

I am trying to run netsh wlan set hosted network mode=allow as administrator but when I run it from an elevated cmd, or powershell, netsh still replies that: You must run this command from a command ...
0
votes
1answer
30 views

SED - complex text deletion and pattern matching

I searched allot on SED. I'm new to using it. Managed to make a command that deletes a block of text between PATTERN-1 and PATTERN-2 (including the patterns) in a large (250mb+) text file. Now I have ...
2
votes
1answer
36 views

Running “net” commands with /domain flag outside of the domain

As a part of my work I sometimes connect to a network with an AD environment/Domain, and receive domain user credentials. However, my machine is not a part of the domain. So when I try to query the ...
-1
votes
0answers
27 views

Is it possible to replace conhost.exe with a later version (or ConPty) meant for W10?

I have a bunch of machines running on W8.1, which is obviously getting dated, but for various reasons I cannot update these machines for some time, but I would like to take advantage of the new ...
1
vote
1answer
22 views

Exclude single executable from path

I have a small problem with my path environment on windows 10. I'm running CLion, which uses CMake, and it spits out this error: sh.exe was found in your PATH, here: C:/Program Files/Git/bin/sh....
-1
votes
1answer
56 views

Creating Primary partition Error

My USB is shown on disk management as "unallocated". I ran: chkdsk /f /r d: it told me that my drive is RAW type. So I tried using diskpart. My volume is shown as unusable so I selected it and ...
-1
votes
0answers
15 views

Rename a subfolder and apply attributes to it in batch? [on hold]

Alright, so all i'm trying to do is rename a subfolder in a folder with a .bat file. The line looks something like \tests\Area51\Sector1 and the .bat file has to be in the tests folder. I've ...
0
votes
0answers
46 views

Windows 10 CMD responds extremely slow

My command line is so slow. I mean even ruby -v takes 10-13 seconds to return version and more complex commands like running rails s is a pain. I tried chkdsk and no problem found. Tried to have ...
0
votes
0answers
21 views

how to check installed shell languages under WAMP in windows [on hold]

I have WAMP installed with windows 10. I use cmd as administrator. I can use shell commands at the command line. I do not know all the shell commands I can use. I want to know which shell commands ...
0
votes
0answers
12 views

In mac osx, I'm trying to write a spinner that takes in a command and spins while running it

The usage would be for long commands called from the command line programatically. In my case php will be calling yarn update. If there is a space in the command I can't figure out how to run it. I'...
0
votes
0answers
19 views

CMD Fileless equivalent of < redirection

I have a batch that wraps AnyConnect Mobility Client CLI (vpncli.exe) and asks username and password to later handle them to vpncli. Simplified code: set /p user_id=Username: set /p pwd=Password: ...
1
vote
1answer
22 views

Excel command line switches - positions

I notice that when I enter : excel /r "c:\temp1\test001.xls" I get read only. When I enter excel "c:\temp1\test001.xls" /r I do not get readonly. When I enter excel /s "c:\temp1\test001.xls" ...
0
votes
1answer
16 views

Invisible directory names

When I do ls -l I get the picture below and I have no idea why. I know the names of the directories and I can cd to them no problem but can't see the actual names. How do I fix that?
1
vote
2answers
424 views

Start process in background at keybind (append `& disown` on Ctrl+Enter)

Let's say I want to open Chrome, Sublime Idea, etc. from the command line while maintaining the control of the terminal. Is there a way to append & disown to the command in Bash when you press ...
-4
votes
0answers
22 views

Windows Console Only Pre-Install Environment [closed]

I am making a fast installer script for Microsoft Windows OS's It basically replicates what Windows Setup does but in a fraction of the time, which is useful if you do a lot of virtual machines/...
0
votes
0answers
39 views

Supplementary Multilingual Plane and Windows console

Given this file: U+10480 OSMANYA LETTER ALEF 𐒀 Does any version of Windows have a way to output this correctly via the console (command line)? I have tried with: Windows 10 Windows 8.1 ...
0
votes
2answers
85 views

sudo !! equivalent on Windows cmd

I'm looking for a cmd.exe equivalent to Linux's sudo !! and other bang-commands such as !x, !?x, !!:p and !!* mentioned here.
0
votes
1answer
39 views

Can the command prompt not execute commands on paste?

I'm using Windows 10. Most often I copy/paste some command into the command prompt that needs to be modified say for example composer create-project laravel/laravel blog "5.1.*" I copied pasted the ...
0
votes
0answers
9 views

How do i query chrome cookies info using sqlite3? [duplicate]

When i go to chrome://settings/siteData the i look for the info: for example : I can see the value of the content for the session id manually. I tried to do the same from command line and the value ...
0
votes
0answers
19 views

How to record a webcam from the command line in Windows without using ffmpeg? [duplicate]

I want to record a webcam from the command line and save it into a video file. I can't use ffmpeg, I got an error from it: no jpeg data found in image. My webcam is called HP Wide Vision HD Camera.
0
votes
1answer
37 views

Powershell Invoke-WebRequest with Method Head allocate too much RAM

Problem found on server with Powershell v 4.0 (server with Powershell 5.1 they do not seem affected by the same problem) This a strange behavior of Invoke-WebRequest command. Take this example: For ...
0
votes
1answer
26 views

How to hide PsExec cmd?

I'm starting the PsExec using Powershell: Start-Process -FilePath "psexec.exe" -ArgumentList "-u user -p pass -accepteula -i -h cmd /c `"powershell.exe -NonInteractive -File myscript.ps1`"" But the ...
3
votes
2answers
49 views

Pipe executed command into the same output file of the command

I've had a look at various tips (ss64.com Command Redirection) and tricks but couldn't find an answer to my question: Question Is it possible to pipe the command I am going to execute into the same ...
0
votes
1answer
20 views

Is there a standard command to pause and continue or abort?

I am looking for what foo may be in: $ echo blah && foo && echo the sequel blah Do you want to continue? [y/n]: n $ echo blah && foo && echo the sequel blah Do you ...
0
votes
0answers
16 views

Imagemagick: stack images horizontally/vertically and match height/width

For example 1.jpg, 2.jpg which are of dimension axb, cxd. If I run something like convert +append 1.jpg 2.jpg out.jpg. I'd like the out.jpg be (a+c)xb or (a+c)xd. If I run something like convert -...
0
votes
1answer
38 views

Wifi: setting wireless region / registration domain

I'm unable to change the registration domain of my wireless adapter. I'm using the iw reg set/get command but only the global country gets the new value. The phy#0 stays with US. root@ccimx6ulsbc:~# ...
0
votes
0answers
28 views

Decrypt DVD to an ISO image on command-line

I want to decrypt a CSS encrypted DVD and get a plain ISO image as a result - using only command-line tools under Linux. I know of dvdbackup, but it generates a file tree, not a (decrypted) copy of ...
0
votes
0answers
7 views

xcode's libtool cannot find libfl.a

I get the following error when attempting to run make on my system error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /usr/local/...
0
votes
1answer
90 views

Is there a command to rename a music file with its meta data?

I’m a DJ and I’m renaming 5000 music files for future gigs. I’m looking for a way to rename these files in the format: [artist/artists name] - [track title].[file extension] all lowercase Is there ...
0
votes
0answers
62 views

Shrink (scale) an SVG image via command line, while preserving its size

How can I shrink the content within an SVG file from the command line? I'd like the output to have the same default width and height, but be smaller. I'd also like for the scaling to be relative to ...
0
votes
1answer
16 views

Open Chrome window behind all opened windows using CLI

I am using automated testing with Nightwatch + Selenium + Chrome. And since I am testing a WebRTC app I am opening multiple windows and switching them from one to another in tests frequently. This is ...
0
votes
0answers
14 views

Command line tool to apply replaygain to audio files

Using foobar2000, I have already calculated the replaygain info and stored them into the audio files(flac,ape,mp3) or their corresponding cue files. Now I'm planning to play them via a music server ...
1
vote
1answer
29 views

Using rsync to write specific data from a complex file structure

I am looking to use rsync to write log data to an external USB drive connected to a linux server. The command below is writing all data and not just from October. sudo rsync -av -r --progress --...
0
votes
1answer
65 views

How can I use a “here document” in the middle of a pipe?

I am wanting to generate some content using a heredoc as a template: passphrase=$(<passphrase) envsubst <<EOF apiVersion: v1 kind: Secret metadata: name: openshift-passphrase stringData: ...
9
votes
3answers
735 views

Windows 10 MSG command mystery

I'm an old-timer experienced Windows user from way back. My main computer is a Windows 7 Pro box. We bought a new PC for a new office; it of course has Windows 10 (Home) on it. I was doing some work ...
0
votes
1answer
19 views

When I change working directory in a script and execute it, the working directory only changes to specified path while in the script

When I change working directory in a script and execute it, the working directory only changes to specified path while in the script. Here is my script: #!/bin/bash cd /media/hard/drive/partitionX/ ...
0
votes
1answer
84 views

Windows 10: associate a command to “all” files

In windows machines, I need add a "right mouse" option to "all" data files (in concrete, all image formats and text files with extension .txt or .html, but add it to all files is also acceptable ). ...
1
vote
1answer
24 views

How do I recursively compress only certain file extensions with 7zip command line?

With what commands can I compress only certain file extensions with 7zip? e.g. *.txt and *.doc and *.docx (across subdirectories, so 'recursively') I read Compress only specific files from a folder ...
0
votes
0answers
26 views

Fzf: --bind fails to execute

I have pattern: "test" https://an_url_here I try to use fzf and bind ^m to open w3m with https://an_url_here, below grep command and xargs work perfectly with the above output on command line ...
-1
votes
0answers
20 views

Find duplicated files between two folders and subfolders

I need a CMD Batch Script to find and remove duplicate files in folder tree in separate folder. Example. .\test1\ oo.exe 01.dat 02.dat [...] .\test1\te\dat.big .\test1\te\[...] .\test2\ oa.exe 01....
0
votes
2answers
39 views

How can I create a new .reg file from the CLI

I'd like to create a new .reg file and add it to the registry, as suggested in this article. REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf] @="...
0
votes
0answers
12 views

Using XFreeRDP, is it possible to view active sessions before logging in?

a pretty simple question i was unable to figure out myself. We have 10 global users (anyone can use any user) that can RDP to a specific machine and use it for a certain function in our office (They ...
-1
votes
2answers
35 views

how to duplicate a folder and its subfolders in the same directory using cmd in Windows 10

I want to duplicate one folder with its subfolders in the same directory using the command prompt. But I am stuck as I cannot find a way to rename the duplicate folder. I have tried xcopy "TEMPLATE ...
0
votes
0answers
26 views

Windows command shell randomly prints block characters at output line endings

In my command prompt in Windows 10 (new console), I frequently see random cursor characters rendered at the end of some lines, depending on the load in other tasks. I believe this is associated with ...
-3
votes
1answer
44 views

How to access system logs [closed]

I need to find large amounts of text to provide data for a ML model (essentially for testing). I thought accessing various system logs could be interesting. So far I have tried playing around netstat,...
0
votes
0answers
16 views

sed's substitute function equivalent in Windows

I'm looking for the native windows command to execute something similar as Linux sed's substitute command as follow. Sed in this example was taken from UnxUtils Would it be possible to produce ...
0
votes
2answers
28 views

Extract .tar.gz files in different subdirectories

i have phenological data of different tree species, but they are saved by the bigger Treegroup. The output of find . -name *.tar.gzis: ./Tilia/PEP725_DE_129_070.tar.gz ./Tilia/PEP725_DE_129_071.tar....
0
votes
0answers
21 views

Display Windows's proxy setting via CLI

Is there a way to print out Windows proxy setting via CLI accurately? At the moment, I found 2 ways to do it, unfortunately when I compare with IE Lan Settings (GUI) it's not accurate. netsh winhttp ...