37.7 smbclient and mount.cifs: Accessing Windows Shares from Linux
Right, so you’ve got a Linux machine and you need to get at files on a Windows share. Welcome to one of the most common, yet perpetually fiddly, tasks in cross-platform sysadmin life. We’re going to bypass the GUI file manager stuff—because you’re not here to click buttons, you’re here to understand—and talk about the two heavy hitters: the nimble smbclient and the steadfast mount.cifs. The Quick and Dirty: smbclient Think of smbclient as the SMB version of an old-school FTP client. It’s your go-to for a quick one-off file transfer, a directory listing, or when you just can’t be bothered to set up a full mount. It’s a Swiss Army knife that’s probably already installed on your system.