在 OS X 上查找 Samba 安装位置

在 OS X 上查找 Samba 安装位置

如果我通过 OS X Mountain Lion (10.8.2) 中 Finder 中的“连接到服务器”对话框连接到 Samba 共享,我可以在 Finder 中使用它来拖放文件等。但如果我想从终端访问此共享,我应该在哪里查找?我猜它可能在 /share 或类似的东西中,但我看不到它。

答案1

在 OS X 中,通过 GUI 安装的所有内容(以及大多数您未通过命令行自行安装的所有内容)均可在 下使用/Volumes

可以使用mount命令检查这一点。下面是我安装了一个 SMB 和两个 AFP 共享的示例 — 最后三行:

$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
localhost:/FMN48UV69AlSIREfdWJEiA on /Volumes/MobileBackups (mtmfs, nosuid, read-only, nobrowse)
/dev/disk1s2 on /Volumes/Data (hfs, local, journaled)
/dev/disk1s5 on /Volumes/TimeMachine (hfs, local, journaled)
//GUEST:@meredith.local/music on /Volumes/music (smbfs, nodev, nosuid, noowners, mounted by werner)
//;AUTH=No%20User%20Authent@Meredith._afpovertcp._tcp.local/movies on /Volumes/movies (afpfs, nodev, nosuid, mounted by werner)
//;AUTH=No%20User%20Authent@Meredith._afpovertcp._tcp.local/software on /Volumes/software (afpfs, nodev, nosuid, mounted by werner)

要将输出范围缩小mount到仅 SMB 共享,请使用mount | grep smb

//GUEST:@meredith.local/music on /Volumes/music (smbfs, nodev, nosuid, noowners, mounted by werner)

相关内容