Skip to content →

Useful Snippets

This page is for those useful code snippets or commands that I use every now and then but never remember.


Secure copy over ssh from server: (username is pi hostname is xbmc)

$ scp pi@xbmc:file.txt /local/directory

Secure copy over ssh to server:

$ scp file.txt pi@xbmc:/remote/directory
$ scp -r folder pi@xbmc:/remote/directory

Chown syntax

$ sudo chown -R ryanralph dotfiles


This page is a work in progress and things will be added and removed as needed