I know that I can copy files from my computers with scp. Is there a way to move them at once instead of copying with ssh?
One way would be to mount the SSH using
But here's how I just mounted my media centre's home in a subdirectory of my local home:
Once you're at that point, the remote filesystem and local filesystem act as one. You can move things into the mounted volume as you like. When you're done, just fire off
Well SCP stands for Secure Copy (Not Secure Move ;). Joking) but for what i have read in the man pages, help sites and others there is no way to use scp to "move" a file. Just copy it.
You might try: scp FILE user@domain: && rm FILE
I added the && since && will only run the next command IF the first one succeeds.
Sorry could not be more helpful with the specific scp problem. I use scp a lot too.
If you want, you could use rysnc which i find it sometimes better than scp.
You could rsync --remove-source-files FILE user@domain: which i even find it better if you loose connection to the server (big files for example) since rsync can continue with even the --partial and --progress flags