Most Popular
1500 questions
237
votes
8 answers
How can I give write-access of a folder to all users in linux?
I installed apache2 on Ubuntu just now, and noticed that the /var/www folder is protected. I can just sudo everything but I would rather just give it write access.
How can I do this?
I tried sudo chmod 7777 /var/www but it didn't work.
Carson Myers
- 3,001
- 5
- 22
- 23
236
votes
18 answers
Unix/Linux find and sort by date modified
How can I do a simple find which would order the results by most recently modified?
Here is the current find I am using (I am doing a shell escape in PHP, so that is the reasoning for the variables):
find '$dir' -name '$str'\* -print | head -10
How…
Richard Easton
236
votes
12 answers
How do I select all text in Vi/Vim?
Using VI tool for editing config files.
How can I select all the text in a file (around 1000 lines), copy it, then paste into Google Docs?
Daniel t.
236
votes
6 answers
Should laptops remain plugged in when their battery is 100% charged?
When your laptop's battery is 100% charged, should you leave it plugged in so any battery power doesn't get used, or will that cause overcharging, overheating, etc.? Should the laptop be unplugged when the battery level is 100%?
I'm asking because…
Click Upvote
- 4,170
- 10
- 33
- 39
236
votes
5 answers
Stop MS Word from selecting more than I want
I would like to just select (¬Q) without word selecting both brackets.
I know if I move my cursor back to the same position word will select correctly, but it's annoying to have to do that every time.
Is there any setting to disable this?
Dave Chen
- 1,897
- 3
- 16
- 21
235
votes
1 answer
What is port forwarding and what is it used for?
There are a lot of questions on 'port forwarding', but there doesn't seem to be one that clearly states what it is and what it's used for. So:
What is port forwarding?
What is it used for, and why would I need it?
James Mertz
- 25,954
- 41
- 108
- 163
234
votes
11 answers
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 coyly says Set the logging verbosity level. with no…
blahdiblah
- 4,425
- 2
- 21
- 29
234
votes
2 answers
Combine multiple images using ImageMagick
I would like to combine multiple images into one image using ImageMagick. To explain a little better, I want the result to look similar to this:
That is, I have a number of screenshots, and I want to turn them into one image with the original…
Petter
- 2,451
- 3
- 14
- 6
234
votes
5 answers
How to find files with certain text in the Terminal
I'd like to find all files that contain a certain string of text. How would you do that in the Terminal?
Svish
- 36,130
- 59
- 132
- 178
234
votes
8 answers
How can I avoid SSH's host verification for known hosts?
I get the following prompt everytime I try to connect a server using SSH. I type "yes", but is there a way to aovid this?
The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.
RSA key fingerprint is…
shantanuo
- 2,623
- 3
- 20
- 20
233
votes
2 answers
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.)
Alan
- 2,431
- 2
- 10
- 6
233
votes
13 answers
Easiest way to open CSV with commas in Excel
CSV files are automatically associated with Excel but when I open them, all the rows are basically in the first column, like this:
It's probably because when Excel thinks "comma-separated values", it actually searches for some other delimiter (I…
Borek Bernard
- 13,608
- 30
- 79
- 93
233
votes
11 answers
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 virtual machine IP.
In the .ssh/known_hosts…
Adam Matan
- 7,570
- 16
- 58
- 82
232
votes
3 answers
How can I remove outdated installed versions of Homebrew packages?
How can I remove outdated versions of Homebrew packages that are installed side-by-side with current versions?
aknuds1
- 9,248
- 6
- 26
- 26
232
votes
9 answers
How do I set system environment variables in Windows 10?
How do I set a system environment variable in Windows 10 (without using the registry editor)?
(Note: Other answers don't specifically address Windows 10 - at least not yet - and they leave off important steps - like how to open the control panel -…
Jared
- 2,599
- 2
- 16
- 13