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 install FTP and log in to Linux system

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains "how to install FTP and log in to use Linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to install FTP and login on Linux system".

For a person who often comes into contact with computers, FTP appears virtually in every corner of our lives. File uploads and downloads in daily life often rely on FTP.

Professionally speaking, FTP is the English abbreviation of File Transfer Protocol (File transfer Protocol), while the Chinese abbreviation is "text transfer protocol". Used for two-way transfer of control files on Internet. It is also an application (Application). There are different FTP applications based on different operating systems, and all of these applications follow the same protocol to transfer files. In the use of FTP, users often encounter two concepts: "Download" and "Upload". To "download" a file is to copy a file from a remote host to your own computer, and to "upload" a file is to copy a file from your own computer to a remote host. In the Internet language, users can upload (download) files to (from) a remote host through a client program.

Both Window and Linux,FTP have their roles. In windows, we may be able to manipulate ftp through a visual interface. But how do we do it in a pure command line Linux.

1. In the installed Linux, when I entered ftp, it prompted me that I did not find the instruction of ftp. I checked it on the Internet and said that I was going to install a vsftpd. First set the permission to root, or precede the instruction with sudo. The instructions are as follows:

Yum install vsftpd

Or

Sudo yum install vsftpd

2. After installation, type / sbin/service vsftpd restart to restart vsftpd.

3. Then install ftp.

Yum install vsftpd

4. After entering ftp, you can enter the control interface of ftp.

5. Now if you want to log in to a FTP, you can enter the FTP through the open command.

For example: open 127.0.0.0

If FTP sets permissions, you may need to enter a user name and password after entering. In this way, you can directly enter the FTP to operate.

Operation instruction

1. The operation instructions of FTP are actually very similar to those of Linux, as follows:

1) ls lists the current directory of remote machines

2) cd changes the working directory on the remote computer

3) lcd changes the working directory on the local machine

4) ascii sets the file transfer mode to ASCII mode

5) binary sets the file transfer mode to binary mode

6) close terminates the current ftp session

7) hash displays a # sign every time it transmits data in the data buffer

8) get (mget) transfers the specified file from the remote machine to the local machine

9) put (mput) transfers the specified file from the local machine to the remote machine

10) open connects to remote ftp sites

11) exit exits ftp.

2. For example, download a file

Before downloading files, set up a local directory to store the downloaded files

Lcd / home/123/web # # set the local storage directory to / home/usr by default

Get 123.txt # # download 123.txt file to / home/123/web

Get-c 123.txt # # download from breakpoint

Mget * .txt # # download all txt files in bulk

Mget-c * .txt # # breakpoint continuation

Mget-c. / 123/aaa/*.txt # # resume upload at breakpoint and download all txt files in aaa directory on ftp in batch

Pget-c-n 10 file.dat

# # download file.dat with up to 10 threads to allow resuming from breakpoints

# # you can use the default value by setting the value of set pget:default-n 5.

Mirror aaa/

# # download the entire aaa directory, and the subdirectory will automatically copy the local and automatically set up the directory

3. For example, upload files

Put 123.txt # # download as well

Mput * .txt # # also download

Mirror-R aaa/ # # also download

4. For example, view ftp files

Ls * .txt # # find all txt files in the current directory

Ls. / 123 / # # list all files in directory 123

Find. -name "* .txt" # # Recursively find all txt files on the site

Find. / xx-name "* .txt" # # find all the txt files in the xx directory

Attachment 1: ls reads the local cache for the second time. You can use rels instead of ls or catch off / catch on to switch catch,catch flush to clear the local catch.

Attachment 2: the command to browse the local directory is available! ls, such as! ls / usr/local/bin/

Note: when installing FTP, the permissions are set to root.

At this point, I believe that everyone on the "Linux system how to install FTP and login use" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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