Path of Windows shared folder in Ubuntu 14.04

Linux shell

Linux shellSometimes, on your Ubuntu PC, could be useful working with commands in Terminal with a Windows shared folder, for example to syncronize backup with rsync.

The problem is how to access to a Windows shared folder by the Terminal? Which is the path of Windows shared folder in Ubuntu 14.04?

At first you have to mount the Windows shared folder using Nautilus file manager: you do it by clicking on Connect to server and giving the address of shared folder like in the following picture:

Nautilus Connect to server

Now the path of windows shared folder will be the following:

cd /run/user/1000/gvfs/smb-share\:server\=192.168.15.100\,share\music

where

  • 192.168.15.100 is the IP address of the server
  • 1000 is your user id. If you don’t know it you find it by the following command:
    cat /etc/passwd | grep gino
    

where gino is your username

Finally you can use the path of your shared folder with every command from Terminal, for example rsync:

rsync -avz --stats /home/gino/Music/ /run/user/1000/gvfs/smb-share\:server\=192.168.15.100\,share\music/

Leave a Reply

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