Most Popular
1500 questions
303
votes
4 answers
How to convert 2 horizontal panes to vertical panes in tmux?
After doing join-pane on 2 windows, you have 2 horizontal panes. How do I rearrange the panes to be vertical panes instead?
krishonadish
- 3,141
- 2
- 14
- 6
301
votes
27 answers
How to mess up a PC running Windows 7?
Ok, so for my PC class I have to find 3 hacks that would mess up the lab's PC. Me and my partner are going to mess up the PC and then another team will try to fix it. The system on it is Windows 7. Anything that would stop the normal use or render…
pHelics
- 346
- 3
- 4
- 10
298
votes
9 answers
What's the recommended way to move a VirtualBox VM to another computer?
I use VirtualBox 4.1.x on my Ubuntu machine and I’ve set up several virtual machines. Since there are several ways one can move a virtual machine in VirtualBox to another computer, I was wondering which one is the recommended way:
Use the…
Seyed Mohammad
- 3,112
- 3
- 14
- 13
298
votes
5 answers
How to match whitespace in sed?
How can I match whitespace in sed? In my data I want to match all of 3+ subsequent whitespace characters (tab space) and replace them by 2 spaces. How can this be done?
Peter Smit
- 9,116
- 13
- 43
- 45
297
votes
4 answers
How do I reset 'master' to 'origin/master'?
Can I do the following in a simpler way?
git checkout origin/master
git branch -D master
git branch master
git checkout master
Xiè Jìléi
- 17,292
- 23
- 85
- 118
297
votes
1 answer
Mouse pointer moving on arrow keys pressed in Windows?
I'm encountering a strange problem on my W10 computer, for a few days my arrow keys have been "driving" my mouse pointer. Pressing the left arrow key will move the pointer a few pixels left, etc.
The first thing that came to my mind was "Oh well, I…
zdimension
- 10,913
- 4
- 17
- 30
296
votes
10 answers
Remove or prevent sidebar from opening by default on Adobe Reader
In Adobe Acrobat Reader DC, presently 2015.007.20033, how do I prevent the sidebar from opening by default?
It's not so bad when a PDF document is in portrait mode, but opening one in landscape takes up too much real estate.
February 1, 2017…
MonkeyZeus
- 8,616
- 6
- 25
- 46
296
votes
4 answers
How can I find files that are bigger/smaller than x bytes?
In a terminal, how can I find files that are bigger or smaller than x bytes?
I suppose I can do something like
find . -exec ls -l {} \;
and then pipe the result to awk to filter by file size. But shouldn't there be an easier way than this?
ceiling cat
- 4,177
- 4
- 22
- 30
295
votes
4 answers
How can I search within the output buffer of a tmux shell?
I can't get this to work. How can I search the buffer of a tmux shell?
NES
- 3,061
- 3
- 14
- 6
295
votes
15 answers
Too many authentication failures for *username*
I have a hostgator account with ssh access enabled. When trying to upload the generated .pub key file with this command:
rsync -av -e "ssh -p2222" /home/user/.ssh/key.pub username@111.222.33.44:.ssh/authorized_keys
I keep getting:
Received…
Gabriel
- 3,575
- 5
- 26
- 24
293
votes
12 answers
"Maximizing" a pane in tmux
Sometimes it would be very useful to maximize a pane in tmux and then restore it to it's previous size.
I've been reading the manual and I can't find a way. What I've come up with is that I could bind a key to resize the pane to "max" width, and…
Ivan
- 4,319
- 5
- 24
- 26
292
votes
6 answers
Setting and getting Windows environment variables from the command prompt?
I want to set an environment variable from the command prompt and then be able to access it globally (for instance, I should see it by going to System -> Environment Variables).
When I use the set command, it isn't accessible in a new cmd…
Shane
- 3,510
- 5
- 20
- 18
290
votes
3 answers
Linux unzip command: Option to force overwrite?
I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files.
The problem is that the unzip command asks for confirmation:
replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll,…
Nicolas Raoul
- 10,081
- 17
- 60
- 101
289
votes
9 answers
My windows keyboard is being "clever" with the quote keys - how can I stop it?
I'm using windows 7 on a laptop. On the laptop keyboard, for some reason, the quote key (which has both double and single quote on it) is doing some "clever" annoying things:
When I press single-quote (or double-quote), windows doesn't send any…
Marcin
- 3,165
- 3
- 19
- 24
287
votes
5 answers
How do I make Windows 10's File Explorer open "This PC" by default?
I know how to do that on Windows Vista and Windows 7, and I know how to do that on Windows 8 and Windows 8.1, but neither of the ways work with Windows 10; it always defaults into the "Home" view.
(I am basically reposting this question for…
kaboom1
- 3,007
- 2
- 12
- 5