ubuntu

My Note

  • Change timezone to PST
bash
sudo timedatectl set-timezone America/Los_Angeles
  • Apt overivew
bash
apt intall # install a package
apt remove # remove a package
apt purge  # remove packages with config
apt update # refreshes repository index
apt upgrade # upgrades all upgradable packages
apt autoremove # removes unwanted packages
apt full-upgrade # upgrades packages with auto-handling of dependencies
apt search # searches for the program
apt show   # shows package details
apt list   # list packages
apt edit-sources # edit sources list
  • Crontab overview
bash
# Min  Hour Day  Mon  Weekday
# *    *    *    *    *  command to be executed
# ┬    ┬    ┬    ┬    ┬
# │    │    │    │    └─  Weekday  (0=Sun .. 6=Sat)
# │    │    │    └──────  Month    (1..12)
# │    │    └───────────  Day      (1..31)
# │    └────────────────  Hour     (0..23)
# └─────────────────────  Minute   (0..59)
  • Environment variables cron
bash
env >> /etc/environment