close

March 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

Ubuntu LTS

Ubuntu mirrors: http://mirrors.slickstack.io/ubuntu/

 

Ubuntu 18.04 directory structure:

  • /lib/ … used by Ubuntu only (not used by SlickStack)
  • /lib64/ … used by Ubuntu only (not used by SlickStack)
  • /lost+found/ … used by Ubuntu only for recovery but can be safely deleted anytime
  • /media/ … unused (can delete)
  • /mnt/ … unused (can delete)
  • /opt/ … unused (can delete)
  • /snap/ … unused (can delete)
  • /srv/ … unused (can delete)
  • /tmp/ … used for various SlickStack scripts as temporary storage

 

In other words the only directories you need for SlickStack are:

  • /bin/ … critical folder for Ubuntu only
  • /boot/ … critical folder for Ubuntu only but “oldest” files can be deleted
  • /dev/ … critical folder for Ubuntu only
  • /etc/ … critical folder for both Ubuntu and SlickStack
  • /home/ … critical folder for Ubuntu only
  • /lib/ … critical folder for Ubuntu only
  • /lib64/ … critical folder for Ubuntu only
  • /proc/ … critical folder for Ubuntu only
  • /root/ … critical folder for Ubuntu only
  • /run/ … critical folder for Ubuntu only — symlinks from /var/run/
  • /sbin/ … critical folder for Ubuntu only
  • /sys/ … critical folder for Ubuntu only
  • /tmp/ … critical folder for Ubuntu and SlickStack (but can be emptied anytime)
  • /usr/ … critical folder for Ubuntu only
  • /var/ … critical folder for Ubuntu and SlickStack
  • /var/www/ … where nearly ALL SlickStack files are located

 

In other words, while Ubuntu system folders and files are of course required for the server and thus SlickStack to function properly, it should be noted that SlickStack scripts, cron jobs, logs, and other files are only stored in the bold folders above. That said, the various modules of SlickStack such as Nginx, MySQL, etc might maintain their own files in some of the other Ubuntu system folders, too. For example, the process file (pid file) for Nginx is stored at: /run/nginx.pid

 

These root symlinks can be safely deleted but they regenerate themselves anyways anytime that the Ubuntu kernel is upgraded:

  • /initrd.img
  • /initrd.img.old
  • /vmlinuz
  • /vmlinuz.old

Thanks to our generous sponsors for their support!