From the course: Learning CentOS Linux

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Mounting a Samba share on CentOS

Mounting a Samba share on CentOS

From the course: Learning CentOS Linux

Start my 1-month free trial

Mounting a Samba share on CentOS

- [Instructor] We've seen how to host shares on a server, but we can also connect to existing shares from CentOS. The Samba client package we installed earlier gives us a command called SMB client, which we can use to browse and connect to a Samba share. I can use the SMB client tool to list the shares on an SMB server, using the dash capital L option. And I'll specify a user to use. Here's my users home folder, and here's the group share as well. We can also connect to a share to browse and transfer files. We'll do that with SMB client, a username, and the name of a share. This gets a little weird looking because SMB uses back slashes for its paths, instead of normal slashes like in the rest of Linux and the world at large. And so, here at the terminal, a backslash is interpreted as an escape character. So we have to double them up, with the first one acting as an escape, then the next one as the literal backslash, an escape a literal, and over here an escape and a literal as well…

Contents