Skip to content

Instantly share code, notes, and snippets.

@urbansky
Last active Jan 18, 2017
Embed
What would you like to do?
Ubuntu commands
# Set the timezone
dpkg-reconfigure tzdata
# Add init script
# Ubuntu 14.04
update-rc.d tomcat defaults
# -------------------------
# Package manager
# -------------------------
# Search keyword
apt search
# Show information
apt show PACKAGE
# Install
apt install PACKAGE
# Remove
apt purge PACKAGE
# Install local package file
dpkg -i FILENAME
# List installed packages
dpkg -l
# Refresh package list
apt update
# Install updates
apt upgrade
# List files
apt-file list PACKAGE
# Remove unused files
apt-get autoremove
# Firewall
# https://wiki.ubuntuusers.de/ufw/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment