Most Popular

1500 questions
291
votes
10 answers

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 I have 64-bit system.
zbstof
  • 3,661
290
votes
14 answers

Equivalent of Linux `touch` to create an empty file with PowerShell

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 of Notepad and save an empty file. So is there a…
jsalonen
  • 9,241
288
votes
14 answers

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
7 answers

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 program that allows this? I'm using Ubuntu 9.04
Sen
  • 2,973
286
votes
17 answers

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 but only utilizes 1 core: Is there a better method of…
Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
286
votes
11 answers

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/mpirocch/Documents get -R doesn't work, either.
Matthew
  • 15,036
284
votes
10 answers

How to use Markdown in Notepad++

I love writing in Markdown and would like to be able to write and preview Markdown content in Notepad++. Are there any WYSIWYG Markdown plugins for Notepad++?
srk
  • 3,041
284
votes
9 answers

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). If I want to use vim tabs instead of gnome-terminal…
Matthew
  • 15,036
283
votes
11 answers

Delete all lines in Notepad++ except lines containing a word I need?

I have a text file and want to keep lines started with , and delete all the other lines. How can I do it?
alon
283
votes
3 answers

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 2728 ? Ss Mar07 0:00 sshd: can [priv] …
Tim
  • 17,743
282
votes
20 answers

How to add a custom search engine to Firefox?

Is there a way I can add a custom search URL to the Firefox search bar? e.g. I'd like to provide a URL such as https://blahblah.com?search=%s, where Firefox replaces the %s with the content of the search box. Both IE and Opera can do this, but I…
Andrew Grant
  • 3,224
278
votes
3 answers

How can I rename a GNU screen session?

Is it possible to change the name of a GNU screen session? Say I called started it with screen -S foo and I want to rename it to bar.
moinudin
  • 3,134
276
votes
12 answers

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 but devices are being used a little here and there.…
Ohlin
  • 2,003
275
votes
7 answers

What is the difference between a certificate and a key with respect to SSL?

Whenever I try to understand anything about SSL I always have a hard time keeping track of what "key" and "certificate" refer to. I fear many people use them incorrectly or interchangeably. Is there a standard difference between a key and a…
drs
  • 2,953
275
votes
9 answers

Unix zip directory but excluded specific subdirectories (and everything within them)

I'm trying to zip a directory (on Unix via SSH) but I need to exclude a couple of subdirectories (and all files and directories within them). So far I have this: zip -r myarchive.zip dir1 -x dir1/ignoreDir/**/* That doesn't seem to work though. I…
sulman
  • 5,681