Most Popular

1500 questions
188
votes
2 answers

What does a + mean at the end of the permissions from ls -l?

What is the plus sign at the end of the permissions telling me? ls -l total 4 drwxrwxrwx+ 2 benson avahi-autoipd 4096 Jan 27 17:37 docs Here's the context: cat /etc/issue \CentOS release 5.3 (Final) Kernel \r on an \m
bmargulies
  • 2,283
  • 3
  • 17
  • 20
188
votes
2 answers

How do I ask apt-get to skip any interactive post-install configuration steps?

I have a server build script which uses apt-get to install packages. It then puts pre-written configuration files directly in place, so the interactive post-install configuration dialog in packages such as postfix is not needed. How do I skip this…
jl6
  • 2,455
  • 2
  • 18
  • 19
188
votes
9 answers

How to start/stop/restart launchd services from the command line?

How do I restart, say for example my httpd or afpd, running any Mac OS X >= 10.5 (Leopard-), without having to use the GUI and go to System Preferences -> Sharing and unchecking/checking "Web Sharing"? I'm looking for the canonical equivalent to…
conny
  • 2,259
  • 2
  • 16
  • 14
187
votes
5 answers

Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?

I have some experience using linux but none using nginx. I have been tasked with researching load-balancing options for an application server. I have used apt-get to install nginx and all seems fine. I have a couple of questions. What is the…
Seth Spearman
  • 2,031
  • 2
  • 13
  • 10
187
votes
73 answers

What tool do you use to monitor your servers?

For a more comprehensive list of monitoring tools and their features, check out this Wikipedia page. As the question states, what are the most commonly used tools used for this task and what are their strengths and weaknesses?
Aron Rotteveel
  • 8,239
  • 17
  • 51
  • 64
187
votes
6 answers

how to disable SSH login with password for some users?

On Linux (Debian Squeeze) I would like to disable SSH login using password to some users (selected group or all users except root). But I do not want to disable login using certificate for them. edit: thanks a lot for detailed answer! For some…
Stepan
  • 2,089
  • 3
  • 15
  • 8
187
votes
11 answers

ssh-agent forwarding and sudo to another user

If I have a server A into which I can login with my ssh key and I have the ability to "sudo su - otheruser", I lose key forwarding, because the env variables are removed and the socket is only readable by my original user. Is there a way I can…
Florian Schulze
186
votes
8 answers

Resolve host name from IP address

I'm looking for a command line tool which gets an IP address and returns the host name, for Windows.
DouglasJose
  • 1,983
  • 2
  • 13
  • 7
186
votes
4 answers

Should I quit using Ifconfig?

With the servers that mount Infiniband cards, when I use the ifconfig command, I get this warning: Ifconfig uses the ioctl access method to get the full address information, which limits hardware addresses to 8 bytes. Because Infiniband address has…
Zhen
  • 2,109
  • 4
  • 19
  • 31
186
votes
5 answers

How to sleep in a batch file?

How to pause execution for a while in a Windows batch file between a command and the next one?
Massimo
  • 68,714
  • 56
  • 196
  • 319
186
votes
5 answers

What is a glue record?

This is a Canonical Question about DNS glue records. What exactly (but briefly) is a DNS glue record? Why are they needed and how do they work?
LanceBaynes
  • 2,907
  • 9
  • 27
  • 31
186
votes
8 answers

How to check sshd log?

I have Ubuntu 9.10 installed with sshd and I can successfully connect to it using login and password. I have configured an RSA key login and now have "Server refused our key" as expected. Ok, now I want to check sshd log in order to figure out a…
grigoryvp
  • 3,415
  • 11
  • 38
  • 58
185
votes
15 answers

How to know from which yum repository a package has been installed?

After I have installed a package by yum (with multiple repositories configured), how can I find from which repository it has been installed? If I run yum info package-name (or yum list package-name), I can only see that the package is "installed".
lg.
  • 4,579
  • 3
  • 20
  • 20
185
votes
5 answers

I am under DDoS. What can I do?

This is a Canonical Question about DoS and DDoS mitigation. I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth. Nobody can…
Falcon Momot
  • 24,975
  • 13
  • 61
  • 92
185
votes
6 answers

Non interactive git clone (ssh fingerprint prompt)

I want to clone a repo in a non-interactive way. When cloning, git asks to confirm host's fingerprint: The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established. RSA key fingerprint is…
qwe
  • 1,897
  • 2
  • 13
  • 5