1

What is the equivalent CLI command to list all currently connect smb shares from the client perspective.

Like :

C:\> net use
Status        Local           Remote                     Network
---------------------------------------------------------------------------------------
OK            Z:              \\backupsrv\users          Microsoft Windows Network
WallyZ
  • 197
  • 8
  • 1
    Does this answer your question? [List samba shares and current users](https://askubuntu.com/questions/102924/list-samba-shares-and-current-users) – FedKad Apr 09 '22 at 10:00
  • @FedKad: That link contains information regarding how to tell what client shares are being used from the server. I need to know what shares my current client is connected. – WallyZ Apr 10 '22 at 09:11
  • I'm not sure there is a single command to do that since you can mount the share two different ways. If you mount with cifs ( as in mount.cifs ) you can do a `mount | grep cifs` . If you are mounting it from Nautilus the shares are mounted at `ls -l /run/user/$UID/gvfs` – Morbius1 Apr 10 '22 at 12:52
  • @Morbius1. The shares didn't show with mount but did show with ls -l /run/user/$UID/gvfs. Thanks. That will do! CAJA must do the same! – WallyZ Apr 11 '22 at 11:04
  • @Morbius1: The reference to gvfs sent me on the correct path!!! – WallyZ Apr 11 '22 at 11:17

1 Answers1

1

Found it.

$ gio mount --list
or
$ gio mount --list | grep smb

Mount SMB share with gvfs from command line

WallyZ
  • 197
  • 8