Most Popular
1500 questions
98
votes
1 answer
Nested Nginx location (prefix blocks in regex blocks) not working
I'm having trouble understanding nested locations in nginx. I have two locations with some configuration directives in common, so rather than repeat the directives, I'd prefer to repeat the URI using a regular-expression:
location ~ /a|/b {
…
Jayen
- 1,877
- 4
- 16
- 28
98
votes
8 answers
How to send emails and avoid them being classified as spam?
This is a canonical question about how to handle email sent from your server being misclassified as spam. For additional information you may find these similar questions helpful:
Best Practices for preventing you from looking like a spammer…
kcode
- 1,835
98
votes
1 answer
How do I validate an RSA SSH public key file (id_rsa.pub)?
Is there a command I can use to verify the public key (id_rsa.pub), just the format only.
Sometimes I have added a new linebreak, sometimes the file missed the ssh-rsa prefix, so is there a command to validate with?
Ryan
- 6,021
98
votes
2 answers
scp without known_hosts check
Is there any chance to skip the known_hosts check without clearing known_hosts or disable it in ssh.conf? I neither have access to known_hosts nor ssh.conf yet.
Don't find any suitable in man.
burnersk
- 2,096
- 5
- 27
- 41
98
votes
4 answers
How can I get processor/RAM/disk specs from the Linux command Line?
Possible Duplicate:
How to find out details about hardware on the Linux machine?
How can I get processor/RAM/disk specs from the Linux command Line?
yazz.com
- 7,483
98
votes
4 answers
What is the maximum port number in Linux?
I'd like to set some Linux services to non-standard ports - what's the highest valid port number?
Yehosef
- 1,305
97
votes
6 answers
How to get a .pem file from ssh key pair?
I created a key pair using ssh-keygen and get the two clasic id_rsa and id_rsa.pub.
I imported the public key into my AWS EC2 account.
Now I created a windows instance and to decrypt that instance password, AWS console is asking me for a .pem file.…
user120858
97
votes
12 answers
How bad is it really to install Linux on one big partition?
We will be running CentOS 7 on our new server. We have 6 x 300GB drives in raid6 internal to the server. (Storage is largely external in the form of a 40TB raid box.) The internal volume comes to about 1.3TB if formatted as a single volume. Our…
bdemarest
- 1,081
97
votes
4 answers
dpkg-reconfigure: unable to re-open stdin: No file or directory
I am building a provisioning script for a ubuntu vagrant vm, on a ubuntu host, both 12.10 64bit When installing the following packages:
sudo apt-get -y install php5-xsl graphviz php-pear unison
I get the warning:
dpkg-reconfigure: unable to re-open…
Daithí
- 1,363
97
votes
2 answers
Add comment to existing SSH public key
I have an existing SSH key (public and private), that was created with ssh-keygen. How can I add a comment to this existing key?
Martin
- 1,253
97
votes
18 answers
Caching/preloading files on Linux into RAM
I have a rather old server that has 4GB of RAM and it is pretty much serving the same files all day, but it is doing so from the hard drive while 3GBs of RAM are "free".
Anyone who has ever tried running a ram-drive can witness that It's awesome in…
Andrioid
- 2,700
97
votes
8 answers
Show all users and their groups/vice versa
I know I have existing groups and users but I'm not sure about their association. Is there an shell command I can use to list all users or all groups and a command to list all groups/users for a specified user/group?
So something like showusers…
Steve Robbins
- 1,952
97
votes
18 answers
Why hasn't rsync caught on in the Windows world?
It seems that rsync is the de-facto standard for efficient file backup and sync in Unix/Linux.
Does anyone have any thoughts on why it wouldn't have caught on in the Windows world?
Why hasn't it become a universal 'protocol' for file sync?
jtalarico
- 247
97
votes
4 answers
What should I do to make sure that IIS does not recycle my application?
I have a WCF service app hosted in IIS. On startup, it goes and fetches a really expensive (in terms of time and cpu) resource to use as local cache.
Unfortunately, IIS seems to recycle the process on a fairly regular basis. So I am trying to…
AngryHacker
- 2,897
97
votes
3 answers
How do I extract login history?
I need to know the login history for specific user (i.e. login and logout time),
How do I extract this history for a specific date range in Linux ?
shox
- 1,081