Hi,
Is it possible to access smb files from bash?
for example i would like to run:
file smb://server/dir/file.ext
I get the "No such file or directory" error.
thx,
WBL
Hi,
Is it possible to access smb files from bash?
for example i would like to run:
file smb://server/dir/file.ext
I get the "No such file or directory" error.
thx,
WBL
There could be an easier way, but I'd firstly mount the samba share by:
Then you can change to /media/server_dir and do whatever.sudo mkdir /media/server_dir
sudo mount //server/dir /media/server_dir/ -t cifs -o
user=[sambashare_username],uid=[localmachine username]
unmount by:
Is this what you were after?sudo umount /media/server_dir
yes it is!
Had to install smbfs (or the samba package)
After that, tyhe mount.cifs manpage is also available, indeed specifying the options you gave me, and more.Code:sudo apt-get install smbfs
Code:man mount.cifs
thanks!
WBL
Bookmarks