Common Centos 7 Operations

Source: Internet
Author: User

Common Centos 7 Operations
View port usage

Netstat command
 

-A or-all shows the sockets in all connections.

-A <network type> or-<network type> lists the related addresses of the network type connections.

-C or-continuous continuously lists the network status.

-C or-cache displays the cache information of the vro configuration.

-E or-extend displays other network-related information.

-F or-fib displays FIB.

-G or-groups displays a list of members of the Multi-Broadcast Function Group.

-H or-help online help.

-I or-interfaces displays the network interface information form.

-L or-listening displays the Socket of the monitored server.

-M or-masquerade displays disguised network connections.

-N or-numeric directly uses the IP address instead of the Domain Name Server.

-N or-netlink or-symbolic indicates the symbolic connection name of the network hardware peripheral device.

-O or-timers displays the timer.

-P or-programs shows the program identification code and program name using Socket.

-R or-route displays the Routing Table.

-S or-statistice displays a statistical table of network work information.

-T or-tcp shows the connection status of the TCP transmission protocol.

-U or-udp shows the connection status of UDP transmission protocol.

-V or-verbose displays the command execution process.

-V or-version displays version information.

-W or-raw shows the RAW transmission protocol connection status.

-X or-unix: this parameter has the same effect as the specified "-A unix" parameter.

-Ip or-inet: the effect of this parameter is the same as that of the specified "-A inet" parameter.

Common

Netstat-ntpl
View the pid ID and socket of all tcp connections as IP addresses.

Restart host

Reboot

File Operations

Create a folder named mkdir
Create File vi
File movement and rename mv
Delete the rm-r File
Copy and paste cp
Go to the directory cd

Service Operations

Disable service kill pid

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.