Most Popular

1500 questions
2394
votes
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
2132
votes
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…
ydaetskcoR
  • 11,592
  • 3
  • 11
  • 15
1817
votes
14 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?
chadoh
  • 18,339
  • 3
  • 15
  • 9
1655
votes
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?
nearly_lunchtime
1572
votes
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,423
  • 3
  • 12
  • 8
1258
votes
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). …
kdt
  • 13,289
  • 5
  • 21
  • 13
1117
votes
12 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,…
leeand00
  • 20,038
  • 39
  • 115
  • 177
1041
votes
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?
Mee
  • 10,548
  • 3
  • 15
  • 6
1021
votes
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…
jrdioko
  • 11,565
  • 5
  • 26
  • 26
995
votes
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
859
votes
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,561
  • 6
  • 27
  • 35
802
votes
31 answers

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

Is there a built-in checksum/hash utility on Windows 7?
user64996
  • 8,347
  • 4
  • 18
  • 15
733
votes
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
  • 7,970
  • 4
  • 24
  • 20
722
votes
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
  • 9,607
  • 7
  • 28
  • 33
701
votes
14 answers

macOS keeps asking my ssh passphrase since I updated to Sierra

It used to remember the passphrase, but now it's asking it to me each time. I've read that I need to regenerate the public key with this command, which I did: ssh-keygen -y -f id_rsa > id_rsa.pub but it didn't fix anything. How can I make macOS…
erwan
  • 7,131
  • 3
  • 9
  • 6
1
2 3
99 100