| ||
The following commands are necessary when connecting to an FTP server with a command line client:
cd path Change the current directory to the specified one. The cd command takes you one level up; the cd directory command takes you to the specified directory on the next level down.
exit Terminate the connection and exit the system.
chmod permissions file_name Change file permissions. For example, to set permissions for the passwd file in the current directory to 770, execute the chmod 770 passwd command.
get -P remote_file local_file Download a file. The -P switch is optional and is used to preserve the file permissions on the local system, making them the same as on the server. This switch does not function if a file is transferred among different operating systems, because Windows uses a different file-permission mechanism. The local_file parameter specifies the absolute path, to which the file will be downloaded.
put -P local_file remote_file Upload a file to the server.
help Display the list of the available command.
pwd Show the current directory on the remote machine.
delete file_name Delete a file on the remote machine.
rmdir directory_name Remove a directory on the remote machine.
mkdir directory_name Create the specified directory.
Keep it in mind that different FTP servers and clients may process commands in different ways.