5

To connect to a samba shared drive on my network, I can use nautilus, press ctrl+l and type in smb://192.168.0.x, enter my credentials and am able to connect and browse the drive.

How can I do the same thing from the command line?

troylatroy
  • 1,275
zako42
  • 265

1 Answers1

5

Use the mount command sudo mount -t cifs //192.168.0.x/<Share> /path/to/mount -o username=myuser,password=mypass

/path/to/mount is an existing directory.

You may need to install cifs-utils but I think its included with Ubuntu desktop.

vanadium
  • 97,564
Dan
  • 6,784