Most Popular
1500 questions
90
votes
7 answers
Compress and then encrypt, or vice-versa?
I am writing a VPN system which encrypts (AES256) its traffic across the net (Why write my own when there are 1,000,001 others already out there? Well, mine is a special one for a specific task that none of the others fit).
Basically I want to run…
Majenko
- 32,128
- 4
- 61
- 81
90
votes
9 answers
grep to find files that contain ^M (Windows carriage return)
I use Linux. There is a pesky ^M (Windows cariage return) somewhere hidden in thousands of configuration files, and I have to find it, because it makes the server fail.
How do I find ^M among a directories hierarchy full of configuration files?
I…
Nicolas Raoul
- 10,711
- 18
- 64
- 102
90
votes
16 answers
What is the Windows analog of the Linux watch command?
I'm looking for a Windows program/script/command line function that works like Linux's watch program.
watch periodically calls another program/whatever and shows the result, which is great for refreshing an output file or similar every second:
watch…
PeterJCLaw
- 2,584
- 4
- 20
- 16
90
votes
6 answers
Keyboard shortcut for the Windows Explorer address bar
Is there a keyboard shortcut in Windows Explorer (Windows 7), to put the cursor into the address bar (where the current path is shown)?
M4N
- 5,326
- 6
- 29
- 30
90
votes
19 answers
How can I delete all files/subfolders in a given folder via the command prompt?
I would like to delete all files and subfolders in a batch file in Windows 7 and keep the top folder. Basically emptying the folder. What's the command line instruction for that?
Tony_Henrich
- 11,506
- 28
- 86
- 116
90
votes
8 answers
How to suppress cUrl's progress meter when redirecting the output?
I'm trying to print just the verbose sections of a cURL request (which are sent to stderr) from the bash shell.
But when I redirect stdout like this:
curl -v http://somehost/somepage > /dev/null
Some sort of results table appears in the middle of…
Ian Mackinnon
- 5,606
- 5
- 29
- 33
90
votes
3 answers
How do modern motherboards differ from each other?
On the surface, a motherboard appears to me like it's not a "performance" part like a CPU or a graphics card. The purpose, at least from my understanding, is to connect the various hardware parts together, as well as offer a handful of USB and other…
MechMK1
- 1,814
- 4
- 21
- 30
90
votes
4 answers
How to make new file permission inherit from the parent directory?
I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to update.
So I setup the permission and owner group…
Wai Yip Tung
- 1,001
- 1
- 8
- 5
90
votes
11 answers
How do you type Unicode characters using hexadecimal codes?
This is in Windows, but answers for other operating systems can be handy to others.
Most guides say something to the effect of "hold down the Alt key and type in the code on the keypad". This works fine for decimal codes (like 65 for 'A'), but not…
user939
90
votes
3 answers
Why does MIT have a /8 IPv4 block?
I noticed that MIT has the IP addresses 18.0.0.0/8. It seems like MIT is the only university that has a whole /8 block. Why does MIT have a whole /8 IPv4 block? What makes it different from other Universities?
ai8p588t
- 991
- 1
- 7
- 5
90
votes
17 answers
SSH-Key authentication fails
I'm trying to ssh into a CentOS server which I have no control over.. the admin has added my public key to the server and insists the fault lies with me but I can't figure out what is wrong.
Config in .ssh:
tim@tim-UX31A:~$ cat ~/.ssh/config
User…
Tim
- 901
- 1
- 6
- 3
90
votes
5 answers
How do I change the language of the Linux subsystem in Windows 10 (WSL)?
After installing Bash in Windows 10 I noted that it is using Swedish in the linux applications. My Windows 10 installation is in English.
I have tried to reinstall bash after changing the default input language to english using
lxrun /uninstall…
User0
- 1,168
- 1
- 7
- 7
89
votes
5 answers
How do I remove an SSH forwarded port
I used ssh -L 10002:192.168.0.30:10002 192.168.1.135 to establish port forwarding but now I need to remove it.
How do I do this?
user16654
- 1,133
- 2
- 12
- 14
89
votes
7 answers
Can I use vodka to clean my keyboard?
I spilled beer on my keyboard a while back, and some of the keys are sticky.
It's driving me crazy, and I don't have any isopropyl. Can I use vodka to clean it?
user1068446
- 1,350
- 11
- 34
- 55
89
votes
1 answer
Strange dotless decimal notation of IP address... How does it work?
Earlier today I thought I had a URL in my clipboard, but I actually had four 9 digit integers copied from a spreadsheet, which were identification numbers from a proprietary system. Completely unrelated to the task at hand. I pasted it into Firefox…
beeks
- 1,062
- 8
- 13