urbansky
6/3/2016 - 10:29 AM

Ubuntu commands

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/