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?
command linesamba
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?
Best Answer
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.