Skip to content

Instantly share code, notes, and snippets.

@urbansky
Last active January 18, 2017 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urbansky/548451d14d92e05ab05f9d550b0ac654 to your computer and use it in GitHub Desktop.
Save urbansky/548451d14d92e05ab05f9d550b0ac654 to your computer and use it in GitHub Desktop.
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