List of the most useful Ubuntu administration commands.
Package Management
Find out what packages if any use the specified folder,
dpkg -S "/etc/ssl/certs" openssl, ca-certificates: /etc/ssl/certs
List all files relate to a package,
dpkg -L ca-certificates /. /etc /etc/ssl /etc/ssl/certs /etc/ca-certificates /etc/ca-certificates/update.d /usr /usr/sbin /usr/sbin/update-ca-certificates /usr/share /usr/share/ca-certificates ...
Determine if package is installed,
dpkg - l | grep -i upstart
Service Management
Upstart is moving towards being the official service management utility. So not all services are yet converted to upstart. However, for the ones that are, it is very easy to use.
I'm still filling this out.
Determine if a service is upstart based,
status servicename
hmm... does not work with Apache2... but service apache2 status works...
See list of upstart jobs running,
ls /etc/init/*.conf
Start of good reading on upstart - http://askubuntu.com/questions/19320/whats-the-recommend-way-to-enable-disable-services
What the heck is LSB way .... talks about legacy command and it's smart to figure it out - http://askubuntu.com/questions/6358/how-do-you-restart-apache