Most Popular
1500 questions
772
votes
16 answers
Why does macOS keep asking for my SSH passphrase ever since I updated to macOS Sierra (10.12)?
It used to remember the passphrase, but now it's asking it to me each time.
I've read that I need to regenerate the public key with this command, which I did:
ssh-keygen -y -f id_rsa > id_rsa.pub
but it didn't fix anything.
How can I make macOS…
erwan
- 7,841
740
votes
13 answers
View list of files in ZIP archive on Linux
How can I view the list of files in a ZIP archive without decompressing it?
johnlemon
- 7,963
- 3
- 20
- 16
701
votes
5 answers
Why does this PNG image display differently in Chrome & Firefox than in Safari and IE?
Check this image out:
On Chrome and Firefox it will show as a pear. Now, try to save it and look at it saved on your desktop. Also, try viewing in Safari or Internet Explorer. It will display as an apple!
Try clicking the image and moving it…
ethree
- 3,739
697
votes
17 answers
How to copy with cp to include hidden files and hidden directories and their contents?
How can I make cp -r copy absolutely all of the files and directories in a directory
Requirements:
Include hidden files and hidden directories.
Be one single command with an flag to include the above.
Not need to rely on pattern matching at…
eleven81
- 16,182
691
votes
18 answers
How do I convert a video to GIF using ffmpeg, with reasonable quality?
I'm converting a video to GIF file with ffmpeg:
ffmpeg \
-i input.flv \
-ss 00:00:00.000 \
-pix_fmt rgb24 \
-r 10 \
-s 320x240 \
-t 00:00:10.000 \
output.gif
It works great, but output gif file has a very low quality.
Any ideas how…
Kamil Hismatullin
- 7,020
684
votes
18 answers
How are pseudorandom and truly random numbers different and why does it matter?
I've never quite got this. Just say you write a small program in any language at all which rolls some dice (just using dice as an example). After 600,000 rolls, each number would have been rolled around 100,000 times, which is what I'd expect.
Why…
Peter
- 1,105
684
votes
12 answers
How to stop an automatic redirect from “http://” to “https://” in Chrome
I had something set up wacky in our DNS setup which is now resolved.
The remaining problem is that chrome has cached the incorrect setup.
Specifically, when using Chrome http://example.com is now redirecting to https://example.com (naked domain),…
phil swenson
- 6,949
678
votes
7 answers
Permissions on private key in .ssh folder?
I changed my permissions in my .ssh folder and now when I use a piece of software that uses my private key, I have to type my password each time. What should my permissions be on my id_rsa file to not have to type a password each time I use an app…
Jody G
673
votes
20 answers
How to *disable* automatic reboots in Windows 10?
Windows 10 lets you 'schedule' a reboot for later. I want to disable it.
Evidently Windows scheduled itself for a reboot last night when I wasn't looking and just closed everything I had been working on the night before.
I reboot on the regular; I…
mpen
- 12,441
666
votes
25 answers
How do I reorder tmux windows?
In screen, I can just type C-a :number 0 to move a window to the top of the window list and push all the other windows down one. What's the equivalent command sequence for tmux? I looked at the man page, but I'm finding it confusing on this point.
dan
- 7,687
659
votes
42 answers
How to execute a command whenever a file changes?
I want a quick and simple way to execute a command whenever a file changes. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with that file.
Currently, I'm using this:
while read;…
Denilson Sá Maia
- 13,708
656
votes
5 answers
How to find a directory on linux?
I have a VPS with Suse Linux 10.3.
I've logged in via SSH/putty and am trying to find where my web files are located.
Since I'm uploading via FTP in a directory called httpdocs, I assume that this directory exists somewhere.
My google searches have…
Edward Tanguay
- 14,615
645
votes
5 answers
How can I get the same SSID for multiple access points?
I need to upgrade my existing wireless infrastructure and this time I want 2 access points to cover my house, since I get blind spots no matter what with a single AP. I have physical cabling to my central network available for both access points.
I…
krosenvold
- 6,867
636
votes
15 answers
When reading a file with `less` or `more`, how can I get the content in colors?
When I read a file in Linux with the command less or more, how can I get the content in colors?
Open the way
- 9,221
620
votes
9 answers
Using ffmpeg to cut up video
I am using ffmpeg to cut out a section of a large file like this:
ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv
The -ss part works fine but the -t is ignored. It correctly removes the initial specified seconds specified with…
Neil
- 6,329
- 3
- 18
- 3