I know that using scp over SSH will copy the files between hosts, but what if I don't want to copy them but instead move them over entirely?
What command could I use using a secure connection over SSH or otherwise?
There is no such thing as "move".
On a single filesystem, you can "move" a file by renaming it; the file itself stays in place, but a new name gets added and an old one removed (this is not guaranteed to be atomic, either - if both "a" and "b" exists, then calling
To move a file from one place to another in the general case, you need to create a file with the new name, copy the data into it, and then delete the old one. On a local machine, but different filesystems, the "mv" command does that for you behind the scenes - you can see this happen this by running
To do this between computers without a shared network filesystem, you have to do it step by step yourself, e.g.