Does anyone know a good method on CLI to display sessions per share/s? The man page for "cifs sessions" shows very few options.
I need to delete some CIFS shares that some users currently have locked files on. I have hundreds of users, so to go user by user is impossible. I would like to show session by share, so that I can pinpoint the couple of users locking files in the shares I need to remove (so that I can then copy them to new shares).