Terminal Lesson 14
Mad kids 101 here today. This is going to be a terminal lesson. So first of all, I'll open up terminal, and this is going to be on how to FTP to your website and upload and download files to your website.
So first of all, I have a file I want to upload: hi hi, not zip. By the way, you cannot upload a folder. So first of all, I have to CD to the directory that has the file that I'm going to upload on it. Ok, and that's where anything I download will go. So now I—once I'm here, I type FTP, and I'm gonna connect to my website maca journaling dot com, and then I'll log in and our password.
Ok, and so once you're connected, you can type 'ls', just like on a normal terminal. You can type 'CD' to go to, say, web root, which is the directory. Instead of CP or FV, it's um, copy and move. So here's how to upload a file: say I want to upload hi hi dot zip. I say 'put space hi hi dot zip'.
By the way, all these commands will be in the description of the video, and I've just uploaded hi hi. Say I want to download something, like I type 'get space um, let's say index dot HTML'. Wrong. Ok, so I've downloaded index dot HTML. Umm, pretty cool!
So now, also say I don't want to get out of this, and 'CD'—well, first of all, if I want to upload from another directory, I type 'L CD' in FTP space and then where I want to go to. So I'll LCD to slash users slash Mac head 101, and now I'm back in Mad kids 101. But um, in FTP, I'm still in web root.
So now what I want to do is I can put any file in my home directory. So right here, I'll open up my home directory and put index dot HTM in there, and I'll put hi hi dot zip in there. So now I will put hi hi dot zip, and it'll still work because I LCD'd to my home folder.
So now I can LCD back to my desktop. So maybe I want to upload OpenOffice. Remember, downloading and uploading with 'getting' and 'put'—do not upload directories, once again. So you have to zip everything you upload up.
So that's how to do this. Thank you for watching, Mac heads. Subscribe and goodbye!