Most Popular

1500 questions
7 answers

How do I make a POST request using curl?

How do I make a POST request using cURL's command-line tool?
Laurie Young
3 answers

Why does Windows think that my wireless keyboard is a toaster?

I've inherited an old PC from my girlfriend's dad and when setting up the printer I got a bit of a surprise: Two questions spring to mind here: Why does Windows think my wireless keyboard is a toaster? Why does Windows even have an icon for a…
  • 11,782
  • 3
  • 12
  • 15
15 answers

How do I scroll in tmux?

How do I scroll with either the keyboard or mouse? The tmux man page indicates one must enter copy-mode to scroll. Is there a way to quickly scroll without manually entering copy-mode?
  • 19,369
  • 3
  • 16
  • 9
10 answers

How can I sort the output of 'ls' by last modified date?

How can I sort the output of ls by last modified date?
6 answers

How do I make a machine "blank screen" for a period of time (as a penalty) if certain noise levels are reached?

My kids (4 and 5) yell a lot when playing games on the computer. I found an effective cure for this. When I hear loud noises, I ssh into the game computer and do: chvt 3; sleep 15; chvt 7 This will turn off the screen for 15 seconds on Linux.…
Leonid Volnitsky
  • 8,473
  • 3
  • 13
  • 8
19 answers

Getting curl to output HTTP status code?

I'm using curl at the command line on Linux to issue HTTP requests. The response bodies are printed to standard out, which is fine, but I can't see from the man page how to get curl to print the HTTP status code from the response (404, 403 etc). …
  • 14,539
  • 5
  • 22
  • 13
14 answers

Find out which process is locking a file or folder in Windows

How can I find out which process is locking a file or folder in Windows? For instance, when trying to delete a folder, Windows reports this: The action can't be completed because the folder is open in another program Happens the same with a file,…
  • 21,508
  • 43
  • 120
  • 182
25 answers

How to tell git which private key to use?

ssh has the -i option to tell which private key file to use when authenticating: -i identity_fileSelects a file from which the identity (private key) for RSA or DSA authentication is read.  The default is ~/.ssh/identity for protocol…
  • 12,445
  • 5
  • 27
  • 26
17 answers

How to clear/flush the DNS cache in Google Chrome?

As you probably know Google Chrome has its own internal DNS cache. Is there a way to clear it without having to wait for the time out or close the browser?
  • 10,708
  • 3
  • 16
  • 6
19 answers

What are the Windows A: and B: drives used for?

In Windows you have a C-drive. Everything labeled beyond that is with the following letter. So your second drive is D, your DVD is E and if you put in a USB stick it becomes F and the following drive G. And so on and so forth. But then, what and…
Demian Kasier
  • 461
  • 3
  • 5
  • 9
3 answers

Transatlantic ping faster than sending a pixel to the screen?

John Carmack tweeted, I can send an IP packet to Europe faster than I can send a pixel to the screen. How f’d up is that? And if this weren’t John Carmack, I’d file it under “the interwebs being silly”. But this is John Carmack. How can this be…
Konrad Rudolph
  • 7,601
  • 6
  • 29
  • 36
31 answers

Is there a built-in checksum utility on Windows 7?

Is there a built-in checksum/hash utility on Windows 7?
  • 8,397
  • 4
  • 19
  • 16
12 answers

What does 'source' do?

$ whatis source source: nothing appropriate. $ man source No manual entry for source $ source bash: source: filename argument required source: usage: source filename [arguments] It exists, and it is runnable. Why isn't there any documentation about…
Andrea Ambu
  • 8,338
  • 4
  • 25
  • 21
10 answers

How to recursively chmod all directories except files?

How to chmod 755 all directories but not files (recursively)? Inversely, how to chmod only files (recursively) but no directories?
Olivier Lalonde
  • 10,107
  • 7
  • 29
  • 33
8 answers

How can I display the contents of an environment variable from the command prompt in Windows 7?

In Windows 7, when I start the Command prompt, is there any command to display the contents of an environment variable (such as the JAVA_HOME or PATH variables)? I have tried with echo $PATH, echo PATH and $PATH but none of these work.
  • 26,874
  • 52
  • 105
  • 125
2 3
99 100