| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script is meant to be run on a fresh Ubuntu 24.04 LTS installation. | |
| # Tired of manually installing LEMP stack on Ubuntu? This script will do it for you. | |
| # | |
| # Optionally, This script restores a server from a backup. It assumes the following directory structure: | |
| # - backup/ | |
| # - nginx/ (contains nginx configuration files) | |
| # - db/ (contains .sql files for database restoration) | |
| # - sites.zip (zipped file containing site files) |