M HYPE SPLASH
// news

How to access a network folder in Ubuntu using the terminal

By Emma Terry

I am new to Ubuntu(and Linux for that matter) and I am trying to access files using the terminal. The network folder is on my Desktop, but when I go to the Desktop folder via the terminal, the network folder is not there.

How do I access files on a network folder via the terminal?

7 Answers

First go to:

/run/user/1000/gvfs/

cd /run/user/1000/gvfs/

In this directory you will find the name and access of the server you connected to. Enter this cd "name of your server"

Now you connected the server from terminal, but before that you need to enter it from the gui

The other way is to use; sshfs

2

Network locations mounted under GNOME via the GUI are mounted under ~/.gvfs.

4

First, sudo apt-get install cifs-utils

Next, sudo mkdir -p /mnt/windows/share-name && sudo mount -t cifs //machine-name/share-name /mnt/windows/share-name -o username=your-username,domain=your-domain

It will then prompt you for a password.

If the machine is not domain joined, just use the machine name in place of the domain.

This worked for me just now.

For Ubuntu 14.04, Ignacio's answer doesn't work. In fact is at other location, as told here.

Use smbmount. It mounts a network location to a directory.

A good way to go is to use find command and search for files on the network location. Found it under: /home/user/.gvfs.

I have stucked and tried several way. none have worked. I found a simple solutions.

Go to the shared folder in Ubuntu. right click inside the empty space of the folder and select "open in terminal". That´s it.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy