Most Popular
1500 questions
97
votes
5 answers
Disable caching when serving static files with Nginx (for development)
We are using Nginx to serve static files on a development platform. As it is a development platform, we'd like to disable caching so that each change is propagated to the server. The configuration of the VHost is quite simple:
server {
server_name…
Olivier Chappe
- 971
- 1
- 7
- 4
97
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,193
- 15
- 38
- 39
97
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,295
- 2
- 9
- 10
96
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,857
- 4
- 16
- 28
96
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
- 5,831
- 24
- 72
- 91
96
votes
18 answers
What sysadmin things should every programmer know?
As a programmer, we tend to take sysadmins for granted. The few times I've been without a good sysadmin have really made me appreciate what you guys do. When we're venturing into an environment without a sysadmin, what words of wisdom can you…
Nathan DeWitt
- 1,344
- 2
- 11
- 12
96
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,877
- 6
- 32
- 33
96
votes
11 answers
Transfer 10 TB of files from USA to UK datacenter
I am migrating my server from the USA to the UK from one data center to another. My host said I should be able to achieve 11 megabytes per second.
The operating system is Windows Server 2008 at both ends.
My average file size is around 100 MB and…
Paul Hinett
- 1,205
- 3
- 11
- 19
96
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,071
- 1
- 8
- 7
96
votes
6 answers
Boot and Install Windows from a USB thumb drive
Installing Windows from a thumb drive is vastly superior to burning a copy to a DVD which will fill some landfill somewhere with toxic stuff. Not to mention it's about 50x faster to install Windows from a USB Thumb Drive.
How do you get the bits…
Omar Shahine
- 3,747
- 3
- 26
- 27
95
votes
15 answers
How to fix PuTTY showing garbled characters?
Connecting from a Windows 7 PC via SSH to an Ubuntu server using PuTTY, I get some screen errors:
I.e. it:
"Double-draws" the selection inside Midnight Commander (MC).
Other characters like line elements are drawn as the wrong characters (e.g. "â"…
Uwe Keim
- 2,420
- 5
- 30
- 47
95
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,680
- 2
- 20
- 21
95
votes
8 answers
How can I edit the welcome message when ssh start?
I have a VPS for my website hosting. It is running a Ubuntu server. Every time I logged in my server by ssh, it displays a lengthy welcome message in my terminal.
Linux node61.buyvm.net 2.6.18-pony6-3 #1 SMP Tue Mar 13 07:31:44 PDT
2012…
Yansuck
95
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,932
- 5
- 23
- 26
95
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,056
- 5
- 27
- 39