Most Popular

1500 questions
225
votes
9 answers

Is there still a reason to choose a 10,000 RPM hard drive over an SSD?

For anyone who's serious about storage performance, SSDs are always the fastest solution. However, WD still makes their 10,000 RPM VelociRaptor hard drives, and a few enthusiasts even use enterprise-grade 15,000 RPM SAS hard drives. Aside from cost,…
bwDraco
  • 46,155
225
votes
6 answers

How to specify level of compression when using tar -zcvf?

I gzip directories very often at work. What I normally do is tar -zcvf file.tar.gz /path/to/directory Is there a way to specify the compression level here? I want to use the best compression possible even if it takes more time to compress.
Lazer
  • 17,707
225
votes
10 answers

How to make SUBST mapping persistent across reboots?

Does Windows (XP or later) have a built-in way to create persitent drive mappings, like the ones SUBST creates? I found a 3rd party tool psubst. Is there a way to do it without 3rd party tools?
rick
  • 2,315
225
votes
4 answers

Using watch with pipes

I'd like to run this command: watch -n 1 tail -n 200 log/site_dev.log | grep Doctrine But it does not run, because "I think" that the grep tries to run on the watch instead of the tail... Is there a way to do something like watch -n 1 (tail -n 200…
Tommy B.
  • 2,599
225
votes
5 answers

Linux - How to recursively chmod a folder?

How can I recursively chmod everything inside of a folder? e.g. I have a folder called var which contains many subfolders and files. How can I apply chmod 755 recursively to this folder and all its contents?
Black
  • 7,901
224
votes
4 answers

Move pane to a new window in tmux

I know that it's possible in tmux to join a window as a pane, but is it possible to move a pane to it's own window (tab)? I tried searching it up the man page but couldn't find it. I guess it is possible doing it through a shell script, but is there…
Mikey S.
  • 2,579
224
votes
7 answers

Is it possible to run a motherboard in distilled water?

I have read that distilled water doesn't conduct electricity. This, in other words, means that we can submerge electronic devices like PCs/laptops in it and run them without any problem. I haven't seen much information about this on the internet,…
Suici Doga
  • 2,187
224
votes
4 answers

What is “__MACOSX” folder I keep seeing in Zip files made by people on OS X?

What are these __MACOSX folders I keep seeing in Zip files made by people on OS X? Some take as much as 30% of the file. What program are producing these __MACOSX folder and how can mac users avoid this mistake?
Yada
  • 2,481
223
votes
6 answers

What's different between Ctrl+Z and Ctrl+C in Unix command line?

I'm using Mac OS X Terminal. And I use Ctrl+Z or Ctrl+C to stop some programs. But I realized that I don't know what they're exactly doing. What are they and what's the difference between them? This question was a Super User Question of the Week. …
Eonil
  • 5,734
223
votes
12 answers

How can I make tmux use my default shell?

On a new setup, tmux is using bash instead of my default (zsh). How can I force it to use zsh?
re5et
  • 2,343
222
votes
26 answers

Bash scripting: test for empty directory

I want to test if a directory doesn't contain any files. If so, I will skip some processing. I tried the following: if [ ./* == "./*" ]; then echo "No new file" exit 1 fi That gives the following error: line 1: [: too many arguments Is…
Anthony Kong
  • 5,028
221
votes
4 answers

How to delete a file with a path too long to be deleted

I was working with some computer vision source code I found and didn't realize that it creates a cache file that has a VERY LONG name and now I can't delete the 2 of them. I tried to rename it to a shorter name but I can't do anything to the file, I…
Chris
  • 2,321
221
votes
18 answers

What is the advantage of using 'tar' today?

I know that tar was made for tape archives back in the day, but today we have archive file formats that both aggregate files and perform compression within the same logical file format. Questions: Is there a performance penalty during the…
MarcusJ
  • 2,125
221
votes
5 answers

How to ignore certain filenames using "find"?

One of my favorite BASH commands is: find . -name '*.*' -exec grep 'SearchString' {} /dev/null \; which searches the contents of all of the files at and below the current directory for the specified SearchString. As a developer, this has come in…
Cody S
  • 2,474
  • 4
  • 17
  • 20
220
votes
8 answers

Turn on the link hover statusbar in Google Chrome

I want to turn on the feature where whenever I hover over a hyperlink and in the bottom lefthand corner it shows a light blue hover tooltip about where that link goes. It looks like that since some days this earlier always-on feature is missing…
hakre
  • 2,423