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).
3,127 questions with no upvoted or accepted answers
10
votes
1
answer
2k
views
How to make robocopy delete excluded files in destination directory
I have a cross-platform build toolchain which copies some folders to destination. I use robocopy on Windows and rsync on macOS because they support console progress output. The commands were in this ...
9
votes
0
answers
13k
views
What’s the command line equivalent of strace on Windows?
I need to | findstr SomePATH in order to search if a program access and close immediately a specific path. On Linux, I would use myprogram | strace 2>&1 | grep SomPATH.
But what’s the ...
9
votes
0
answers
2k
views
How do I install Nix on a custom directory?
I have been trying to follow the Nix wiki to install Nix on a custom path /scratch/gopinath/nix. The /nix path is not accessible to me due to the restrictions on the system provided by my university. ...
9
votes
1
answer
3k
views
Unintentional vi mode in iTerm on Mac?
I occasionally find that while working in iTerm the default Readline key bindings are replaced with the vi keybindings.
For example, I will try to go to the beginning of the line with ctrl-a, and ...
8
votes
0
answers
2k
views
How to change windows settings programmatically?
The following are the categories of settings in windows:
Each has their own set of sub settings (sometimes nested too), as shown in the following picture:
Whenever I format my computer I change a ...
8
votes
0
answers
2k
views
Stopping creation of .localized files
Some folders on my new Mac has .localized files in them.
I know they are related to localization (duh), but I don't need that, in fact I specifically want everything file system related to be ...
8
votes
0
answers
1k
views
VBoxManage: error: Cannot read the partition information from '/dev/disk0'
I'm trying to make a partition .vmdk file for Virtual Box. Basically I want to boot my bootcamp partition box up in Virtual Box. But I get the following error when I try to make the .vmdk file
...
8
votes
1
answer
10k
views
How to quickly & easily toggle touchpad on and off on a windows 10 laptop?
I am wondering if there's a way to easily toggle the touch-pad on and off on a windows 10 computer that doesn't have a location on that can be tapped to do that action (upper left corner of the touch ...
8
votes
1
answer
4k
views
Get current working directory of another process
I have a PID, and I am trying to determine what the current working directory of the process is. I played around with wmic process for a while, but it doesn't seem to have the cwd available. Anyone ...
7
votes
1
answer
5k
views
How to copy unsupported data streams with ffmpeg?
Briefing
I have some .wmv files (actually, my full batch file deals with multiple filetypes) with weird data streams that are needed for an external program to recognize them.
I'm trying to remove ...
6
votes
0
answers
595
views
Google Chrome - Open Tab and add to group - commandline
Is there a way to launch a new tab in Chrome and have it added to a specified tab group from the command line?
Thanks
6
votes
1
answer
4k
views
Is it possible to get a report from git diff or related commands that excludes a certain category of change?
Is it possible to get a report from git diff or related commands that excludes a certain category of change?
I've been asked to review a change where a huge number of files have undergone the ...
6
votes
2
answers
3k
views
Create an alias to a samba share from the command line
I'm currently wanting to deploy a setup to around 300 Macs. I have all of it scripted and ready to deploy, excepting that I'm having trouble creating a working alias to a samba share from the command ...
5
votes
1
answer
3k
views
FFmpeg -ss option and keyframes
I would like to clarify that I understand how to use -ss, -t, -to, stream copy, and the difference between stream copying and reencoding/transcoding.
What I don't understand, is how the seeking/...
5
votes
0
answers
1k
views
How to automatically refresh the Bash prompt every second?
As far as I can see, the user must press Enter in order to update PS1, PROMPT_COMMAND, etc. Is there some way to automatically update PS1 and have it get displayed on the screen (without messing up ...