Network client tools in linux

Source: Internet
Author: User
Tags ftp client rsync ssh server

For example, in the windows operating system, when accessing the FTP site, we can use ftp client software such as flashfXP and filezilla to access the WEB server, and we use browsers such as IE and firefox. In linux, how do we access an FTP site and a WEB server? This requires some network client tools, such as elinks, wget, ftp, lftp, and ssh. The following describes these tools in detail.
1) elinks -- links for release
-- Text-based web Browser
-- Usage, elinks [option] URL
-Dump displays all the content on the webpage;
-Source: view the source code of the webpage;
2) wget -- text-based, non-interactive download tool;
Supports ftp and http download;
-- Usage method: wget [option] URL
Eg: wget ftp: // 172.16.3.1/linux.txt
Option: -- tries = # retry # times;
-- Wait = # wait # seconds;
-O filepath;
-C resumable upload;
-Q works in silent mode and does not output any information;
3) ftp-similar to ftp in DOS Operating System
-- Usage, ftp SERVERIP
Cd DIR -- switch the directory;
Ls -- list all contents in the current directory;
Get FILENAME -- download an object;
Mget FILENAME -- download all files at the same time;
Put FILEPATH -- upload a file;
Mput FILEPATH -- upload multiple files at the same time;
Help -- view all available commands
4) lftp
The function is the same as that of ftp, but the function is more powerful. It supports command line completion;
! COMMAND -- execute shell commands;
LCD-switch the system directory;
Pwd -- display the path of the current ftp site;
Get, mget, put, mput: Same as ftp;
Mirror -- Download directory;
Eg: lftp ftp // ftp: ftp@172.16.0.1 (with user name: password)
Bye -- exit;
5) lftpget -- non-interactive download Tool
Option:-c resumable upload;
-D: displays details;
6) ssh -- Secure SHell
Replace telnet to encrypt the communication process and listen to port 22 Based on the TCP protocol;
-- Usage: ssh SERVER (the default user name is the user logging on to the current system)
Option:-l username server | ssh USERNAME @ SERVER
-- Two authentication mechanisms for ssh:
-- Password-based:
-- Based on the key:
-- Steps for implementing key-based authentication:
1. Generate a pair of child keys on the client:. ssh/id-rsa,. ssh/id_rsa.pub
Client # ssh-keygen-t rsa
2. Copy the public key. ssh/id_rsa.pub to the autoorized_keys file in the. ssh directory of the user's home directory on the remote server:
Client # ssh-copy-id-I ~ /. Ssh/id_rsa.pub root@172.16.100.2
3. Log On Through client Verification
7) scp
Secure ssh-based remote file transmission;
# Scp LOCAL_PATH USERNAME @ SERVER: RPATH
# Scp UESRNAME @ SERVER: RPATH LOCAL_PATH
OPTION:-r -- Recursive replication;
-P -- copy together with the object attributes;
-C compression before transmission;
# Ssh username @ server 'command' -- execute commands on the remote server;
8) rsync-file synchronization can be implemented (compare whether the files are different before copying, overwrite if any, and skip if none exist)
Option:-r -- Recursive replication;
-P -- copy together with the object attributes;
-A -- equivalent to-pr;
-E ssh-Synchronize files on local and remote servers;
Eg; rsync-e ssh myget. sh root@172.16.13.1:/root
9) dig-dns Client tool that can resolve domain names
Dig-t a fqdn (Full Qualified Domain Name) -- resolve the Domain Name to an IP address;
Dig-x IP -- resolve the IP address to the host name;
10) netstat -- command used to view the network status
-T -- displays the network connection status related to the tcp protocol;
-U -- displays the network connection status related to the udp protocol;
-L -- displays network connections in the listener status;
-N -- display in numbers instead of domain names;
-P -- display the program that initiates the connection;
-R -- displays the route table information on the current system;
Frequently used:-tulnp |-rn |-tun
11) trouceroute URL/IP -- trace route;
12) curl-display webpage content;
-I -- only displays the header information created by the http session;
-V: displays the detailed information about the web page session creation;
-O -- download an object;
-O -- download the file and save it to the specified file;
-S -- work in silent mode;
Summary: The above are some of the network client tools commonly used in linux systems, as well as some common options, which can be used to browse Web pages, access ftp sites, download files, secure Remote logon and other common functions.
This article is from the "Linux" blog, please be sure to keep this source http://wld6linux.blog.51cto.com/4356376/778605
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.