Most Popular
1500 questions
311
votes
9 answers
Why is there such a big difference between "Size" and "Size on disk"?
As you can see below, there is so much difference between the Size and Size on disk fields in my folder. Why is that?
I know that Size on disk should be a little more than Size because of allocation units in Windows, but why that much of a…
vfsoraki
- 2,027
- 2
- 15
- 15
311
votes
3 answers
Assigning custom extensions to a language's syntax highlighting in Notepad++
In the current version of Notepad++ opening .sql files results in Notepad applying SQL syntax highlighting to it. I'd like Notepad++ to do the same for other extensions as well, is there some setting where I can define this?
Sathyajith Bhat
- 61,504
- 38
- 179
- 264
308
votes
23 answers
How can I visualize the file system usage on Windows?
How can I visualize which folders and files are taking up all of the space on my hard drive?
I'm getting some conflicting reports on the size of hard drive contents. Namely what is and isn't there and what folders are actually using the space.
I…
mutewinter
- 787
- 3
- 10
- 16
308
votes
8 answers
How can I extract .rar files on the Mac?
Is there anything built-in that does this? (E.g. command line tools.) Or are there any third-party apps?
Update: I like The Unarchiver, but vote up your favourite, or add it as an answer if it isn’t there.
Paul D. Waite
- 6,434
- 11
- 49
- 72
307
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
Lenik
- 17,942
- 25
- 87
- 119
306
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,192
- 3
- 16
- 13
306
votes
22 answers
How to move windows that open up offscreen?
I have a dual monitor setup, and I recently played around with the positioning settings, and some of my single window applications do the favour of preserving where they were last closed, and opening in the same position later. Unfortunately, that…
Matthew Scharley
- 4,463
- 3
- 26
- 21
306
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,479
- 5
- 25
- 26
306
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,327
- 4
- 24
- 32
305
votes
9 answers
Inverting direction of mouse scroll wheel
Is there a way to make a mouse scroll wheel invert its direction? I'd like to scroll upwards and have that action scroll downwards and vice-versa. There is no setting on the Mouse control panel that makes this possible.
Any pointers to a hack or a…
Christian Correa
- 3,181
- 3
- 15
- 8
301
votes
11 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
- 9,026
- 7
- 26
- 46
301
votes
5 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,600
- 5
- 21
- 18
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
299
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 [email protected]:.ssh/authorized_keys
I keep getting:
Received…
Gabriel
- 3,615
- 5
- 27
- 24
297
votes
9 answers
Clear 301-redirect cache in Firefox
Is it possible to clear only 301-redirects from Firefox's cache? CTRL+F5 doesn't do the job since you just reload the target without caching but do not clear the cached redirect.
An option to disable caching of those redirects completely would be…
ThiefMaster
- 6,007
- 9
- 36
- 43