scp usage
I don’t use it much, just to transfer a single file.
1 | ## Consider that I have a test.c in my local host |
Linux mount
When I use Linux, I can mount the disk to the file system, here is the command:
1 | # 1. create an empty directory for mounting |
When you mount the partition, you could use df -Th
to get a summary of available and used disk space usage of your disk.
1 | ~ ❤ df -Th |
sshfs
And there is also a tool called sshfs
that allows us to mount a remote directory to the local file system.
1 | sudo apt-get install sshfs |
When I want to mount the
/tmp
directory in the remote server to local host, I can use these commands.
1 | ~ ❤ sshfs ali:/tmp mnt |
After the mount action, when you edit a file in local /home/corvo/mnt
, just like editint it in the remote /tmp
.