Linux service configuration-network monitoring command and file transmission

Source: Internet
Author: User
Tags tmp folder


I. Network Monitoring Program commands

Install the nmap package

1. nmap-s [T/U/P].-s indicates scan T indicates scanning TCP connections, and U indicates UDP connection P indicates ICMP

2. nmap-A IP_address/domian_name scan the Operating System

3. nmap-p port_name scan Port


The netstat command monitors the port and Protocol listening status of all networks.

Netstat-a (all) view all listening protocols

-P is displayed as a pid process number.

-T indicates the tcp protocol port.

-U: displays the udp Service port status.

-L (listen) displays all protocols being monitored.


The tcpdump command monitors network data.

-P simplifies output information

-Nn does not interpret IP addresses as host names and does not display ports with service names, which can increase the monitoring speed.

-I (interface) eth0 indicates the monitored Nic

Port 21 specifies the monitored port

Host 172.16.1.1 specified monitored IP Address

Arp, icmp, tcp, and udp monitoring protocols

Conditions are connected with and or not.



2. Network Transmission command:

Scp root@172.16.1.1:/etc/inittab/root copy host 172.16.1.1/etc/inittab file to the local/root directory.

Scp/etc/inittab root@172.16.1.1:/root copy the/etc/inittab file of the local machine to the/root folder of host 172.16.1.1.

Scp-r root@172.16.1.1:/etc/tmp copy the/etc folder of host 172.16. 1.1 to the/tmp folder of the local machine.


Lftp 172.16.1.1

Get file

Mirror/dir to get the dir folder.








 


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.