[Unix] Mounting remote filesystems

Sometimes we have to mount remote filesystem. In this short snippet I will show you how to do it.
You have to have applications: sshfs and fusermount. The first one is used for mounting remote filesystems and the second one is used for unmounting it.
Mounting filesystem on desired catalogue:

[[email protected]:~]$ sshfs [email protected] desired-catalogue

And that’s it! You have mounted remote filesystem on desired-catalogue! You can edit and do whatever you want with desired-catalogue as it was in your filesystem:

[[email protected]:~]$ ls desired-catalogue
your-favourite-file.txt another-file.xml

For unmounting operation just type:

[[email protected]:~]$ fusermount -u desired-catalogue
[[email protected]:~]$ ls desired-catalogue
This entry was posted in operating systems, snippets, unix and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: