SSH:

Connect to a server:

ssh username@ip

Example:

ssh [email protected]

SCP (Secure copy/paste):

scp -r /path/to/local/dir user@remotehost:/path/to/remote/dir

Example:

scp -r /Users/suma/Downloads [email protected]:~/home


Ubuntu:

Manage hard disk

sudo fdisk /dev/sda

Remove directory

sudo rmdir /media/nextcloud/

Remove directory & data

sudo rm -r /media/nextcloud/

Move directory & data

sudo mv /var/snap/nextcloud/common/nextcloud/data /media/nextcloud/

Show hard disks