Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

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

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

  • No labels