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,
sudo status servicename
hmm... does not work with Apache2 so that is not yet managed by upstart but sudo service apache2 status works..... so I wonder if service is better.
See list of upstart jobs running,
ls /etc/init/*.conf http://askubuntu.com/questions/42444/the-list-of-running-daemons #possibly upstart way http://askubuntu.com/questions/42444/the-list-of-running-daemons
Start of good reading on upstart - http://askubuntu.com/questions/19320/whats-the-recommend-way-to-enable-disable-services
LSB (Linux Standard Base) way .... talks about legacy command and it's smart to figure it out - http://askubuntu.com/questions/6358/how-do-you-restart-apache