The command smbclient -M pc004 establishes contact with \PC004 and waits for you to type your message. When you end the message (by pressing Ctrl+D), smbclient sends it. As with many UNIX and Linux commands, the option’s case is significant—the -M option must be uppercase.
What is Smbclient command?
smbclient is a client that can ‘talk’ to an SMB/CIFS server. … Operations include things like getting files from the server to the local machine, putting files from the local machine to the server, retrieving directory information from the server and so on.
How do I connect to Smbclient?
Click the “Connect button. (no need for a password). If you would like to mount your SMB share using your (server) hostname rather than the IP Address, edit /etc/hosts and add your samba server (syntax IP Address hostname). Where “hostname” = the name of your samba server.