How to transfer a file from Linux to Windows | File transfer using built-in SMB

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
do you need to copy files from a machine running linux over to a machine running windows well I'm Dom pizzette educator at IT pro TV and in this Linux how-to I'm gonna show you how to do it [Music] copying files from a Linux machine over to a Windows machine can actually be a little bit tricky because the two don't really speak the same language but most Linux distros have gone the extra mile to make that compatibility a heck of a lot easier by including support for a protocol called SMB server message block in Linux has done with a service called samba and it's usually installed an operational right out of the box let me show you how we can make use of it the first thing I want to do is I want to create a file share on my Windows machine so here on my Windows machine for example I'm going to browse to my hard drive and on my C Drive I have a folder called is OS and I want to share that out on my network so that people can access ISO files so I'll right-click on that folder and then look for the give access to option and under give access to I'll choose specific people and then I can pick who I want to share it out to and what permissions they want to have now I can't change my permissions because I'm the owner but if I added other users in here I could set them as read-only or so on once that's done I can share the folder and now it's available on the network notice is showing here is being called slash slash Don's laptop slash ISOs alright it's also accessible by the IP address which is usually a little more reliable than using the hostname so I'm gonna grab my IP address real quick and an easy way to do that is to go to the command line I'm just gonna bring up my Start menu and type CMD and in the command line I will type ipconfig to get my IP address configuration and I'm gonna grab the IP address for the very first adapter in the list so mine is 10.0 dot dot 2 2 3 that's the address that I want that's going to help me get connected now I'm going to jump over to my Linux system on the Linux system I'm gonna connect to that folder over on Windows and once I'm there I can copy files from Linux over to Windows or vice-versa I'll have that communication in place I start by going to my file explorer inside of the file navigation window here you'll see where it's highlighting a lot of local resources I see my home directory my downloads folder x' and so on but there's a neat little option down here that says other locations if you click on other locations it will scan your network and look for other network resources and I haven't done any special configuration here but you'll see where it's found a number of Mac's that are on our network it's finding network snip network storage appliances it's finding all sorts of crazy things on the network if your machine shows up in the list you can double click on it authenticate and you're in but there's plenty of times where Windows doesn't show up here in the list especially if network discovery is turned off which it is by default in some networks so in that case I'm gonna have to tell the Linux box where to go and that's where this box down at the bottom comes in see where it says connect to server' well my laptop isn't a server but it's all treated the same on the network side so I just need to tell it where my laptop is and from here I can type SMB colon slash slash think like the URL in a web browser HTTP colon slash slash here its SMB 4 server message block and then I could put the host name of my laptop mine is called Don's - laptop or I could put the IP address I'm gonna go with the IP address because it is a little more reliable than a domain name right now if I stop there when I connect it's gonna let me pick which folder I want to access or if I know the folders name I could just type it out write mine is called ISOs then I can go ahead and click the connect button when I go to connect it's going to ask me to authenticate you can set it up from anonymous access but that's not very secure so the default is you need to be a registered user with an account on that system so now I'm going to provide my user credentials for that system my user name is Don pizzette my domain well I'm not in a domain if I had an Active Directory domain I'd put its name here most workstations default to workgroup or you could put the laptops name in there your desktop whatever it is this value is really not gonna get used and then lastly what my password is so I'll punch that in hopefully I can type it correctly and then whether or not I want to remember the password just until I log out forever or just immediately forget the password after this initial connection is up to me assuming you get that information right you can it connect and it's gonna reach out to that server and I can see that mine has connected to the ISOs folder on my laptop and I can see the ISO images that are available right so if I wanted to copy those here to Linux I could do that but the reverse is true as well I can copy files from Linux over to my Windows machine I'm gonna grab a PDF file that I have right here on my machine let me go into My Documents folder and here's this PDF and I'm going to just copy that and then when I jump over here to the the remote folder I see all those ISO files and I'm just gonna right-click and choose paste and right there I see that PDF just copied over so now it's in that folder if I were to jump back over to my Windows machine let's go and navigate over to that folder I should see a new PDF in my ISOs folder messing up my organization so when I come in here I should be able to find right there Linux in a nutshell waiting for me copied over so I just successfully copied a file from my Linux workstation right over to my window station by using SMB all built into the Linux distro by default thanks for watching this Linux how-to video check out the playlist below for more Linux videos and don't forget to subscribe to the IT pro TV YouTube channel
Info
Channel: ITPro
Views: 80,530
Rating: undefined out of 5
Keywords: transfer a file from linux to windows, how to transfer a file from linux to windows, file transfer from linux to windows, linux to windows file transfer, transfer files between linux and windows, how to copy a file from linux to windows, copy file from linux to windows, linux to windows copy file, copy files between linux and windows, smb file tranfer, smb file transfer windows, linux file transfer, file transfer linux, how to copy file from kali linux to windows
Id: mnKeuzqdY8w
Channel Id: undefined
Length: 6min 5sec (365 seconds)
Published: Thu Jul 16 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.