Samba

Contents

Installation of the samba client

apt install smbclient # on Debian
emerge -av net-fs/samba # on Gentoo, with USE="client"
pacman -S smbclient # on Arch

List available shares

smbclient -mNT1 [-U <user>] -L //<IP/hostname>

Mount/Umount share

mount -t cifs //<IP/hostname>/<ShareName> <MountPoint> -o [vers=<ver>,]username=<username>,password=<password>,uid=<uid>,gid=<gid>,workgroup=<workgroup>,ip=<ip>,iocharset=utf8
umount //<IP/hostname>/<ShareName>