Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running this command when setting up new ubuntu servers

sudo add-apt-repository ppa:nginx/stable

Is there a command I can run that will show that I've run this command and added ppa:nginx/stable as a repository?

share|improve this question
cat /etc/apt/sources.list /etc/apt/sources.list.d/*

Should do the trick.

share|improve this answer
+1, but I feel like there should be a command designed to do this, so I'm going to wait to see what else comes in before accepting. Thanks. – Zach Jul 28 '11 at 14:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.