Most Popular
1500 questions
113
votes
6 answers
Windows Server restart / shutdown history
How can I easily see a history of every time my Windows Server has restarted or shutdown and the reason why, including user-initiated, system-initiated, and system crashed?
The Windows Event Log is an obvious answer but what is the complete list of…
JohnC
- 2,674
113
votes
8 answers
Is a wildcard CNAME DNS record valid?
I know it's valid to have a DNS A record that's a wildcard (e.g. *.mysite.com). Is it possible/valid/advised to have a wildcard CNAME record?
Ben Mills
- 1,263
113
votes
14 answers
df says disk is full, but it is not
On a virtualized server running Ubuntu 10.04, df reports the following:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7.4G 7.0G 0 100% /
none 498M 160K 498M 1% /dev
none …
Chris
- 1,131
113
votes
8 answers
Setting the "Expires" HTTP header for static content served from Nginx?
I'm using nginx to server my static content, is there a way that I can set the expires headers for every file that meets a specific rule? For example can I set the expires header for all files that have an extension of '.css'?
Unkwntech
- 1,768
113
votes
8 answers
How to restart nginx?
For me, I run "killall nginx" and start it by "sbin/nginx", anyone has a better restart script?
BTW: I install nginx from source, i do not find 'service nginx' command or /etc/init.d/nginx
larry
- 4,217
113
votes
13 answers
nmap find all alive hostnames and IPs in LAN
How can I issue a nmap command that shows me all the alive machines' IP addresses and corresponding hostname s in the LAN that I am connected?
(if this can be done in another way/tool you surely are welcome to answer)
şaloma
- 1,287
113
votes
10 answers
How to display certain lines from a text file in Linux?
I guess everyone knows the useful Linux cmd line utilities head and tail. head allows you to print the first X lines of a file, tail does the same but prints the end of the file. What is a good command to print the middle of a file? something like…
Boaz
- 2,319
112
votes
16 answers
How do I find if there is a rogue DHCP server on my Network?
What's the best approach towards determining if I have a rogue DHCP server inside my network?
I'm wondering how most admins approach these kinds of problems. I found DHCP Probe through searching, and thought about trying it out. Has anyone had…
l0c0b0x
- 12,187
112
votes
85 answers
Linux command line best practices and tips?
I would like to open a discussion that would accumulate your Linux command line (CLI) best practices and tips.
I've searched for such a discussion to share the below comment but haven't found one, hence this post.
I hope we all could learn from…
Maxim Veksler
- 2,875
112
votes
8 answers
Is it possible to alias a hostname in Linux?
Is it possible to alias a hostname in Linux?
It has been asked by jmillikin at various Ubuntu forums as follows:
Is it possible to create a hostname alias? Sort of like /etc/hosts,
but with other hostnames rather than IP addresses. So that with…
user10178
112
votes
10 answers
Properly setting up a "default" nginx server for https
I have several servers running on the same machine, some with http only, some with both http and https. There are several server blocks defined in separate files which are included from the main config file.
I have set up a "default" server for…
Roar
112
votes
3 answers
Does getting disconnected from an SSH session kill your programs?
So, say I get disconnected from an SSH-session after I've started rsync or cp or any other command that can be long running. Does that command keep running until it's finished after I get disconnected or does it just get killed?
Always wondered…
fregas
- 1,271
112
votes
11 answers
Send Ctrl-Alt-Del to nested RDP session
Is there a way to send the Ctrl-Alt-Del command to an RDP session (Windows Server 2008 R2) inside another RDP session (also Windows Server 2008 R2) without the first session catching it?
Ctrl+Alt+End and Ctrl+Alt+Shift+End do not reach the 2nd level…
xddsg
- 3,540
111
votes
9 answers
What is a good SSH server to use on Windows?
In my spare time I remotely support my wife's office via VPN into a Windows Server. I am about to purchase a wireless broadband service which doesn't support VPN.
I don't want to open up the remote desktop ports directly, and I would like to set up…
Bruce McLeod
- 1,738
111
votes
8 answers
Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?
When I import my OpenSSH public key into AWS EC2's keyring the fingerprint that AWS shows doesn't match what I see from:
ssh-keygen -l -f my_key
It is a different length and has different bytes.
Why? I'm sure I uploaded the correct key.
Craig Ringer
- 11,525