Most Popular

1500 questions
243
votes
5 answers

Notepad++ find and replace string with a new-line

Consider the scenario where you have a specific string that you want to find-and-replace. You want to replace it with a new string that contains a newline character (or character sequence). abc123 xyz456-blah fsafd23 xyz456-green 89hjkf23…
p.campbell
  • 4,368
243
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.
243
votes
3 answers

Why are tar.xz files 15x smaller when using Python's tar library compared to macOS tar?

Context I'm compressing ~1.3 GB folders each filled with 1440 JSON files and find that there's a 15-fold difference between using the tar command and Python's built-in tarfile library on macOS or Raspbian 10 (Buster) Minimal working example This…
242
votes
4 answers

How to download only subtitles of videos using youtube-dl

How can I download subtitles of a list of videos using youtube-dl? I need an option for this. However I could not find an option to download only subtitles
fivetech
  • 2,583
242
votes
4 answers

How to add user to a group from Mac OS X command line?

I am trying to add a user to a group from the command line but can't figure out how. Specifically this is on Mac OS X Server version 10.5.8. The user is 'john', the groups are 'admin' and 'wheel'.
Meltemi
  • 6,967
  • 11
  • 30
  • 30
242
votes
6 answers

In bash, how do I escape an exclamation mark?

I want to do something like bzr commit -m "It works!". I can sort of escape the exclamation mark by doing bzr commit -m "It works\!". However, then my commit message includes the backslash. How do I escape the exclamation mark, while still ignoring…
Matthew
  • 14,786
241
votes
10 answers

Refresh Icon Cache Without Rebooting

Normally, to refresh the icon cache in Windows, we have to reboot. Is there a way to refresh the icon cache in Windows 7/8 without rebooting?
Elmo
  • 14,653
241
votes
5 answers

Recursively count all the files in a directory

Possible Duplicate: How can I count the number of folders in a drive using Linux? I have a really deep directory tree on my Linux box. I would like to count all of the files in that path, including all of the subdirectories. For instance, given…
omghai2u
  • 2,930
241
votes
10 answers

Change the default sorting order in Thunderbird

Thunderbird (2.something here as 3 is still not stable and had some nasty bugs last I tried) sorts mails by date by default. This is fine, however, it sorts them so that the newest ones are at the bottom of the list, which ... is not fine. Since…
Joey
  • 40,452
239
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
  • 26,344
239
votes
7 answers

Change git init default branch name

I'm trying to figure out how to make git init use a different default branch name other than master for the first commit, but I can't find a git config for it or anything that'd allow me to do this (e.g. aliases only work for commands, not branch…
SoniEx2
  • 2,707
238
votes
15 answers

How Can I Convert Github-Flavored Markdown To A PDF

I have recently started learning Markdown for use with documentation, and need to print out a few of my Markdown pages. I would like to use a command-line, Terminal, etc. utility that allows me to convert Github-flavored Markdown to PDF. It needs to…
dillmo
  • 3,031
238
votes
9 answers

How do I disable the warning Chrome gives if a security certificate is not trusted?

I want to know if it's possible to disable the warning you get in Chrome when you try to go to some HTTPS site that doesn't have a trusted certificate. I have a few sites in my bookmarks that use HTTPS but none of them have trusted certificates, so…
sippa
  • 2,639
238
votes
5 answers

What does the asterisk mean after a filename when you type `ls -l`?

I've done an ls -l inside a directory, and my files are displaying like this : james@nevada:~/development/tools/android-sdk-linux_86/tools$ ll total 9512 drwxr-xr-x 3 james james 4096 2010-05-07 19:48 ./ drwxr-xr-x 6 james james 4096…
user155695
  • 3,619
238
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,200