How to upload local file to server through Linux terminal

I use `scp` command like this

scp <path/to/file> <user>@<server-name or ip>:</path/to/directory>