How,Use,FTP,Through,the,Comman computer How to Use FTP Through the Command Line in Mac OS X
----------------------------------------------------------Permission is granted for the below article to forward,reprint, distribute, use for ezine, newsletter, website,offer as free bonus or part of a product for sale as longas no changes a Gone are those times when the companies and the organisations didn't need a hi-tech system to handle them. Owing to the considerable increase in the business sector and thus, an enormous increase in the complexity of the organisational struc
Connecting to an FTP ServerTo establish a connection with an FTP server, you’ll need to know your username and password, in addition to the server you’re connecting to (i.e. “com”).To open a connection in Terminal (located in /Applications/Utilities), type the following command, replacing the underlined portions with your server:ftp YourServerHere. comAfter a few seconds, you’ll be prompted for your username and password by the server. Type those in, pressing Enter after entering each piece of information.Browsing AroundThen you’ve gotten the “ftp>” line displayed, you can issue the FTP server a command.To list the files in a particular folder, type ls (that’s LS in lower-case), then press Enter.Files will have a dash (-) as the first character in the leftmost column and folders will have a d listed ("d" stands for directory).To navigate into a folder, type cd (as in “change directory”), followed by the directory name you want to change to. Then, press Enter to send the command to the server. So, if I wanted to list the files in my Documents Folder, I would first type in:ftp> cd Documentsftp> ls The files and folders in the Documents folder would then be listed.Uploading or Downloading from the ServerDownload a file is easy. First, navigate to the folder containing the file you want to download. Next, type in the following command, specifying the file you want to download in place of the underlined text:get file_name_here.pdfAny files you download will appear in the Home directory of the currently logged in user on your Mac.Uploading a file to the server is just as easy. Instead of “get”, you’re going to use “put” then the filename of the file on your local machine. So, if you had a file on my Desktop called Downloads.rtf that you wanted to put on the server in our Documents folder, you would type the following command:put ~/Desktop/Download.rtf ~/Documents/Download.rtfThe first statement after the put command is the location on your local machine containing the file, in this case, ~/Desktop/Download.rtf; the second statement is the location on the server where the file should reside after upload, in this case ~/Documents/Download.rtf.List of CommandsAs you can see, the command line FTP client can be great when you’re in a pinch and need to do some basic FTP server work. Just to recap, here’s a list of the basic commands that you can use with the FTP client built into Mac OS X.ftp - Starts the FTP command line interface sessionopen - Start your connection to another computerls - Get a list of files in the current directorycd - Change directoryput filename - Upload a file to the serverget filename - Download a file from the servermput filename - Put multiple files on the servermget filename - Get multiple files on the serverquit - Ends your ftp session Article Tags: Command Line, Following Command, Documents Folder
How,Use,FTP,Through,the,Comman