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

1
vote
0answers
8 views

(On a mac) - VirtualBox not able to access the .vmdk file for a usb virtual machine

When selecting my virtual disk in virtualbox, the error reads as in the photo. I have done this successfully while "sudo -b"-ing the executable in the app, but I need the file to be under my user.
0
votes
1answer
8 views

Vim for windows CLI installation arguments

I am accessing a Windows server remotely and only have a powershell CLI. After downloading vim for windows with: Invoke-WebRequest https://ftp.nluug.nl/pub/vim/pc/gvim81.exe -OutFile "gvim81.exe" ...
0
votes
1answer
18 views

How to diff two files with same number of lines, and get only different lines

Given 2 files which have the same number of lines, is it possible the get a diff with ONLY change (c), in other words, WITHOUT additions (a) and deletions (d)? For example, here are 2 files with 10 ...
0
votes
0answers
17 views

Command to clear taskwarrior server?

During the debugging of this script https://github.com/a-t-0/PublicCodeLibrary/tree/master/AutomationAndSystems/Taskwarrior/CustomSort, I am trying to remove the task data from my taskd taskwarrior ...
0
votes
0answers
10 views

Avoiding Windows Security Popup When Calling IE from the Command Line

On a system for automated test that is configured to company standards when I open IExplorer using "%ProgramFiles%/Internet Explorer/iexplore.exe" I get a Windows Security popup. The subsequent ...
0
votes
0answers
19 views

grep in python to get list of files

I am using grep in python to get list of files in sub directories that are of .py extension and i am using subprocess.check_output,but the command is taking very long to run, can anyone please suggest ...
1
vote
0answers
11 views

OSX terminal: how to move thousand of files that match a specific name pattern [duplicate]

I have some 70,000 files (basically duplicates) most of which match a name pattern like name(1).ext, name(2).ext .... name(10).ext. However among these files there are others named name (xwz).ext. ...
9
votes
2answers
143 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 -...
1
vote
1answer
36 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
1answer
40 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
45 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
31 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
66 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? [closed]

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
47 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 [closed]

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
24 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
442 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
23 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
40 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
88 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
40 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
39 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
29 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
21 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
17 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
8 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
17 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
18 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
30 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
67 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
743 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
20 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
87 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
25 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] @="...