Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to transfer AIX 5 ftp files

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you about how to transfer AIX 5 ftp files. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

On the AIX platform, we usually use FTP, SCP, NFS and so on to transfer file data. The following mainly introduces the characteristics and usage of FTP file transfer on AIX.

Characteristics of FTP transmission:

1. It has high adaptability in transmission mode, and most operating systems support FTP protocol. On AIX platform, you can exchange data with machines on other platforms (such as AIX,Windows,Linux,Solaris, etc.) through FTP.

2. File transfer methods are very comprehensive, such as ASCII transfer mode and Binary binary transfer mode. Users can choose different transfer modes according to their needs.

3. There is no doubt about the advantage of FTP transmitting ordinary file data, but there are security loopholes in the process of transmitting some important confidential data, and the process of transmitting password by default is transmitted in plaintext, so the security is very poor. In view of this situation, FTP has made security improvements, resulting in SFTP.

4. FTP cannot retain file attributes on a particular file system (such as the protection mode or number of modifications of a file). And the FTP protocol rarely makes assumptions about the overall structure of a file system, nor does it provide such functions, such as recursive copy subdirectories. When using the FTP command, you need to be aware of these features of the FTP protocol. When you need to preserve file attributes or need recursive copy subdirectories, consider using commands such as SCP.

Example:

1. [root@test / tmp] $ftp 10.0.0.1

Log in to the target machine first, then enter the target file directory through the CD command, and use the get command to transfer the target file to the current directory of the local machine. If you are transferring the file to the target host file directory, then use the put command.

Note: the default file transfer method is based on ASCII code. If you want to transfer files in binary format, enter the bin command first, and then use the put or get command.

2. If you need to transfer all files in a directory, you can use the mput or mget command instead of the put or get command.

Note: you need to use the prompt off command to turn off the interaction mode and avoid typing Y confirmation each time.

3. If you need to transfer files regularly, you can do so through scripts.

#! / bin/sh

Ftp-nopen xxx.xxx.xxx.xxx

User USERNAME PASSWORD

Binary

Prompt off

Cd / yourpath

Mput * .archive

Close

Bye

!

Add this script to crontab to achieve automatic transmission of timing ftp!

0 23 * * 6 / usr/local/chuanshu.sh

The above sentence means that ftp automatic transmission is performed every Saturday at 23: 00.

The above is the editor for you to share how to carry out AIX 5 ftp file transfer, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report