[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: accessing a samba network drive via the command line



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]