Skip to content

Instantly share code, notes, and snippets.

@filipsedivy
Last active October 11, 2023 12:27
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 filipsedivy/91673529d97ac8d0ceec5b018eedd809 to your computer and use it in GitHub Desktop.
Save filipsedivy/91673529d97ac8d0ceec5b018eedd809 to your computer and use it in GitHub Desktop.
List of server management commands

rsync

Sync local folder to remote over SSH

  • -a = all or recursive (sync all files in the directory).
  • -z = Reduce network transfer by adding compressing option.
  • -P = Combines the flags --progress & --partial (--progress gives you a progress bar, --partial allows you to resume partially/interupted transfers).
rsync -azP /mnt/local-directory/ username@1.1.1.1:/mnt/remote-directory

screen

sudo apt-get install screen
  • screen -ls - List all screen
  • screen -r PID - reattach
  • CTRL+A D - detach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment