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 use the ftp command under solaris

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

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use the ftp command under solaris. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

File transfer between 1.ftp local workstation and remote workstation (solaris):

You must have the account number and password of the remote workstation before the transmission can be carried out:

Format: ftp hostname or ftp ip_address

For example:

Ftp 129.123.45 and remote workstation 129.123.45 for file transfer

Name (129.9.123.45:user-name): enter the account number

Password (129.9.123.45:user-name): enter password

! To execute commands from the external operating system.

Ftp > help lists any commands that can be used for ftp file transfer.

Ftp >! ls lists all the file names in the current directory of the local workstation.

Ftp >! pwd lists the local workstation and the current working directory location.

Ftp > ls lists all the file names in the current directory of the remote workstation.

Ftp > dir lists all file names in the current directory of the remote workstation (slightly the same as the ls-l instruction of UNIX).

Ftp > pwd lists the directory location where the remote workstation is currently located.

Ftp > cd dir1 change the working directory location of the remote workstation to dir1.

Ftp > lcd dir2 change the working directory location of the local workstation to dir2.

Ftp > get file1 copies the file file1 of the remote workstation to the local workstation.

Ftp > put file2 copies the file file2 of the local workstation to the remote workstation.

Ftp > mget * .c copies all files in the remote workstation with the file name suffix c to the local workstation.

Ftp > mput * .txt copies all files in the local workstation with the file name suffix txt to the remote workstation.

Ftp > bin transfers files in binary mode, so remember to execute this command before transferring executable files.

You can transfer ASCII files in binary mode, but never transfer binary files in ASCII mode, otherwise the contents of binary files will be destroyed and cannot be used.

Ftp > asc transfers files as ASCII, and is only used when transferring ASCII files, especially when transferring between DOS and Solaris.

Ftp > prompt do not have to ask yes/no for every file when using mput/mget

Ftp > quit ends the ftp work.

Ftp > bye ends the ftp work, just like quit.

This is the end of the article on "how to use the ftp command under solaris". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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