accessing a samba network drive via the command line

Roberto Ragusa mail at robertoragusa.it
Thu Jul 2 15:41:47 UTC 2009


Kevin Kempter wrote:
> One more question:
> is there a way via smbclient to execute the equivelant of a "find . | wc -l" ? 
> I'm wanting a count of how many files I have on the drive, including all dirs 
> and sub-dirs.

You can mount the filesystem and use all the Unix tools you need.
Something like:

  mkdir /mnt/raw
  mount 192.168.1.30:raw /mnt/raw -t cifs

(a lot of possibly useful extra options in the mount manpage,
such as "-o guest", "-o ro")

Best regards.
-- 
   Roberto Ragusa    mail at robertoragusa.it




More information about the fedora-list mailing list