All Questions
504,887
questions
318
votes
5
answers
365k
views
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 ...
313
votes
9
answers
1.7m
views
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 ...
311
votes
23
answers
180k
views
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 ...
311
votes
5
answers
354k
views
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/...
311
votes
9
answers
120k
views
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 ...
311
votes
3
answers
128k
views
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 ...
311
votes
9
answers
64k
views
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 ...
310
votes
9
answers
431k
views
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 ...
308
votes
22
answers
702k
views
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 ...
308
votes
12
answers
155k
views
"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 ...
308
votes
4
answers
522k
views
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
308
votes
9
answers
396k
views
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 ...
307
votes
16
answers
207k
views
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 ...
307
votes
5
answers
945k
views
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 ...
304
votes
15
answers
373k
views
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/...
304
votes
10
answers
912k
views
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 ...
302
votes
27
answers
118k
views
How to mess up a PC running Windows 7? [closed]
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. ...
302
votes
7
answers
482k
views
What is a SSH key fingerprint and how is it generated?
I always find that I get this message when I ssh into a new machine:
12:f8:7e:78:61:b4:bf:e2:de:24:15:96:4e:d4:72:53
What does it stand for? Will every machine have the same fingerprint every time?
...
302
votes
5
answers
314k
views
Is there a list of Windows special directories/shortcuts (like %TEMP%)?
I'm looking for a reference list of shortcuts like %TEMP%.
When I'm using Windows+R or Windows Explorer and type %temp%, the Windows Explorer takes me to the Temp directory. Are there more of these ...
302
votes
11
answers
317k
views
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 ...
301
votes
9
answers
1.3m
views
Using cd command in Windows command line, can't navigate to D:\
This may be a silly question, and I think I have looked elsewhere to find the answer... Might be a path issue, but when I open the command line and type from the C:\>:
cd D:\
I cannot get to the ...
300
votes
10
answers
766k
views
How can I list all IPs in the connected network, through Terminal preferably?
Using Ubuntu 10.10 command line, how can I list all IPs connected to my home network?
Ideally, it needs to be a CLI command as I will be running it from C++.
297
votes
9
answers
303k
views
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-...
293
votes
1
answer
314k
views
Sorting lines in Notepad++ without the TextFX plugin
The current version of Notepad++ (at the time of this writing) is 6.6.3. Version 6.5.2 is the first that introduced a native (without a plugin) sorting function. At least, that's what they claim; even ...
292
votes
5
answers
87k
views
Getting colored results when using a pipe from grep to less
I use the --colour option of grep a lot, but I often use less as well. How can I pipe grep results to less and still preserve the coloring. (Or is that possible?)
grep "search-string" -R * --colour | ...
291
votes
11
answers
319k
views
How can I make ffmpeg be quieter/less verbose?
By default ffmpeg sends a whole lot of messages to stderr: when built, how it was built, codecs, etc, etc, etc.
How can I make it quieter?
I've tried -v 0 (and -v 10 since the documentation just ...
290
votes
11
answers
876k
views
Remove key from known_hosts
I built several virtual machines during the last few weeks. The problem is, the .ssh/known_hosts gives me the Man in the middle warning. This happens because another fingerprint is associated with the ...
290
votes
5
answers
233k
views
Zsh not hitting ~/.profile
I've just installed zsh on my Ubuntu system. It seems zsh isn't executing ~/.profile on init. To my best understanding, this should be an automatic behavior. What am I missing?
290
votes
5
answers
251k
views
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 ...
288
votes
8
answers
852k
views
How do you add a certificate authority (CA) to Ubuntu?
My work has decided to issue their own certificate authority (CA) to handle different aspects of our work securely without paying for certificates.
Cryptographically sign emails
Encrypt email ...
288
votes
5
answers
142k
views
What's the equivalent of Linux's updatedb command for the Mac?
If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the ...
288
votes
14
answers
697k
views
Grep equivalent for Windows 7?
Is there a command prompt grep equivalent for Windows 7? That is, I want to filter out the results of a command:
Bash use:
ls | grep root
What would it be from a Windows command prompt?
287
votes
22
answers
214k
views
Command-line application for converting SVG to PNG on Mac OS X
Are there any command-line programs that can convert an SVG to PNG that run on macOS?
287
votes
7
answers
237k
views
How to show the current column in the statusbar in vim?
I would like to show the current column in the statusbar, as is common in many other text editors. E.g. it's good to know if you are around column 80 or above.
How to show the current column in the ...
286
votes
6
answers
228k
views
How to automatically reload modified files in Notepad++
How can automatically reload modified files in Notepad++? The confirmation step is annoying, and is completely unnecessary in some situations.
285
votes
10
answers
255k
views
How to get SVG thumbnails in Windows Explorer?
I can open them in browser just OK, but how can I have thumbnails in the Windows Explorer?
Edit: I installed Renesis Player as suggested by this answer, but it does not work for me, probably because ...
284
votes
6
answers
314k
views
How to have Linux ls command show second in time stamp
Something annoying about ls -l command is it shows only hour and minute for a file(like 08:30). How can I see the second portion(like 08:30:44)?
man 1 ls and search for 'second' does not give any ...
284
votes
7
answers
304k
views
How do you gunzip a file and keep the .gz file?
The default behavior of gunzip is to delete the .gz file after it decompresses.
How do I prevent it from deleting the file??
If this functionality is not included then is there an alternative ...
280
votes
7
answers
408k
views
What are differences between VBoxVGA, VMSVGA and VBoxSVGA in VirtualBox?
VirtualBox 6.0 provides a new setting called Graphics Controller. There are four options to choose from:
None
VBoxVGA
VMSVGA
VBoxSVGA
In the user manual I have found this information:
Graphics ...
279
votes
3
answers
428k
views
How to resize a video to make it smaller with FFmpeg
How do I resize a video to make it smaller with FFmpeg? (e.g. from 1024x576 to 720x480.)
279
votes
6
answers
166k
views
Equivalent of cmd's "where" in powershell
I can't seem to find anything about a Powershell equivalent of the where command from cmd. Should I just call it from cmd or is there something more elegant in PS?
277
votes
11
answers
741k
views
How do I get an entire directory in sftp?
I'm just learning to use sftp, and I want to copy a directory from the remote computer to my local computer. If I try
get [directory]
it gives me this error:
Cannot download non-regular file: /home/...
277
votes
11
answers
338k
views
Delete all lines in Notepad++ except lines containing a word I need?
I have a text file and want to keep lines started with <Path>, and delete all the other lines.
How can I do it?
276
votes
14
answers
359k
views
Equivalent of Linux `touch` to create an empty file with PowerShell [duplicate]
Is there an equivalent of touch in PowerShell?
For instance, in Linux I can create a new empty file by invoking:
touch filename
On Windows this is pretty awkward -- usually I just open a new instance ...
276
votes
16
answers
242k
views
How to quickly move current window to another Task View / desktop in Windows 10?
Windows 10 introduced Task View - the ability to have multiple virtual desktops. When I am in a window on Desktop 1, what's the quickest way to move it to Desktop 2?
Currently, I need to enter the ...
274
votes
9
answers
305k
views
In vim, how can I quickly switch between tabs?
In gnome-terminal, I can just press Alt + (1, 2, 3, etc.) to switch to specific tabs. I can also use Ctrl + (PgUp / PgDn) to cycle through tabs (admittedly less convenient, but it can be remapped).
...
274
votes
3
answers
446k
views
ps aux output meaning
When typing the command ps aux, what does each column of the output mean? For example:
$ ps aux
timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine
root 29505 0.0 0.0 38196 ...
273
votes
17
answers
450k
views
How can I produce high CPU load on a Linux server?
I’m currently in the process of debugging a Cacti installation and want to create CPU load to debug my CPU utilization graphs.
I tried to simply run cat /dev/zero > /dev/null, which works great ...
273
votes
12
answers
77k
views
Why does my microwave kill the Wi-Fi?
Every time I start the microwave in the kitchen, our home Wi-Fi stops working and all devices lose connection with our router! The kitchen and the Wi-Fi router are in opposite ends of the apartment ...
273
votes
5
answers
138k
views
Why should I use Vagrant instead of just VirtualBox?
I've been using VirtualBox for many years to create a development environment.
A lot of my colleagues are talking about Vagrant and many people seem very excited about it but I just can't seem to ...