Most Popular

1500 questions
319
votes
5 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,477
313
votes
9 answers

Can I completely disable Cortana on Windows 10?

Windows 10 has Cortana, which I don't like. I disabled it as soon as I could. However, looking in Task Manager, the process for Cortana is still running, and can't be effectively terminated: ending the task simply results in the process respawning a…
ArtOfCode
  • 3,441
312
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,276
  • 9
  • 36
  • 43
311
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…
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,037
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?
311
votes
5 answers

How do you redirect wget response to standard out?

I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output of the request to standard out, while sending the normal wget output to /dev/null (or otherwise hide it). I couldn't find it in…
310
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…
309
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,509
308
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…
308
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…
308
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
  • 18,302
307
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,670
307
votes
16 answers

Combine one image + one audio file to make one video using FFmpeg

This should be pretty trivial, but I can't find a way to get it to work. I want FFmpeg to take one JPEG image and an audio file as input and generate a video file of the same duration as the audio file (by stretching the still image for the whole…
matteo
  • 4,339
304
votes
10 answers

How do I find a file by filename in Mac OSX terminal?

I want to find a file on my Macbook with the filename: abc.dmg. I've tried to use spotlight, but it doesn't find it. When I tried find, and used: find -name abc.dmg -path /, I got errors back. What is the proper syntax to find a file by filename…
SPRBRN
  • 7,722